com.vividsolutions.jts.noding
Class SegmentString
java.lang.Object
com.vividsolutions.jts.noding.SegmentString
public class SegmentString
extends java.lang.Object
Contains a list of consecutive line segments which can be used to node the segments.
The line segments are represented by an array of
Coordinate
s.
void | OLDaddIntersection(LineIntersector li, int segmentIndex, int geomIndex, int intIndex)
|
void | addIntersection(LineIntersector li, int segmentIndex, int geomIndex, int intIndex) - Add an SegmentNode for intersection intIndex.
|
void | addIntersection(Coordinate intPt, int segmentIndex) - Add an EdgeIntersection for intersection intIndex.
|
void | addIntersection(Coordinate intPt, int segmentIndex, double dist)
|
void | addIntersections(LineIntersector li, int segmentIndex, int geomIndex) - Adds EdgeIntersections for one or both
intersections found for a segment of an edge to the edge intersection list.
|
Object | getContext()
|
Coordinate | getCoordinate(int i)
|
Coordinate[] | getCoordinates()
|
SegmentNodeList | getIntersectionList()
|
boolean | isClosed()
|
boolean | isIsolated()
|
void | setIsolated(boolean isIsolated)
|
int | size()
|
SegmentString
public SegmentString(Coordinate[] pts,
Object context)
OLDaddIntersection
public void OLDaddIntersection(LineIntersector li,
int segmentIndex,
int geomIndex,
int intIndex)
addIntersection
public void addIntersection(LineIntersector li,
int segmentIndex,
int geomIndex,
int intIndex)
Add an SegmentNode for intersection intIndex.
An intersection that falls exactly on a vertex
of the SegmentString is normalized
to use the higher of the two possible segmentIndexes
addIntersection
public void addIntersection(Coordinate intPt,
int segmentIndex)
Add an EdgeIntersection for intersection intIndex.
An intersection that falls exactly on a vertex of the edge is normalized
to use the higher of the two possible segmentIndexes
addIntersection
public void addIntersection(Coordinate intPt,
int segmentIndex,
double dist)
addIntersections
public void addIntersections(LineIntersector li,
int segmentIndex,
int geomIndex)
Adds EdgeIntersections for one or both
intersections found for a segment of an edge to the edge intersection list.
getContext
public Object getContext()
getCoordinate
public Coordinate getCoordinate(int i)
getCoordinates
public Coordinate[] getCoordinates()
isClosed
public boolean isClosed()
isIsolated
public boolean isIsolated()
setIsolated
public void setIsolated(boolean isIsolated)