set_value2s
- set_value2s(gpt, values)
Creates a new
Geopoints
with the value2 column ingpt
replaced byvalues
.- Parameters
gpt (
Geopoints
) – input geopointsvalues (number or list or ndarray) – values to be written into the value2 column of
gpt
- Return type
If
values
is a number all the values are replaced with it. Ifvalues
is a list or ndarray and is shorter than the geopoints count then only the first values that have a corresponding value invalues
are changed.Warning
set_value2s()
only works forGeopoints
with ‘xy_vector’ or ‘polar_vector’ type.