xugrid.Ugrid1d.from_shapely#
- static Ugrid1d.from_shapely(geometry: ndarray, crs=None) Ugrid1d [source]#
Convert an array of shapely linestrings to UGRID1D topology.
- Parameters:
geometry (np.ndarray of shapely linestrings)
crs (Any, optional) – Coordinate Reference System of the geometry objects. Can be anything accepted by
pyproj.CRS.from_user_input()
, such as an authority string (eg “EPSG:4326”) or a WKT string.