Class MultiPoint
- java.lang.Object
-
- com.github.filosganga.geogson.model.AbstractGeometry<LinearPositions>
-
- com.github.filosganga.geogson.model.LinearGeometry
-
- com.github.filosganga.geogson.model.MultiPoint
-
- All Implemented Interfaces:
Geometry<LinearPositions>,Serializable
public class MultiPoint extends LinearGeometry
Geometry composed by a sequence ofPoint.GeoJson reference: @see http://geojson.org/geojson-spec.html#multipoint.
eg:
MultiPoint mp = MultiPoint.of( Point.from(1,2), Point.from(3,4) )- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface com.github.filosganga.geogson.model.Geometry
Geometry.Type
-
-
Constructor Summary
Constructors Constructor Description MultiPoint(LinearPositions coordinates)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static MultiPointof(Point... points)Creates a MultiPoint from the given points.static MultiPointof(Iterable<Point> points)Creates a MultiPoint from the given points.static MultiPointof(Stream<Point> points)Creates a MultiPoint from the given points.Geometry.Typetype()Returns the Geometry type.-
Methods inherited from class com.github.filosganga.geogson.model.LinearGeometry
points, toLinearRing, toLineString, toMultiPoint
-
-
-
-
Constructor Detail
-
MultiPoint
public MultiPoint(LinearPositions coordinates)
-
-
Method Detail
-
of
public static MultiPoint of(Point... points)
Creates a MultiPoint from the given points.- Parameters:
points- ThePointsequence.- Returns:
- MultiPoint
-
of
public static MultiPoint of(Iterable<Point> points)
Creates a MultiPoint from the given points.- Parameters:
points- ThePointIterable.- Returns:
- MultiPoint
-
of
public static MultiPoint of(Stream<Point> points)
Creates a MultiPoint from the given points.- Parameters:
points- ThePointIterable.- Returns:
- MultiPoint
-
type
public Geometry.Type type()
Description copied from interface:GeometryReturns the Geometry type.- Returns:
- Type
-
-