Package com.massifmaps.geometry
Class LineGeometry
java.lang.Object
com.massifmaps.geometry.Geometry
com.massifmaps.geometry.LineGeometry
Line geometry defined by a list of map positions.
-
Constructor Summary
ConstructorsConstructorDescriptionLineGeometry(MapPosVector poses) Constructs a new LineGeometry object from a map position list. -
Method Summary
Modifier and TypeMethodDescriptionReturns the center point of the geometry.getPoses()Returns the list of of map positions defining the line.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
-
LineGeometry
Constructs a new LineGeometry object from a map position list.- Parameters:
poses- The map position list.
-
-
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. -
getPoses
Returns the list of of map positions defining the line.- Returns:
- The list of of map positions defining the line.
-