pyinterp.geometry.geographic.algorithms.simplify

Contents

pyinterp.geometry.geographic.algorithms.simplify#

pyinterp.geometry.geographic.algorithms.simplify(geometry: pyinterp.core.geometry.geographic.LineString, max_distance: float, spheroid: pyinterp.core.geometry.geographic.Spheroid | None = None, strategy: pyinterp.core.geometry.geographic.algorithms.Strategy = Strategy.ANDOYER) pyinterp.core.geometry.geographic.LineString#
pyinterp.geometry.geographic.algorithms.simplify(geometry: pyinterp.core.geometry.geographic.Ring, max_distance: float, spheroid: pyinterp.core.geometry.geographic.Spheroid | None = None, strategy: pyinterp.core.geometry.geographic.algorithms.Strategy = Strategy.ANDOYER) pyinterp.core.geometry.geographic.Ring
pyinterp.geometry.geographic.algorithms.simplify(geometry: pyinterp.core.geometry.geographic.Polygon, max_distance: float, spheroid: pyinterp.core.geometry.geographic.Spheroid | None = None, strategy: pyinterp.core.geometry.geographic.algorithms.Strategy = Strategy.ANDOYER) pyinterp.core.geometry.geographic.Polygon
pyinterp.geometry.geographic.algorithms.simplify(geometry: pyinterp.core.geometry.geographic.MultiLineString, max_distance: float, spheroid: pyinterp.core.geometry.geographic.Spheroid | None = None, strategy: pyinterp.core.geometry.geographic.algorithms.Strategy = Strategy.ANDOYER) pyinterp.core.geometry.geographic.MultiLineString
pyinterp.geometry.geographic.algorithms.simplify(geometry: pyinterp.core.geometry.geographic.MultiPolygon, max_distance: float, spheroid: pyinterp.core.geometry.geographic.Spheroid | None = None, strategy: pyinterp.core.geometry.geographic.algorithms.Strategy = Strategy.ANDOYER) pyinterp.core.geometry.geographic.MultiPolygon

Simplifies a geometry by removing points based on distance tolerance.

Parameters:
  • geometry – Geometric object to simplify.

  • max_distance – Maximum allowed distance for simplification.

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

  • strategy – Calculation strategy.

Returns:

Simplified version of the input geometry (same type).