Package com.esri.core.geometry.ogc
Class OGCMultiPolygon
- java.lang.Object
-
- com.esri.core.geometry.ogc.OGCGeometry
-
- com.esri.core.geometry.ogc.OGCGeometryCollection
-
- com.esri.core.geometry.ogc.OGCMultiSurface
-
- com.esri.core.geometry.ogc.OGCMultiPolygon
-
public class OGCMultiPolygon extends OGCMultiSurface
-
-
Field Summary
Fields Modifier and Type Field Description (package private) Polygonpolygonstatic java.lang.StringTYPE-
Fields inherited from class com.esri.core.geometry.ogc.OGCGeometry
esriSR
-
-
Constructor Summary
Constructors Constructor Description OGCMultiPolygon(Polygon src, SpatialReference sr)OGCMultiPolygon(SpatialReference sr)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.nio.ByteBufferasBinary()java.lang.StringasGeoJson()java.lang.StringasText()OGCGeometryboundary()OGCGeometryconvertToMulti()Converts this Geometry to the OGCMulti* if it is not OGCMulti* or OGCGeometryCollection already.longestimateMemorySize()Returns an estimate of this object size in bytes.OGCGeometrygeometryN(int n)Returns the Nth geometry in this GeometryCollection.java.lang.StringgeometryType()GeometrygetEsriGeometry()OGCGeometrylocateAlong(double mValue)OGCGeometrylocateBetween(double mStart, double mEnd)intnumGeometries()Returns the number of geometries in this GeometryCollection.OGCGeometryreduceFromMulti()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.-
Methods inherited from class com.esri.core.geometry.ogc.OGCMultiSurface
area, pointOnSurface
-
Methods inherited from class com.esri.core.geometry.ogc.OGCGeometry
asGeoJsonImpl, 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
-
-
-
-
Field Detail
-
TYPE
public static java.lang.String TYPE
-
polygon
Polygon polygon
-
-
Constructor Detail
-
OGCMultiPolygon
public OGCMultiPolygon(Polygon src, SpatialReference sr)
-
OGCMultiPolygon
public OGCMultiPolygon(SpatialReference sr)
-
-
Method Detail
-
asText
public java.lang.String asText()
- Overrides:
asTextin classOGCGeometry
-
asBinary
public java.nio.ByteBuffer asBinary()
- Overrides:
asBinaryin classOGCGeometry
-
asGeoJson
public java.lang.String asGeoJson()
- Overrides:
asGeoJsonin classOGCGeometry
-
numGeometries
public int numGeometries()
Description copied from class:OGCGeometryCollectionReturns the number of geometries in this GeometryCollection.- Specified by:
numGeometriesin classOGCGeometryCollection
-
geometryN
public OGCGeometry geometryN(int n)
Description copied from class:OGCGeometryCollectionReturns the Nth geometry in this GeometryCollection.- Specified by:
geometryNin classOGCGeometryCollection- Parameters:
n- The 0 based index of the geometry.
-
geometryType
public java.lang.String geometryType()
- Specified by:
geometryTypein classOGCGeometry
-
estimateMemorySize
public long estimateMemorySize()
Description copied from class:OGCGeometryReturns an estimate of this object size in bytes.This estimate doesn't include the size of the
SpatialReferenceobject because instances ofSpatialReferenceare expected to be shared among geometry objects.- Specified by:
estimateMemorySizein classOGCGeometry- Returns:
- Returns an estimate of this object size in bytes.
-
boundary
public OGCGeometry boundary()
- Specified by:
boundaryin classOGCGeometry
-
locateAlong
public OGCGeometry locateAlong(double mValue)
- Specified by:
locateAlongin classOGCGeometry
-
locateBetween
public OGCGeometry locateBetween(double mStart, double mEnd)
- Specified by:
locateBetweenin classOGCGeometry
-
getEsriGeometry
public Geometry getEsriGeometry()
- Specified by:
getEsriGeometryin classOGCGeometry
-
convertToMulti
public OGCGeometry convertToMulti()
Description copied from class:OGCGeometryConverts this Geometry to the OGCMulti* if it is not OGCMulti* or OGCGeometryCollection already.- Specified by:
convertToMultiin classOGCGeometry- Returns:
- OGCMulti* or OGCGeometryCollection instance.
-
reduceFromMulti
public OGCGeometry reduceFromMulti()
Description copied from class:OGCGeometryFor 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:
reduceFromMultiin classOGCGeometry- Returns:
- A reduced geometry or this.
-
-