Package io.github.sebasbaumh.postgis
Class Polygon
- java.lang.Object
-
- io.github.sebasbaumh.postgis.Geometry
-
- io.github.sebasbaumh.postgis.PolygonBase<LinearRing>
-
- io.github.sebasbaumh.postgis.Polygon
-
- All Implemented Interfaces:
LineBasedGeometry
,Serializable
,Iterable<LinearRing>
@NonNullByDefault public class Polygon extends PolygonBase<LinearRing>
A polygon.- Author:
- Sebastian Baumhekel
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static int
TYPE
The OGIS geometry type number for polygons.-
Fields inherited from class io.github.sebasbaumh.postgis.Geometry
UNKNOWN_SRID
-
-
Constructor Summary
Constructors Constructor Description Polygon()
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 io.github.sebasbaumh.postgis.Geometry
getDimension, getSrid, getType, numPoints, setSrid
-
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 Detail
-
TYPE
public static final int TYPE
The OGIS geometry type number for polygons.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
Polygon
public Polygon()
Constructs an instance.
-
Polygon
public Polygon(Iterable<LinearRing> rings)
Constructs an instance with the given rings.- Parameters:
rings
- rings (first one will be the outer ring)
-
Polygon
public Polygon(LinearRing lsOuterRing)
Constructs an instance.- Parameters:
lsOuterRing
- outer ring
-
-