public class KmlPolygon extends java.lang.Object implements DataPolygon<java.util.ArrayList<java.util.ArrayList<LatLng>>>
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
GEOMETRY_TYPE |
Constructor and Description |
---|
KmlPolygon(java.util.List<LatLng> outerBoundaryCoordinates,
java.util.List<java.util.List<LatLng>> innerBoundaryCoordinates)
Creates a new KmlPolygon object
|
Modifier and Type | Method and Description |
---|---|
java.util.List<java.util.List<LatLng>> |
getGeometryObject()
Gets the coordinates of the Polygon
|
java.lang.String |
getGeometryType()
Gets the type of geometry
|
java.util.List<java.util.List<LatLng>> |
getInnerBoundaryCoordinates()
Gets an array of arrays of inner boundary coordinates
|
java.util.List<LatLng> |
getOuterBoundaryCoordinates()
Gets an array of outer boundary coordinates
|
java.lang.String |
toString() |
public static final java.lang.String GEOMETRY_TYPE
public KmlPolygon(java.util.List<LatLng> outerBoundaryCoordinates, java.util.List<java.util.List<LatLng>> innerBoundaryCoordinates)
outerBoundaryCoordinates
- single array of outer boundary coordinatesinnerBoundaryCoordinates
- multiple arrays of inner boundary coordinatespublic java.lang.String getGeometryType()
getGeometryType
in interface Geometry
public java.util.List<java.util.List<LatLng>> getGeometryObject()
getGeometryObject
in interface Geometry
public java.util.List<LatLng> getOuterBoundaryCoordinates()
getOuterBoundaryCoordinates
in interface DataPolygon<java.util.ArrayList<java.util.ArrayList<LatLng>>>
public java.util.List<java.util.List<LatLng>> getInnerBoundaryCoordinates()
getInnerBoundaryCoordinates
in interface DataPolygon<java.util.ArrayList<java.util.ArrayList<LatLng>>>
public java.lang.String toString()
toString
in class java.lang.Object