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
idssequence of strUnique label for each cell. These become the
index.geometriessequence of shapely Polygon or MultiPolygonOne polygon per id, in
crscoordinates.crsstr, default “+proj=longlat”PROJ string or
"EPSG:xxxx"code of the polygon coordinates.
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 rectangular windows centered on points, such as known point sources. |
|
Return the mesh reprojected to |
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 |
|
|
|
|
|