Package io.github.sebasbaumh.postgis
Class Polygon
- All Implemented Interfaces:
LineBasedGeometry
,Serializable
,Iterable<LinearRing>
A polygon.
- Author:
- Sebastian Baumhekel
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
The OGIS geometry type number for polygons.Fields inherited from class io.github.sebasbaumh.postgis.Geometry
UNKNOWN_SRID
-
Constructor Summary
ConstructorsConstructorDescriptionPolygon()
Constructs an instance.Polygon
(LinearRing lsOuterRing) Constructs an instance.Polygon
(Iterable<LinearRing> rings) Constructs an instance with the given rings. -
Method Summary
Methods inherited from class io.github.sebasbaumh.postgis.PolygonBase
addRing, checkConsistency, clearRings, equals, getCoordinates, getEndPoint, getNumberOfCoordinates, getNumberOfRings, getOuterRing, getRings, getStartPoint, hashCode, hasMeasure, is3d, isClockwise, isClosed, isEmpty, iterator, length, setOuterRing, toString
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
Field Details
-
TYPE
public static final int TYPEThe OGIS geometry type number for polygons.- See Also:
-
-
Constructor Details
-
Polygon
public Polygon()Constructs an instance. -
Polygon
Constructs an instance with the given rings.- Parameters:
rings
- rings (first one will be the outer ring)
-
Polygon
Constructs an instance.- Parameters:
lsOuterRing
- outer ring
-