xugrid.Ugrid1d.to_shapely#

Ugrid1d.to_shapely(dim)[source]#

Convert UGRID topology to shapely objects.

  • nodes: points

  • edges: linestrings

Parameters:

dim (str) – Node or edge dimension.

Returns:

geometry

Return type:

ndarray of shapely.Geometry