TaggedLineStringSimplifier class

Constructors

TaggedLineStringSimplifier(LineSegmentIndex inputIndex, LineSegmentIndex outputIndex)

Properties

distanceTolerance double
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
inputIndex LineSegmentIndex
getter/setter pair
li LineIntersector
Simplifies a TaggedLineString, preserving topology (in the sense that no new intersections are introduced). Uses the recursive Douglas-Peucker algorithm.
getter/setter pair
line TaggedLineString
getter/setter pair
linePts List<Coordinate>
getter/setter pair
outputIndex LineSegmentIndex
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

findFurthestPoint(List<Coordinate> pts, int i, int j, List<double> maxDistance) int
flatten(int start, int end) LineSegment
Flattens a section of the line between indexes start and end, replacing them with a line between the endpoints. The input and output indexes are updated to reflect this.
hasBadInputIntersection(TaggedLineString parentLine, List<int> sectionIndex, LineSegment candidateSeg) bool
hasBadIntersection(TaggedLineString parentLine, List<int> sectionIndex, LineSegment candidateSeg) bool
hasBadOutputIntersection(LineSegment candidateSeg) bool
hasInvalidIntersection(LineSegment seg0, LineSegment seg1) bool
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
remove(TaggedLineString line, int start, int end) → void
Remove the segs in the section of the line @param line @param pts @param sectionStartIndex @param sectionEndIndex
setDistanceTolerance(double distanceTolerance) → void
Sets the distance tolerance for the simplification. All vertices in the simplified geometry will be within this distance of the original geometry.
simplify(TaggedLineString line) → void
Simplifies the given {@link TaggedLineString} using the distance tolerance specified.
simplifySection(int i, int j, int depth) → void
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

isInLineSection(TaggedLineString line, List<int> sectionIndex, TaggedLineSegment seg) bool
Tests whether a segment is in a section of a TaggedLineString @param line @param sectionIndex @param seg @return