com.vividsolutions.jts.simplify

Class TaggedLineSegment

Implemented Interfaces:
Comparable, Serializable

public class TaggedLineSegment
extends LineSegment

A LineSegment which is tagged with its location in a Geometry. Used to index the segments in a geometry and recover the segment locations from the index.

Field Summary

Fields inherited from class com.vividsolutions.jts.geom.LineSegment

p0, p1

Constructor Summary

TaggedLineSegment(Coordinate p0, Coordinate p1)
TaggedLineSegment(Coordinate p0, Coordinate p1, Geometry parent, int index)

Method Summary

int
getIndex()
Geometry
getParent()

Methods inherited from class com.vividsolutions.jts.geom.LineSegment

angle, closestPoint, closestPoints, compareTo, distance, distance, distancePerpendicular, equals, equalsTopo, getCoordinate, getLength, intersection, isHorizontal, isVertical, normalize, orientationIndex, project, project, projectionFactor, reverse, setCoordinates, setCoordinates, toString

Constructor Details

TaggedLineSegment

public TaggedLineSegment(Coordinate p0,
                         Coordinate p1)

TaggedLineSegment

public TaggedLineSegment(Coordinate p0,
                         Coordinate p1,
                         Geometry parent,
                         int index)

Method Details

getIndex

public int getIndex()

getParent

public Geometry getParent()