Package org.locationtech.jts.simplify
Class TaggedLineSegment
java.lang.Object
org.locationtech.jts.geom.LineSegment
org.locationtech.jts.simplify.TaggedLineSegment
- All Implemented Interfaces:
Serializable
,Comparable
A
LineSegment
which is tagged with its location in a parent Geometry
.
Used to index the segments in a geometry and recover the segment locations
from the index.-
Field Summary
FieldsFields inherited from class org.locationtech.jts.geom.LineSegment
p0, p1
-
Constructor Summary
ConstructorsConstructorDescriptionTaggedLineSegment
(Coordinate p0, Coordinate p1) TaggedLineSegment
(Coordinate p0, Coordinate p1, Geometry parent, int index) -
Method Summary
Methods inherited from class org.locationtech.jts.geom.LineSegment
angle, closestPoint, closestPoints, compareTo, distance, distance, distancePerpendicular, equals, equalsTopo, getCoordinate, getLength, hashCode, intersection, isHorizontal, isVertical, lineIntersection, maxX, maxY, midPoint, midPoint, minX, minY, normalize, orientationIndex, orientationIndex, pointAlong, pointAlongOffset, project, project, projectionFactor, reverse, segmentFraction, setCoordinates, setCoordinates, toGeometry, toString
-
Field Details
-
parent
-
index
private int index
-
-
Constructor Details
-
TaggedLineSegment
-
TaggedLineSegment
-
-
Method Details
-
getParent
-
getIndex
public int getIndex()
-