pyinterp.geometry.geographic.algorithms.length

Contents

pyinterp.geometry.geographic.algorithms.length#

pyinterp.geometry.geographic.algorithms.length(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.length(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.length(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.length(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.length(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.length(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.length(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.length(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.length(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 length of a geometric object.

The length is calculated on the surface of a spheroid (default: WGS84). Different geodetic calculation strategies are available for accuracy/performance trade-offs.

Parameters:
  • geometry – Geometric object.

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

  • strategy – Calculation strategy.

Returns:

Length in meters.