Package mil.nga.sf.geojson
Class Point
- java.lang.Object
-
- mil.nga.sf.geojson.GeoJsonObject
-
- mil.nga.sf.geojson.Geometry
-
- mil.nga.sf.geojson.Point
-
- All Implemented Interfaces:
Serializable
public class Point extends Geometry
Point- Author:
- yutzlejp
- See Also:
- Serialized Form
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object obj)
static Point
fromCoordinates(Position coordinates)
Create a point from coordinatesPosition
getCoordinates()
Returns coordinates as a GeoJSON Position objectGeometry
getGeometry()
Get the simple geometryGeometryType
getGeometryType()
Get the geometry typePoint
getPoint()
Get the simple features pointPosition
getPosition()
Get the positionint
hashCode()
void
setCoordinates(Position coordinates)
Sets the coordinatesvoid
setPoint(Point point)
Set the simple features pointvoid
setPosition(Position position)
Set the position-
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
-
-
-
-
Method Detail
-
fromCoordinates
public static Point fromCoordinates(Position coordinates)
Create a point from coordinates- Parameters:
coordinates
- coordinates- Returns:
- 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 Position getCoordinates()
Returns coordinates as a GeoJSON Position object- Returns:
- the coordinates
-
setCoordinates
public void setCoordinates(Position coordinates)
Sets the coordinates- Parameters:
coordinates
- coordinates
-
getPosition
public Position getPosition()
Get the position- Returns:
- position
- Since:
- 3.0.0
-
setPosition
public void setPosition(Position position)
Set the position- Parameters:
position
- position- Since:
- 3.0.0
-
getPoint
public Point getPoint()
Get the simple features point- Returns:
- point
- Since:
- 3.0.0
-
setPoint
public void setPoint(Point point)
Set the simple features point- Parameters:
point
- point- Since:
- 3.0.0
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classGeoJsonObject
-
equals
public boolean equals(Object obj)
- Overrides:
equals
in classGeoJsonObject
-
-