public class Polygon extends Geometry
| Constructor and Description |
|---|
Polygon()
Constructor
|
Polygon(List<List<Position>> positions)
Constructor
|
Polygon(Polygon polygon)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
List<List<Position>> |
getCoordinates()
Returns coordinates as a GeoJSON Position list
|
Geometry |
getGeometry()
Get the simple geometry
|
String |
getType()
Get the GeoJSON object type
|
getBbox, getForeignMember, getForeignMembers, hasForeignMember, hasForeignMembers, setBbox, setForeignMemberpublic Polygon()
public Polygon(List<List<Position>> positions)
positions - list of positionspublic Polygon(Polygon polygon)
polygon - simple polygonpublic List<List<Position>> getCoordinates()
public Geometry getGeometry()
getGeometry in class Geometrypublic String getType()
getType in class GeoJsonObjectCopyright © 2021 National Geospatial-Intelligence Agency. All rights reserved.