public class

LineGeometry

extends Geometry
java.lang.Object
   ↳ com.carto.geometry.Geometry
     ↳ com.carto.geometry.LineGeometry

Class Overview

Line geometry defined by a list of map positions.

Summary

Public Constructors
LineGeometry(MapPosVector poses)
Constructs a new LineGeometry object from a map position list.
Public Methods
synchronized void delete()
MapPos getCenterPos()
Returns the center point of the geometry.
MapPosVector getPoses()
Returns the list of of map positions defining the line.
[Expand]
Inherited Methods
From class com.carto.geometry.Geometry
From class java.lang.Object

Public Constructors

public LineGeometry (MapPosVector poses)

Constructs a new LineGeometry object from a map position list.

Parameters
poses The map position list.

Public Methods

public synchronized void delete ()

public MapPos getCenterPos ()

Returns the center point of the geometry.

Returns
  • The center point of the geometry.

public MapPosVector getPoses ()

Returns the list of of map positions defining the line.

Returns
  • The list of of map positions defining the line.