public interface Polygon extends Geometry, Polygonal
LinearRings.
The boundary rings of the polygon may have any orientation.
Polygons are closed, simple geometries by definition.
The polygon model conforms to the assertions specified in the OpenGIS Simple Features Specification for SQL.
A Polygon is topologically valid if and only if:
| Modifier and Type | Method and Description |
|---|---|
Polygon |
clone()
Creates and returns a full copy of this
Polygon object. |
LinearRing |
getExteriorRing() |
LinearRing |
getInteriorRing(int ringIndex) |
int |
getNumInteriorRing() |
LinearRing |
getRing(int ringIndex) |
int |
getRingCount() |
List<LinearRing> |
getRings() |
Iterable<LinearRing> |
holes() |
Polygon |
move(double... deltas) |
Polygon |
normalize()
Converts this
Geometry to normal form (or
canonical form ). |
Polygon |
prepare() |
Polygon |
reverse()
Computes a new geometry which has all component coordinate sequences
in reverse order (opposite orientation) to this one.
|
Iterable<LinearRing> |
rings() |
appendVertex, buffer, buffer, buffer, compareTo, compareToSameClass, contains, containsProperly, convert, convert, convexHull, copy, coveredBy, covers, crosses, deleteVertex, difference, disjoint, distance, equal, equals, equals, equals, equalsExact, equalsExact, equalsNorm, equalsTopo, geometries, getArea, getAxisCount, getBoundary, getBoundaryDimension, getBoundingBox, getCentroid, getClassSortIndex, getCoordinateSystem, getDimension, getEnvelope, getGeometries, getGeometries, getGeometry, getGeometryComponents, getGeometryCount, getGeometryFactory, getGeometryType, getInteriorPoint, getLength, getPoint, getPointWithin, getSegment, getSrid, getToVertex, getUserData, getVertex, getVertexCount, hashCode, hasInvalidXyCoordinates, insertVertex, intersection, intersects, intersects, isEmpty, isRectangle, isSimple, isValid, isWithinDistance, moveVertex, overlaps, relate, relate, segments, setUserData, symDifference, toClockwise, toCounterClockwise, touches, toWkt, union, union, vertices, withingetDataTypegetBoundingBoxPolygon clone()
Polygon object.
(including all coordinates contained by it).LinearRing getExteriorRing()
LinearRing getInteriorRing(int ringIndex)
int getNumInteriorRing()
LinearRing getRing(int ringIndex)
int getRingCount()
List<LinearRing> getRings()
Iterable<LinearRing> holes()
Polygon normalize()
GeometryGeometry to normal form (or
canonical form ). Normal form is a unique representation for Geometry
s. It can be used to test whether two Geometrys are equal
in a way that is independent of the ordering of the coordinates within
them. Normal form equality is a stronger condition than topological
equality, but weaker than pointwise equality. The definitions for normal
form use the standard lexicographical ordering for coordinates. "Sorted in
order of coordinates" means the obvious extension of this ordering to
sequences of coordinates.normalize in interface GeometryGeometry.normalize()Polygon reverse()
GeometryIterable<LinearRing> rings()
Copyright © 2015 Revolution Systems Inc.. All rights reserved.