Package org.locationtech.jts.simplify
Class TaggedLineString
java.lang.Object
org.locationtech.jts.simplify.TaggedLineString
Represents a
LineString which can be modified to a simplified shape.
This class provides an attribute which specifies the minimum allowable length
for the modified result.- Version:
- 1.7
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate intprivate LineStringprivate Listprivate TaggedLineSegment[] -
Constructor Summary
ConstructorsConstructorDescriptionTaggedLineString(LineString parentLine) TaggedLineString(LineString parentLine, int minimumSize) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddToResult(LineSegment seg) private static Coordinate[]extractCoordinates(List segs) intintgetSegment(int i) private voidinit()
-
Field Details
-
parentLine
-
segs
-
resultSegs
-
minimumSize
private int minimumSize
-
-
Constructor Details
-
TaggedLineString
-
TaggedLineString
-
-
Method Details
-
getMinimumSize
public int getMinimumSize() -
getParent
-
getParentCoordinates
-
getResultCoordinates
-
getResultSize
public int getResultSize() -
getSegment
-
init
private void init() -
getSegments
-
addToResult
-
asLineString
-
asLinearRing
-
extractCoordinates
-