stilt.Mesh.from_geodataframe#

classmethod Mesh.from_geodataframe(gdf, ids=None)[source]#

Return a mesh of the polygons in a GeoDataFrame’s geometry column.

ids is the name of a column holding the cell labels, or the labels themselves. Defaults to the GeoDataFrame’s index.

Return type:

Mesh

Parameters:

ids (str | Sequence[str] | None)