A MultiPoint Geometry.
You can create a MultiPoint from a variable List of Points:
MultiPoint m = new MultiPoint(new Point(1,2),new Point(3,4))
Or from a variable List of List of Doubles:
MultiPoint m = new MultiPoint([1,2],[3,4])
Or fom a List of Points:
MultiPoint m = new MultiPoint([new Point(1,2),new Point(3,4)])
Or from a List of List of Doubles:
MultiPoint m = new MultiPoint([[1,2],[3,4]])
| Constructor and description |
|---|
MultiPoint
(org.locationtech.jts.geom.MultiPoint multiPoint)Create a MultiPoint that wraps a JTS MultiPoint |
MultiPoint
(Point... points)Create a MultiPoint from a List of Points |
MultiPoint
(java.util.List<java.lang.Double>... points)Create a MultiPoint from a List of List of Doubles |
MultiPoint
(java.util.List points)Create a MultiPoint from a List of List of Double or a List of Points |
| Type Params | Return Type | Name and description |
|---|---|---|
|
MultiPoint |
plus(Point point)Add a Point to this MultiPoint to create another MultiPoint. |
Create a MultiPoint that wraps a JTS MultiPoint
multiPoint - The JTS MultiPointCreate a MultiPoint from a List of Points
def m = new MultiPoint(new Point(1,2),new Point(3,4))
points - A variable List of PointsCreate a MultiPoint from a List of List of Doubles
def m = new MultiPoint([1,2],[3,4])
points - A variable List of List of DoublesCreate a MultiPoint from a List of List of Double or a List of Points
def m = new MultiPoint([new Point(1,2),new Point(3,4)]) def m = new MultiPoint([[1,2],[3,4]])
points - Either a List of List of Doubles of a List of PointsAdd a Point to this MultiPoint to create another MultiPoint.
point - The other Point