Class LineGeometry

java.lang.Object
com.massifmaps.geometry.Geometry
com.massifmaps.geometry.LineGeometry

public class LineGeometry extends Geometry
Line geometry defined by a list of map positions.
  • Constructor Details

    • LineGeometry

      public LineGeometry(MapPosVector poses)
      Constructs a new LineGeometry object from a map position list.
      Parameters:
      poses - The map position list.
  • Method Details

    • getCenterPos

      public MapPos getCenterPos()
      Description copied from class: Geometry
      Returns the center point of the geometry.
      Overrides:
      getCenterPos in class Geometry
      Returns:
      The center point of the geometry.
    • getType

      public int getType()
      Description copied from class: Geometry
      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.
      Overrides:
      getType in class Geometry
      Returns:
      The geometry type.
    • getPoses

      public MapPosVector getPoses()
      Returns the list of of map positions defining the line.
      Returns:
      The list of of map positions defining the line.