Class OGCPolygon

    • Field Detail

      • TYPE

        public static java.lang.String TYPE
    • Method Detail

      • exteriorRing

        public OGCLineString exteriorRing()
        Returns the exterior ring of this Polygon.
        Returns:
        OGCLinearRing instance.
      • numInteriorRing

        public int numInteriorRing()
        Returns the number of interior rings in this Polygon.
      • interiorRingN

        public OGCLineString interiorRingN​(int n)
        Returns the Nth interior ring for this Polygon as a LineString.
        Parameters:
        n - The 0 based index of the interior ring.
        Returns:
        OGCLinearRing instance.
      • estimateMemorySize

        public long estimateMemorySize()
        Description copied from class: OGCGeometry
        Returns an estimate of this object size in bytes.

        This estimate doesn't include the size of the SpatialReference object because instances of SpatialReference are expected to be shared among geometry objects.

        Specified by:
        estimateMemorySize in class OGCGeometry
        Returns:
        Returns an estimate of this object size in bytes.
      • convertToMulti

        public OGCGeometry convertToMulti()
        Description copied from class: OGCGeometry
        Converts this Geometry to the OGCMulti* if it is not OGCMulti* or OGCGeometryCollection already.
        Specified by:
        convertToMulti in class OGCGeometry
        Returns:
        OGCMulti* or OGCGeometryCollection instance.
      • reduceFromMulti

        public OGCGeometry reduceFromMulti()
        Description copied from class: OGCGeometry
        For the geometry collection types, when it has 1 or 0 elements, converts a MultiPolygon to Polygon, MultiPoint to Point, MultiLineString to a LineString, and OGCConcretGeometryCollection to the reduced element it contains. If OGCConcretGeometryCollection is empty, returns self.
        Specified by:
        reduceFromMulti in class OGCGeometry
        Returns:
        A reduced geometry or this.