class MultiLineString extends GeometryCollection
A MultiLineString Geometry.
You can create a MultiLineString from a variable List of LineString:
MultiLineString m = new MultiLineString(new LineString([1,2],[3,4]), new LineString([5,6],[7,8]))
Or from a variable List of List of Doubles:
MultiLineString m = new MultiLineString([[1,2],[3,4]], [[5,6],[7,8]])
Or from a List of LineStrings:
MultiLineString m = new MultiLineString([new LineString([1,2],[3,4]), new LineString([5,6],[7,8])])
Or from a List of List of List of Doubles:
MultiLineString m = new MultiLineString([[[1,2],[3,4]], [[5,6],[7,8]]])
| Constructor and description |
|---|
MultiLineString
(MultiLineString multiLineString)Create a MultiLineString that wraps a JTS MultiLineString |
MultiLineString
(LineString[] lineStrings)Create a MultiLineString from a variable List of LineStrings |
MultiLineString
(java.util.List<java.util.List<java.lang.Double>>[] lineStrings)Create a MultiLineString from a variable List of List of Doubles |
MultiLineString
(java.util.List lineStrings)Create a MultiLineString from a List of LineString or a List of List of Doubles |
| Type Params | Return Type | Name and description |
|---|---|---|
|
MultiPoint |
createPointsAlong(double distance)Create Points along this MultiLineString with the given interval distance. |
|
MultiLineString |
merge()Merge the LineStrings of this MultiLineString together |
|
MultiLineString |
node(int numberOfDecimalPlaces)Node the LineStrings in this MultiLineString |
|
MultiLineString |
plus(LineString line)Add a LineString to this MultiLineString to create another MultiLineString |
|
MultiPolygon |
polygonize()Polygonize the LineStrings of this MultiLineString |
|
Map |
polyzonizeFull()Polygonize the LineStrings of this MultiLineString and return a Map with polygons, cutEdges, dangles, and invalidRingLines. |
Create a MultiLineString that wraps a JTS MultiLineString
multiLineString - The JTS MultiLineStringCreate a MultiLineString from a variable List of LineStrings
MultiLineString m = new MultiLineString(new LineString([1,2],[3,4]), new LineString([5,6],[7,8]))
lineString - A variable List of LineStringsCreate a MultiLineString from a variable List of List of Doubles
MultiLineString m = new MultiLineString([[1,2],[3,4]], [[5,6],[7,8]])
lineString - A variable List of List of DoublesCreate a MultiLineString from a List of LineString or a List of List of Doubles
MultiLineString m = new MultiLineString([new LineString([1,2],[3,4]), new LineString([5,6],[7,8])]) MultiLineString m = new MultiLineString([[[1,2],[3,4]], [[5,6],[7,8]]])
lineString - Either a List of List of Doubles or a List of LineStringsCreate Points along this MultiLineString with the given interval distance.
distance - The interval distance of distance between points.Merge the LineStrings of this MultiLineString together
Node the LineStrings in this MultiLineString
numberOfDecimalPlaces - The number of decimal places to use in the PrecisionModelAdd a LineString to this MultiLineString to create another MultiLineString
def m1 = new MultiLineString(new LineString([1,2],[3,4]), new LineString([5,6],[7,8])) def m2 = m1 + new LineString([11,12],[13,14]) MULTILINESTRING ((1 2, 3 4), (5 6, 7 8), (11 12, 13 14))
line - A LineStringPolygonize the LineStrings of this MultiLineString
Polygonize the LineStrings of this MultiLineString and return a Map with polygons, cutEdges, dangles, and invalidRingLines.