itacart.cells.cell_to_boundary
- itacart.cells.cell_to_boundary(cell, close=False)[source]
Geodetic vertices bounding a cell, counter-clockwise.
Four vertices for a parallelogram, three for a prime-meridian triangle, four for a trapezoid clipped on its meridian side, so a ring has three or four. The trapezoid keeps four even where the border line leans faster than the cell’s own side – above roughly 18.5 degrees of latitude, where the border crosses more than one column per row – because its outer side is carried onto the border rather than cut by it.
The ring is counter-clockwise in every quadrant. That is not free: mirroring the NE octant into NW or SE reverses orientation, so the sequence is reversed back.
- Parameters:
- Return type:
- Returns:
A vertex list for a single cell, or a positionally aligned list of vertex lists.
- Raises:
NonExistentCellError – If the cell has no area in the domain.