stilt.Mesh#
- class stilt.Mesh(*, ids: tuple[str, ...], geometries: tuple[Any, ...], crs: str = '+proj=longlat') None[source]#
Arbitrary polygon cells with ids: the general state geometry.
Parameters
idssequence of strUnique label per cell; becomes the state index (
index).geometriessequence of shapely Polygon / MultiPolygonOne polygon per id, in
crscoordinates.crsstrPROJ string or
"EPSG:xxxx"of the polygon coordinates.
Methods#
|
Build from a shapefile / GeoPackage / GeoJSON via geopandas. |
|
Build from a GeoDataFrame (polygons in its active geometry column). |
|
Every cell of a rectilinear grid as a polygon, in |
|
H3 hexagons of |
|
Rectangular windows centred on points, e.g. named point sources. |
|
Return this mesh reprojected to |
Attributes#
|
|
|
10-char SHA-256 of ids, WKB geometries and CRS. |
|
the cell ids, named |
|
|
|
Smallest cell envelope side, in |
|
|
|
|
|