Class OGCGeometry
java.lang.Object
com.esri.core.geometry.ogc.OGCGeometry
- Direct Known Subclasses:
OGCCurve, OGCGeometryCollection, OGCPoint, OGCSurface
OGC Simple Feature Access specification v.1.2.1
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionasBinary()(package private) StringasGeoJsonImpl(int export_flags) asJson()asText()abstract OGCGeometryboundary()buffer(double distance) centroid()booleancontains(OGCGeometry another) abstract OGCGeometryConverts this Geometry to the OGCMulti* if it is not OGCMulti* or OGCGeometryCollection already.intstatic OGCGeometryCreate an OGCGeometry instance from the GeometryCursor.static OGCGeometrycreateFromEsriCursor(GeometryCursor gc, SpatialReference sr, boolean skipEmpty) static OGCGeometrycreateFromEsriGeometry(Geometry geom, SpatialReference sr) static OGCGeometrycreateFromEsriGeometry(Geometry geom, SpatialReference sr, boolean multiType) static OGCGeometrycreateFromOGCStructure(OGCStructure ogcStructure, SpatialReference sr) booleancrosses(OGCGeometry another) difference(OGCGeometry another) intbooleandisjoint(OGCGeometry another) doubledistance(OGCGeometry another) envelope()booleanequals(OGCGeometry another) Deprecated.booleanbooleanEquals(OGCGeometry another) OGC equals.abstract longReturns an estimate of this object size in bytes.static OGCGeometryfromBinary(ByteBuffer binary) static OGCGeometryfromEsriShape(ByteBuffer buffer) static OGCGeometryfromGeoJson(String string) static OGCGeometrystatic OGCGeometryabstract Stringabstract GeometryinthashCode()intersection(OGCGeometry another) booleanintersects(OGCGeometry another) booleanis3D()protected booleanbooleanisEmpty()booleanbooleanisSimple()Returns true if this geometric object has no anomalous geometric points, such as self intersection or self tangency.booleanExtension method - checks if geometry is simple for Geodatabase.abstract OGCGeometrylocateAlong(double mValue) abstract OGCGeometrylocateBetween(double mStart, double mEnd) Resolves topological issues in this geometry and makes it Simple according to OGC specification.makeSimpleRelaxed(boolean forceProcessing) Makes a simple geometry for Geodatabase.MakeSimpleRelaxed(boolean forceProcessing) Deprecated.doubledoubleMaxZ()doubledoubleMinZ()booleanoverlaps(OGCGeometry another) abstract 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.booleanrelate(OGCGeometry another, String matrix) voidsetSpatialReference(SpatialReference esriSR_) private OGCGeometryintSRID()symDifference(OGCGeometry another) toString()booleantouches(OGCGeometry another) union(OGCGeometry another) booleanwithin(OGCGeometry another)
-
Field Details
-
esriSR
SpatialReference of the Geometry.
-
-
Constructor Details
-
OGCGeometry
public OGCGeometry()
-
-
Method Details
-
dimension
public int dimension() -
coordinateDimension
public int coordinateDimension() -
geometryType
-
estimateMemorySize
public abstract long estimateMemorySize()Returns 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.- Returns:
- Returns an estimate of this object size in bytes.
-
SRID
public int SRID() -
envelope
-
asText
-
asBinary
-
asGeoJson
-
asGeoJsonImpl
-
asJson
- Returns:
- Convert to REST JSON.
-
isEmpty
public boolean isEmpty() -
MinZ
public double MinZ() -
MaxZ
public double MaxZ() -
MinMeasure
public double MinMeasure() -
MaxMeasure
public double MaxMeasure() -
isSimple
public boolean isSimple()Returns true if this geometric object has no anomalous geometric points, such as self intersection or self tangency. See the "Simple feature access - Part 1" document (OGC 06-103r4) for meaning of "simple" for each geometry type. The method has O(n log n) complexity when the input geometry is simple. For non-simple geometries, it terminates immediately when the first issue is encountered.- Returns:
- True if geometry is simple and false otherwise. Note: If isSimple is true, then isSimpleRelaxed is true too.
-
isSimpleRelaxed
public boolean isSimpleRelaxed()Extension method - checks if geometry is simple for Geodatabase.- Returns:
- Returns true if geometry is simple, false otherwise. Note: If isSimpleRelaxed is true, then isSimple is either true or false. Geodatabase has more relaxed requirements for simple geometries than OGC.
-
MakeSimpleRelaxed
Deprecated. -
makeSimpleRelaxed
Makes a simple geometry for Geodatabase.- Returns:
- Returns simplified geometry. Note: isSimpleRelaxed should return true after this operation.
-
makeSimple
Resolves topological issues in this geometry and makes it Simple according to OGC specification.- Returns:
- Returns simplified geometry. Note: isSimple and isSimpleRelaxed should return true after this operation.
-
is3D
public boolean is3D() -
isMeasured
public boolean isMeasured() -
boundary
-
Equals
OGC equals. Performs topological comparison with tolerance. This is different from equals(Object), that uses exact comparison. -
equals
Deprecated. -
disjoint
-
intersects
-
touches
-
crosses
-
within
-
contains
-
overlaps
-
relate
-
locateAlong
-
locateBetween
-
distance
-
simplifyBunch_
-
buffer
-
centroid
-
convexHull
-
intersection
-
union
-
difference
-
symDifference
-
getEsriGeometry
-
getEsriGeometryCursor
-
getEsriSpatialReference
-
createFromEsriCursor
Create an OGCGeometry instance from the GeometryCursor.- Parameters:
gc-sr-- Returns:
- Geometry instance created from the geometry cursor.
-
createFromEsriCursor
public static OGCGeometry createFromEsriCursor(GeometryCursor gc, SpatialReference sr, boolean skipEmpty) -
fromText
-
fromBinary
-
fromEsriShape
-
fromJson
-
fromGeoJson
-
createFromEsriGeometry
-
createFromEsriGeometry
public static OGCGeometry createFromEsriGeometry(Geometry geom, SpatialReference sr, boolean multiType) -
createFromOGCStructure
-
isConcreteGeometryCollection
protected boolean isConcreteGeometryCollection() -
setSpatialReference
-
convertToMulti
Converts this Geometry to the OGCMulti* if it is not OGCMulti* or OGCGeometryCollection already.- Returns:
- OGCMulti* or OGCGeometryCollection instance.
-
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. If OGCConcretGeometryCollection is empty, returns self.- Returns:
- A reduced geometry or this.
-
toString
-
equals
-
hashCode
-