hydromt.DataArray.vector.to_gdf#
- DataArray.vector.to_gdf(reducer=None)#
Return geopandas GeoDataFrame with Point geometry.
Geometry is based on Dataset coordinates. If a reducer is passed the Dataset variables are reduced along the all non-index dimensions and to a GeoDataFrame column.
- Parameters:
reducer (
callable
,str
, optional) – method by which multidimensional data is reduced to 1 dimensional e.g. numpy.mean. If str (e.g. mean), will call the numpy method is found.- Returns:
gdf – GeoDataFrame
- Return type: