xugrid.Ugrid1d.from_geodataframe#

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

Convert geodataframe of linestrings into a UGRID1D topology.

Parameters:

geodataframe (geopandas GeoDataFrame)

Returns:

topology

Return type:

Ugrid1d