stilt.Mesh#
- class stilt.Mesh(*, ids: tuple[str, ...], geometries: tuple[Any, ...], crs: str = '+proj=longlat') None[source]#
Polygon cells with ids, the most general geometry.
Parameters#
Parameter |
Description |
Default |
|---|---|---|
|
Unique label for each cell. These become the |
Required |
|
One shapely Polygon or MultiPolygon per id, in |
Required |
|
PROJ string or |
|
Attributes#
|
|
First 10 characters of a SHA-256 hash of the ids, polygons, and CRS. |
|
The cell ids, as an index named |
|
Whether the polygon coordinates are longitude/latitude degrees. |
|
Shortest side of any cell's bounding box, in |
Methods#
|
Return a mesh read from a vector file such as a shapefile, with geopandas. |
|
Return a mesh of the polygons in a GeoDataFrame's geometry column. |
|
Return every cell of a grid as a polygon, in |
|
Return the H3 hexagons of one resolution inside |
|
Return the mesh a footprint config's |
|
Return rectangular windows centered on points, such as known point sources. |
|
Return the mesh reprojected to |
|
Return a footprint grid fine enough to resolve the cells. |