com.esri.sde.sdk.geom
Interface Polygon

All Superinterfaces:
Geometry, Surface
All Known Implementing Classes:
SePolygon

public interface Polygon
extends Surface

The Polygon interface defines the methods for a class whose instances create a geometric object which is defined by 1 exterior boundary and 0 or more interior boundaries.


Method Summary
 Linestring exteriorRing()
          Returns the exterior ring of a polygon as a linestring.
 Linestring interiorRingN(int n)
          Returns the nth interior ring of a polygon as a linestring.
 int numInteriorRings()
          Numinteriorrings takes a polygon and returns the number of its interior rings.
 
Methods inherited from interface com.esri.sde.sdk.geom.Surface
area, centroid, perimeter, pointOnSurface
 
Methods inherited from interface com.esri.sde.sdk.geom.Geometry
asBinary, asText, boundary, buffer, contains, convexhull, crosses, difference, dimension, disjoint, distance, envelope, envelopesIntersect, equal, exterior, geometryType, interior, intersect, intersection, is3D, isEmpty, isMeasured, isSimple, isValid, locateAlong, locateBetween, numPoints, overlap, srid, symmetricDiff, touch, union, within
 

Method Detail

exteriorRing

Linestring exteriorRing()
                        throws GeometryException
Returns the exterior ring of a polygon as a linestring.

Throws:
GeometryException

numInteriorRings

int numInteriorRings()
                     throws GeometryException
Numinteriorrings takes a polygon and returns the number of its interior rings.

Throws:
GeometryException

interiorRingN

Linestring interiorRingN(int n)
                         throws GeometryException
Returns the nth interior ring of a polygon as a linestring. The order of the rings cannot be predefined since the rings are organized according to the rules defined by the internal geometry verification routines and not by geometric orientation.

Throws:
GeometryException