Package com.massifmaps.geometry
Class PointGeometry
java.lang.Object
com.massifmaps.geometry.Geometry
com.massifmaps.geometry.PointGeometry
Point geometry. Geometry is defined by a single map position.
-
Constructor Summary
ConstructorsConstructorDescriptionPointGeometry(MapPos pos) Constructs a PointGeometry object from a given map position. -
Method Summary
Modifier and TypeMethodDescriptionReturns the center point of the geometry.getPos()Returns the position of the point.intgetType()Returns what kind of geometry this is.
Without it the only way to tell a MultiPoint from a Point is a downcast, or - from a
scripting binding - matching on the wrapper's class name.Methods inherited from class com.massifmaps.geometry.Geometry
equals, getBounds, getGeoJSON, hashCode
-
Constructor Details
-
PointGeometry
Constructs a PointGeometry object from a given map position.- Parameters:
pos- The map position.
-
-
Method Details
-
getCenterPos
Description copied from class:GeometryReturns the center point of the geometry.- Overrides:
getCenterPosin classGeometry- Returns:
- The center point of the geometry.
-
getType
public int getType()Description copied from class:GeometryReturns what kind of geometry this is.
Without it the only way to tell a MultiPoint from a Point is a downcast, or - from a
scripting binding - matching on the wrapper's class name. -
getPos
Returns the position of the point.- Returns:
- The position of the point.
-