public final class Polygon extends Geometry
| Constructor and Description |
|---|
Polygon(CoordinateReferenceSystem coordinateReferenceSystem,
PolygonCoordinates coordinates)
Construct an instance with the given coordinates and coordinate reference system.
|
Polygon(java.util.List<Position> exterior,
java.util.List<Position>... holes)
Construct an instance with the given coordinates.
|
Polygon(PolygonCoordinates coordinates)
Construct an instance with the given coordinates.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object o) |
PolygonCoordinates |
getCoordinates()
Gets the GeoJSON coordinates of the polygon
|
java.util.List<Position> |
getExterior()
Gets the exterior coordinates.
|
java.util.List<java.util.List<Position>> |
getHoles()
Get the holes in this polygon.
|
GeoJsonObjectType |
getType()
Gets the GeoJSON object type.
|
int |
hashCode() |
java.lang.String |
toString() |
getCoordinateReferenceSystem, toJsonpublic Polygon(java.util.List<Position> exterior, java.util.List<Position>... holes)
exterior - the exterior ring of the polygonholes - optional interior rings of the polygonpublic Polygon(PolygonCoordinates coordinates)
coordinates - the coordinatespublic Polygon(@Nullable
CoordinateReferenceSystem coordinateReferenceSystem,
PolygonCoordinates coordinates)
coordinateReferenceSystem - the coordinate reference systemcoordinates - the coordinatespublic GeoJsonObjectType getType()
Geometrypublic PolygonCoordinates getCoordinates()
public java.util.List<Position> getExterior()
public java.util.List<java.util.List<Position>> getHoles()
public java.lang.String toString()
toString in class java.lang.ObjectCopyright © 2010 - 2023 Adobe. All Rights Reserved