Package uk.ac.rdg.resc.edal.geometry
Interface Polygon
-
- All Superinterfaces:
Domain<HorizontalPosition>,Serializable
- All Known Subinterfaces:
BoundingBox
- All Known Implementing Classes:
AbstractPolygon,BoundingBoxImpl,SimplePolygon
public interface Polygon extends Domain<HorizontalPosition>, Serializable
A polygon in the horizontal plane, defined by a list of vertices in a given coordinate reference system.- Author:
- Jon Blower
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description BoundingBoxgetBoundingBox()org.opengis.referencing.crs.CoordinateReferenceSystemgetCoordinateReferenceSystem()Returns the two-dimensional horizontal coordinate reference system to which theverticesare referenced.List<HorizontalPosition>getVertices()Returns the list of vertices that define this polygon in the horizontal plane.
-
-
-
Method Detail
-
getCoordinateReferenceSystem
org.opengis.referencing.crs.CoordinateReferenceSystem getCoordinateReferenceSystem()
Returns the two-dimensional horizontal coordinate reference system to which theverticesare referenced.- Returns:
- the two-dimensional horizontal coordinate reference system to which the vertices are referenced.
-
getVertices
List<HorizontalPosition> getVertices()
Returns the list of vertices that define this polygon in the horizontal plane. The coordinates of the vertices are defined in this object'scoordinate reference system. TheHorizontalPositions must have the same CRS as this object. Points returned here are in clockwise order. The polygon is considered closed.- Returns:
- the list of vertices that define this polygon in the horizontal plane.
-
getBoundingBox
BoundingBox getBoundingBox()
- Returns:
- The MBR of this
Polygon
-
-