itacart.boundary.extension_zone
- itacart.boundary.extension_zone(cell)[source]
Which extension zone contains a cell, if any.
Callers that need to branch on the specific zone should use this rather than
is_extension_cell(), since the two zones sit in different quadrants and have different longitude limits.Agrees with
extension_zone_for_point()on the cell’s centroid by construction: zones are realized on whole resolution-1 rows, so no cell straddles a latitude limit and none can disagree with its own interior.- Parameters:
cell (
str) – Compositional index string.- Return type:
Union[Literal['FIJI','CHUKOTKA'],None,list[Optional[Literal['FIJI','CHUKOTKA']]]]- Returns:
"FIJI","CHUKOTKA"orNonefor 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.