Class EdgeString
- java.lang.Object
-
- org.locationtech.jts.operation.linemerge.EdgeString
-
public class EdgeString extends java.lang.Object
A sequence ofLineMergeDirectedEdge
s forming one of the lines that will be output by the line-merging process.- Version:
- 1.7
-
-
Field Summary
Fields Modifier and Type Field Description private Coordinate[]
coordinates
private java.util.List
directedEdges
private GeometryFactory
factory
-
Constructor Summary
Constructors Constructor Description EdgeString(GeometryFactory factory)
Constructs an EdgeString with the given factory used to convert this EdgeString to a LineString
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
add(LineMergeDirectedEdge directedEdge)
Adds a directed edge which is known to form part of this line.private Coordinate[]
getCoordinates()
LineString
toLineString()
Converts this EdgeString into a LineString.
-
-
-
Field Detail
-
factory
private GeometryFactory factory
-
directedEdges
private java.util.List directedEdges
-
coordinates
private Coordinate[] coordinates
-
-
Constructor Detail
-
EdgeString
public EdgeString(GeometryFactory factory)
Constructs an EdgeString with the given factory used to convert this EdgeString to a LineString
-
-
Method Detail
-
add
public void add(LineMergeDirectedEdge directedEdge)
Adds a directed edge which is known to form part of this line.
-
getCoordinates
private Coordinate[] getCoordinates()
-
toLineString
public LineString toLineString()
Converts this EdgeString into a LineString.
-
-