public class OGCPolygon extends OGCSurface
Modifier and Type | Field and Description |
---|---|
static String |
TYPE |
esriSR
Constructor and Description |
---|
OGCPolygon(Polygon src,
int exteriorRing,
SpatialReference sr) |
OGCPolygon(Polygon geom,
SpatialReference sr) |
Modifier and Type | Method and Description |
---|---|
ByteBuffer |
asBinary() |
String |
asText() |
OGCMultiCurve |
boundary() |
OGCGeometry |
convertToMulti()
Converts this Geometry to the OGCMulti* if it is not OGCMulti* or
OGCGeometryCollection already.
|
long |
estimateMemorySize()
Returns an estimate of this object size in bytes.
|
OGCLineString |
exteriorRing()
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.
|
OGCGeometry |
reduceFromMulti()
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.
|
area, pointOnSurface
asGeoJson, asJson, buffer, centroid, contains, convexHull, coordinateDimension, createFromEsriCursor, createFromEsriCursor, createFromEsriGeometry, createFromEsriGeometry, createFromOGCStructure, crosses, difference, dimension, disjoint, distance, envelope, equals, equals, Equals, fromBinary, fromEsriShape, fromGeoJson, fromJson, fromText, getEsriGeometryCursor, getEsriSpatialReference, hashCode, intersection, intersects, is3D, isConcreteGeometryCollection, isEmpty, isMeasured, isSimple, isSimpleRelaxed, makeSimple, makeSimpleRelaxed, MakeSimpleRelaxed, MaxMeasure, MaxZ, MinMeasure, MinZ, overlaps, relate, setSpatialReference, SRID, symDifference, toString, touches, union, within
public static String TYPE
public OGCPolygon(Polygon src, int exteriorRing, SpatialReference sr)
public OGCPolygon(Polygon geom, SpatialReference sr)
public String asText()
asText
in class OGCGeometry
public ByteBuffer asBinary()
asBinary
in class OGCGeometry
public OGCLineString exteriorRing()
public int numInteriorRing()
public OGCLineString interiorRingN(int n)
n
- The 0 based index of the interior ring.public OGCMultiCurve boundary()
boundary
in class OGCSurface
public String geometryType()
geometryType
in class OGCGeometry
public long estimateMemorySize()
OGCGeometry
This estimate doesn't include the size of the SpatialReference
object
because instances of SpatialReference
are expected to be shared among
geometry objects.
estimateMemorySize
in class OGCGeometry
public OGCGeometry locateAlong(double mValue)
locateAlong
in class OGCGeometry
public OGCGeometry locateBetween(double mStart, double mEnd)
locateBetween
in class OGCGeometry
public Geometry getEsriGeometry()
getEsriGeometry
in class OGCGeometry
public OGCGeometry convertToMulti()
OGCGeometry
convertToMulti
in class OGCGeometry
public OGCGeometry reduceFromMulti()
OGCGeometry
reduceFromMulti
in class OGCGeometry
Copyright © 2018. All rights reserved.