hydromt.DataArray.vector.to_geom#

DataArray.vector.to_geom(geom_name: str = None) DataArray | Dataset#

Convert Dataset/ DataArray with xy or wkt geometries to shapely Geometries.

Parameters:

geom_name (str, optional) – The name of the geometry coordinate. If None (default), derived from current object or default to ‘geometry’.

Returns:

Dataset with new geometry coordinates

Return type:

xr.Dataset