set_value2s

set_value2s(gpt, values)

Creates a new Geopoints with the value2 column in gpt replaced by values.

Parameters
  • gpt (Geopoints) – input geopoints

  • values (number or list or ndarray) – values to be written into the value2 column of gpt

Return type

Geopoints

If values is a number all the values are replaced with it. If values is a list or ndarray and is shorter than the geopoints count then only the first values that have a corresponding value in values are changed.

Warning

set_value2s() only works for Geopoints with ‘xy_vector’ or ‘polar_vector’ type.