hydromt.gis.DataArray.vector.set_spatial_dims#

gis.DataArray.vector.set_spatial_dims(geom_name: str | None = None, x_name: str | None = None, y_name: str | None = None, index_dim: str | None = None, geom_format: str | None = None) None#

Set the spatial and index dimensions of the object.

Parameters:
  • x_name (str, optional) – The name of the x coordinate.

  • y_name (str, optional) – The name of the ycoordinate.

  • geom_name (str, optional) – The name of the geometry coordinate.

  • index_dim (str optional) – The name of the geometry index dimension

  • geom_format ({'xy', 'wkt', 'geom'}) – Geometry format