hydromt.gis.DataArray.vector.to_wkt#
- gis.DataArray.vector.to_wkt(ogr_compliant=False, reducer=None) DataArray | Dataset #
Convert geometries in Dataset/DataArray to wkt strings.
- Parameters:
ogr_compliant (
bool
, optional) – Whether to create a OGR compliant Dataset/Array seeogr_compliant()
for more details.reducer (
callable
, optional) – method by which multidimensional data is reduced to 1 dimensional e.g. numpy.mean
- Returns:
Dataset with new ogc_wkt coordinate
- Return type:
xr.Dataset