pyinterp.geometry.geographic.algorithms.area

Contents

pyinterp.geometry.geographic.algorithms.area#

pyinterp.geometry.geographic.algorithms.area(geometry: pyinterp.core.geometry.geographic.Point, spheroid: pyinterp.core.geometry.geographic.Spheroid | None = None, strategy: pyinterp.core.geometry.geographic.algorithms.Strategy = Strategy.ANDOYER) float#
pyinterp.geometry.geographic.algorithms.area(geometry: pyinterp.core.geometry.geographic.Segment, spheroid: pyinterp.core.geometry.geographic.Spheroid | None = None, strategy: pyinterp.core.geometry.geographic.algorithms.Strategy = Strategy.ANDOYER) float
pyinterp.geometry.geographic.algorithms.area(geometry: pyinterp.core.geometry.geographic.Box, spheroid: pyinterp.core.geometry.geographic.Spheroid | None = None, strategy: pyinterp.core.geometry.geographic.algorithms.Strategy = Strategy.ANDOYER) float
pyinterp.geometry.geographic.algorithms.area(geometry: pyinterp.core.geometry.geographic.LineString, spheroid: pyinterp.core.geometry.geographic.Spheroid | None = None, strategy: pyinterp.core.geometry.geographic.algorithms.Strategy = Strategy.ANDOYER) float
pyinterp.geometry.geographic.algorithms.area(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.area(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.area(geometry: pyinterp.core.geometry.geographic.MultiPoint, spheroid: pyinterp.core.geometry.geographic.Spheroid | None = None, strategy: pyinterp.core.geometry.geographic.algorithms.Strategy = Strategy.ANDOYER) float
pyinterp.geometry.geographic.algorithms.area(geometry: pyinterp.core.geometry.geographic.MultiLineString, spheroid: pyinterp.core.geometry.geographic.Spheroid | None = None, strategy: pyinterp.core.geometry.geographic.algorithms.Strategy = Strategy.ANDOYER) float
pyinterp.geometry.geographic.algorithms.area(geometry: pyinterp.core.geometry.geographic.MultiPolygon, spheroid: pyinterp.core.geometry.geographic.Spheroid | None = None, strategy: pyinterp.core.geometry.geographic.algorithms.Strategy = Strategy.ANDOYER) float

Calculate the area of a geometric object.

Parameters:
  • geometry – Geometric object (Box, Ring, Polygon, or MultiPolygon).

  • spheroid – Optional spheroid for geodetic calculations. If not provided, uses WGS84 ellipsoid.

  • strategy – Calculation strategy.

Returns:

Area in square meters.

Note

For Point, Segment, LineString, MultiPoint, and MultiLineString, the area is always 0.0.