Package mil.nga.sf.geojson
Class MultiPoint
- java.lang.Object
-
- mil.nga.sf.geojson.GeoJsonObject
-
- mil.nga.sf.geojson.Geometry
-
- mil.nga.sf.geojson.MultiPoint
-
- All Implemented Interfaces:
Serializable
public class MultiPoint extends Geometry
Multi Point- Author:
- yutzlejp
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description MultiPoint()
ConstructorMultiPoint(List<Point> points)
ConstructorMultiPoint(MultiPoint multiPoint)
Constructor
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object obj)
static MultiPoint
fromCoordinates(List<Position> coordinates)
Create a multi point from coordinatesList<Position>
getCoordinates()
Returns coordinates as a GeoJSON Position listGeometry
getGeometry()
Get the simple geometryGeometryType
getGeometryType()
Get the geometry typeMultiPoint
getMultiPoint()
Get the simple features multi pointList<Point>
getPoints()
Get the pointsint
hashCode()
void
setCoordinates(List<Position> coordinates)
Sets the coordinates from a GeoJSON Position listvoid
setMultiPoint(MultiPoint multiPoint)
Set the simple features multi pointvoid
setPoints(List<Point> points)
Set the points-
Methods inherited from class mil.nga.sf.geojson.Geometry
getSimpleGeometry, getType
-
Methods inherited from class mil.nga.sf.geojson.GeoJsonObject
getBbox, getForeignMember, getForeignMembers, hasForeignMember, hasForeignMembers, setBbox, setForeignMember
-
-
-
-
Constructor Detail
-
MultiPoint
public MultiPoint()
Constructor
-
MultiPoint
public MultiPoint(List<Point> points)
Constructor- Parameters:
points
- points list- Since:
- 3.0.0
-
MultiPoint
public MultiPoint(MultiPoint multiPoint)
Constructor- Parameters:
multiPoint
- simple multi point
-
-
Method Detail
-
fromCoordinates
public static MultiPoint fromCoordinates(List<Position> coordinates)
Create a multi point from coordinates- Parameters:
coordinates
- coordinates- Returns:
- multi point
- Since:
- 3.0.0
-
getGeometryType
public GeometryType getGeometryType()
Get the geometry type- Specified by:
getGeometryType
in classGeometry
- Returns:
- geometry type
-
getGeometry
public Geometry getGeometry()
Get the simple geometry- Specified by:
getGeometry
in classGeometry
- Returns:
- simple geometry
-
getCoordinates
public List<Position> getCoordinates()
Returns coordinates as a GeoJSON Position list- Returns:
- the coordinates
-
setCoordinates
public void setCoordinates(List<Position> coordinates)
Sets the coordinates from a GeoJSON Position list- Parameters:
coordinates
- coordinates- Since:
- 3.0.0
-
setPoints
public void setPoints(List<Point> points)
Set the points- Parameters:
points
- list of points- Since:
- 3.0.0
-
getMultiPoint
public MultiPoint getMultiPoint()
Get the simple features multi point- Returns:
- multi point
- Since:
- 3.0.0
-
setMultiPoint
public void setMultiPoint(MultiPoint multiPoint)
Set the simple features multi point- Parameters:
multiPoint
- multi point- Since:
- 3.0.0
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classGeoJsonObject
-
equals
public boolean equals(Object obj)
- Overrides:
equals
in classGeoJsonObject
-
-