itacart.resolutions.effective_cell_area
- itacart.resolutions.effective_cell_area(cell)[source]
True area of a specific cell, accounting for boundary clipping.
Equals
nominal_cell_area()for parallelogram and triangular cells. For trapezoidal cells the longer base is clipped at the boundary line, so the area is computed from the actual vertices.Cadastral use makes this distinction legally significant: returning the nominal area for a clipped cell would misstate a parcel.
An unclipped cell is answered from the resolution table rather than from its own vertices. The plane is equal-area by construction, so the two agree to the last bit the projection can carry, and reading the table keeps the common case free of a shoelace sum over twenty-million-metre coordinates. A clipped cell is measured.
- Parameters:
cell (
str) – Compositional index string.- Return type:
- Returns:
Area in square metres for a single terminal cell, or a positionally aligned list when the index holds several.
- 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.