setDistanceTolerance method

void setDistanceTolerance(
  1. double distanceTolerance
)

Simplifies a linestring (sequence of points) using the standard Douglas-Peucker algorithm.

@version 1.7

Sets the distance tolerance for the simplification. All vertices in the simplified linestring will be within this distance of the original linestring.

@param distanceTolerance the approximation tolerance to use

Implementation

void setDistanceTolerance(double distanceTolerance) {
  _distanceTolerance = distanceTolerance;
}