pyinterp.geodetic.LineString.simplify#

LineString.simplify(self: pyinterp.core.geodetic.LineString, tolerance: float, strategy: str = 'thomas', wgs: pyinterp.core.geodetic.Spheroid | None = None) pyinterp.core.geodetic.LineString#

Simplifies this linestring using the Douglas-Peucker algorithm.

Parameters:
  • tolerance – The tolerance to use.

  • strategy – The distance strategy to use. This parameter can take the values andoyer, thomas or vincenty. Defaults to thomas.

  • wgs – The World Geodetic System to use. Defaults to WGS84.

Returns:

The simplified linestring.