itacart.cells.cell_to_polygon
- itacart.cells.cell_to_polygon(cell)[source]
Cell boundary as a Shapely polygon in EPSG:4326.
Valid and closed for all three shapes. A cell inside an extension zone carries longitudes past 180 degrees rather than wrapping, so the polygon stays simple and its area stays measurable.
- Parameters:
cell (
str) – Compositional index string.- Return type:
- Returns:
A polygon for a single cell, or a positionally aligned list.
- Raises:
NonExistentCellError – If any cell of the index names no cell. The predicate is the arbiter and the contract ends there: a spelling it denies is refused rather than answered for the cell it would otherwise fold onto.