Class: DouglasPeuckerLineSimplifier

jsts.simplify.DouglasPeuckerLineSimplifier

new DouglasPeuckerLineSimplifier(pts)

Simplifies a linestring (sequence of points) using the standard Douglas-Peucker algorithm.
Parameters:
Name Type Description
pts jsts.geom.Coordinate
Source:

Members

distanceTolerance :double

Type:
  • double
Source:

pts :Array.<jsts.geom.Coordinate>

Type:
Source:

seg :jsts.geom.LineSegment

Type:
Source:

usePt :Array.<boolean>

Type:
  • Array.<boolean>
Source:

Methods

(static) simplify(pts, distanceTolerance) → {Array.<jsts.geom.Coordinate>}

Parameters:
Name Type Description
pts Array.<jsts.geom.Coordinate>
distanceTolerance double
Source:
Returns:
Type
Array.<jsts.geom.Coordinate>

setDistanceTolerance(distanceTolerance)

Set the distance tolerance for the simplification. All vertices in the simplified linestring will be within this distance of the original linestring.
Parameters:
Name Type Description
distanceTolerance double
Source:

simplify() → {Array.<jsts.geom.Coordinate>}

Source:
Returns:
Type
Array.<jsts.geom.Coordinate>

simplifySection(i, j)

Parameters:
Name Type Description
i int
j int
Source: