com.esri.core.geometry.ogc
Class OGCPolygon

java.lang.Object
  extended by com.esri.core.geometry.ogc.OGCGeometry
      extended by com.esri.core.geometry.ogc.OGCSurface
          extended by com.esri.core.geometry.ogc.OGCPolygon

public class OGCPolygon
extends OGCSurface


Field Summary
 
Fields inherited from class com.esri.core.geometry.ogc.OGCGeometry
esriSR
 
Constructor Summary
OGCPolygon(Polygon src, int exteriorRing, SpatialReference sr)
           
OGCPolygon(Polygon geom, SpatialReference sr)
           
 
Method Summary
 ByteBuffer asBinary()
           
 String asText()
           
 OGCMultiCurve boundary()
           
 OGCLineString exterorRing()
          Returns the exterior ring of this Polygon.
 String geometryType()
           
 Geometry getEsriGeometry()
           
 OGCLineString interiorRingN(int n)
          Returns the Nth interior ring for this Polygon as a LineString.
 OGCGeometry locateAlong(double mValue)
           
 OGCGeometry locateBetween(double mStart, double mEnd)
           
 int numInteriorRing()
          Returns the number of interior rings in this Polygon.
 
Methods inherited from class com.esri.core.geometry.ogc.OGCSurface
area, centroid, pointOnSurface
 
Methods inherited from class com.esri.core.geometry.ogc.OGCGeometry
asGeoJson, buffer, contains, convexHull, coordinateDimension, createFromEsriCursor, createFromEsriCursor, createFromEsriGeometry, createFromEsriGeometry, createFromOGCStructure, crosses, difference, dimension, disjoint, distance, envelope, equals, fromBinary, fromEsriShape, fromGeoJson, fromJson, fromText, getEsriGeometryCursor, getEsriSpatialReference, intersection, intersects, is3D, isConcreteGeometryCollection, isEmpty, isMeasured, isSimple, isSimpleRelaxed, MakeSimpleRelaxed, MaxMeasure, MaxZ, MinMeasure, MinZ, overlaps, relate, setSpatialReference, SRID, symDifference, touches, union, within
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OGCPolygon

public OGCPolygon(Polygon src,
                  int exteriorRing,
                  SpatialReference sr)

OGCPolygon

public OGCPolygon(Polygon geom,
                  SpatialReference sr)
Method Detail

asText

public String asText()
Overrides:
asText in class OGCGeometry

asBinary

public ByteBuffer asBinary()
Overrides:
asBinary in class OGCGeometry

exterorRing

public OGCLineString exterorRing()
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.

boundary

public OGCMultiCurve boundary()
Specified by:
boundary in class OGCSurface

geometryType

public String geometryType()
Specified by:
geometryType in class OGCGeometry

locateAlong

public OGCGeometry locateAlong(double mValue)
Specified by:
locateAlong in class OGCGeometry

locateBetween

public OGCGeometry locateBetween(double mStart,
                                 double mEnd)
Specified by:
locateBetween in class OGCGeometry

getEsriGeometry

public Geometry getEsriGeometry()
Specified by:
getEsriGeometry in class OGCGeometry


Copyright © 2013. All Rights Reserved.