pyinterp.geometry.geographic.algorithms.perimeter#
- pyinterp.geometry.geographic.algorithms.perimeter(geometry: pyinterp.core.geometry.geographic.Ring, spheroid: pyinterp.core.geometry.geographic.Spheroid | None = None, strategy: pyinterp.core.geometry.geographic.algorithms.Strategy = Strategy.ANDOYER) float#
- pyinterp.geometry.geographic.algorithms.perimeter(geometry: pyinterp.core.geometry.geographic.Polygon, spheroid: pyinterp.core.geometry.geographic.Spheroid | None = None, strategy: pyinterp.core.geometry.geographic.algorithms.Strategy = Strategy.ANDOYER) float
- pyinterp.geometry.geographic.algorithms.perimeter(geometry: pyinterp.core.geometry.geographic.MultiPolygon, spheroid: pyinterp.core.geometry.geographic.Spheroid | None = None, strategy: pyinterp.core.geometry.geographic.algorithms.Strategy = Strategy.ANDOYER) float
Calculates the perimeter of an areal geometry.
For polygons and rings, this is the sum of the lengths of all rings (exterior and holes) computed using geodetic calculations on the spheroid.
- Parameters:
geometry – Geometric object to compute perimeter for.
spheroid – Optional spheroid for geodetic calculations.
strategy – Calculation strategy.
- Returns:
The perimeter of the geometry in meters.