Package org.locationtech.jts.simplify
Class TaggedLineSegment
- java.lang.Object
-
- org.locationtech.jts.geom.LineSegment
-
- org.locationtech.jts.simplify.TaggedLineSegment
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable
class TaggedLineSegment extends LineSegment
ALineSegment
which is tagged with its location in a parentGeometry
. Used to index the segments in a geometry and recover the segment locations from the index.
-
-
Constructor Summary
Constructors Constructor Description TaggedLineSegment(Coordinate p0, Coordinate p1)
TaggedLineSegment(Coordinate p0, Coordinate p1, Geometry parent, int index)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getIndex()
Geometry
getParent()
-
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 Detail
-
parent
private Geometry parent
-
index
private int index
-
-
Constructor Detail
-
TaggedLineSegment
public TaggedLineSegment(Coordinate p0, Coordinate p1, Geometry parent, int index)
-
TaggedLineSegment
public TaggedLineSegment(Coordinate p0, Coordinate p1)
-
-
Method Detail
-
getParent
public Geometry getParent()
-
getIndex
public int getIndex()
-
-