spatialdata.models.points_geopandas_to_dask_dataframe

spatialdata.models.points_geopandas_to_dask_dataframe#

spatialdata.models.points_geopandas_to_dask_dataframe(gdf, suppress_z_warning=False)#

Convert a GeoDataFrame which represents 2D or 3D points to a Dask DataFrame that passes the schema validation.

Parameters:

gdf (GeoDataFrame) – GeoDataFrame with a geometry column that contains 2D or 3D points.

Return type:

DataFrame

Returns:

: The Dask DataFrame converted from the GeoDataFrame. The Dask DataFrame passes the schema validation.

Notes

The returned Dask DataFrame gets the ‘x’ and ‘y’ columns from the geometry column, and eventually the ‘z’ column (and the rest of the columns), from the remaining columns of the GeoDataFrame.