xugrid.Ugrid2d.from_geodataframe#

classmethod Ugrid2d.from_geodataframe(geodataframe: geopandas.GeoDataFrame) Ugrid2d[source]#

Convert a geodataframe of polygons to UGRID2D topology.

Parameters:

geodataframe (geopandas GeoDataFrame)

Returns:

topology

Return type:

Ugrid2d