com.vividsolutions.jts.operation.linemerge
public class LineMerger extends java.lang.Object
Any dimension of Geometry is handled -- the constituent linework is extracted to form the edges. The edges must be correctly noded; that is, they must only meet at their endpoints. The LineMerger will still run on incorrectly noded input but will not form polygons from incorrected noded edges.
NOTE:once merging has been performed, no more
Constructor and Description |
---|
LineMerger() |
Modifier and Type | Method and Description |
---|---|
void |
add(java.util.Collection geometries)
Adds a collection of Geometries to be processed.
|
void |
add(Geometry geometry)
Adds a Geometry to be processed.
|
java.util.Collection |
getMergedLineStrings()
Returns the LineStrings built by the merging process.
|
public void add(Geometry geometry)
public void add(java.util.Collection geometries)
public java.util.Collection getMergedLineStrings()