hydromt.Dataset.vector.to_wkt#

Dataset.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 see ogr_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