Class OGCConcreteGeometryCollection
java.lang.Object
com.esri.core.geometry.ogc.OGCGeometry
com.esri.core.geometry.ogc.OGCGeometryCollection
com.esri.core.geometry.ogc.OGCConcreteGeometryCollection
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate static classprivate static class -
Field Summary
FieldsFields inherited from class OGCGeometry
esriSR -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionasBinary()(package private) StringasGeoJsonImpl(int export_flags) asJson()asText()boundary()booleancontains(OGCGeometry another) Converts this Geometry to the OGCMulti* if it is not OGCMulti* or OGCGeometryCollection already.intbooleancrosses(OGCGeometry another) difference(OGCGeometry another) intbooleandisjoint(OGCGeometry another) doubledistance(OGCGeometry another) envelope()booleanbooleanEquals(OGCGeometry another) OGC equals.longReturns an estimate of this object size in bytes.flatten()Flattens Geometry Collection.Fixes topological overlaps in the GeometryCollecion.geometryN(int n) Returns the Nth geometry in this GeometryCollection.inthashCode()intersection(OGCGeometry another) booleanis3D()protected booleanbooleanisEmpty()booleanChecks if collection is flattened.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.locateAlong(double mValue) locateBetween(double mStart, double mEnd) makeSimpleRelaxed is not supported for the GeometryCollection instance.makeSimpleRelaxed(boolean forceProcessing) makeSimpleRelaxed is not supported for the GeometryCollection instance.doubledoubleMaxZ()doubledoubleMinZ()intReturns the number of geometries in this GeometryCollection.booleanoverlaps(OGCGeometry another) private GeometryCursorprepare_for_ops_(OGCConcreteGeometryCollection collection) 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.booleanrelate(OGCGeometry another, String matrix) private GeometryCursorremoveOverlapsHelper_(List<Geometry> geoms) voidsetSpatialReference(SpatialReference esriSR_) symDifference(OGCGeometry another) private static OGCConcreteGeometryCollectiontoGeometryCollection(OGCGeometry geometry) toList(GeometryCursor cursor) booleantouches(OGCGeometry another) Methods inherited from class OGCGeometry
buffer, centroid, createFromEsriCursor, createFromEsriCursor, createFromEsriGeometry, createFromEsriGeometry, createFromOGCStructure, equals, fromBinary, fromEsriShape, fromGeoJson, fromJson, fromText, getEsriSpatialReference, intersects, MakeSimpleRelaxed, SRID, toString, union, within
-
Field Details
-
TYPE
-
geometries
List<OGCGeometry> geometries
-
-
Constructor Details
-
OGCConcreteGeometryCollection
-
OGCConcreteGeometryCollection
-
OGCConcreteGeometryCollection
-
OGCConcreteGeometryCollection
-
-
Method Details
-
dimension
public int dimension()- Overrides:
dimensionin classOGCGeometry
-
coordinateDimension
public int coordinateDimension()- Overrides:
coordinateDimensionin classOGCGeometry
-
is3D
public boolean is3D()- Overrides:
is3Din classOGCGeometry
-
isMeasured
public boolean isMeasured()- Overrides:
isMeasuredin classOGCGeometry
-
envelope
- Overrides:
envelopein classOGCGeometry
-
numGeometries
public int numGeometries()Description copied from class:OGCGeometryCollectionReturns the number of geometries in this GeometryCollection.- Specified by:
numGeometriesin classOGCGeometryCollection
-
geometryN
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
- 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.
-
asText
- Overrides:
asTextin classOGCGeometry
-
asBinary
- Overrides:
asBinaryin classOGCGeometry
-
asGeoJson
- Overrides:
asGeoJsonin classOGCGeometry
-
asGeoJsonImpl
- Overrides:
asGeoJsonImplin classOGCGeometry
-
isEmpty
public boolean isEmpty()- Overrides:
isEmptyin classOGCGeometry
-
MinZ
public double MinZ()- Overrides:
MinZin classOGCGeometry
-
MaxZ
public double MaxZ()- Overrides:
MaxZin classOGCGeometry
-
MinMeasure
public double MinMeasure()- Overrides:
MinMeasurein classOGCGeometry
-
MaxMeasure
public double MaxMeasure()- Overrides:
MaxMeasurein classOGCGeometry
-
isSimple
public boolean isSimple()Description copied from class:OGCGeometryReturns 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.- Overrides:
isSimplein classOGCGeometry- Returns:
- True if geometry is simple and false otherwise. Note: If isSimple is true, then isSimpleRelaxed is true too.
-
makeSimple
makeSimpleRelaxed is not supported for the GeometryCollection instance.- Overrides:
makeSimplein classOGCGeometry- Returns:
- Returns simplified geometry. Note: isSimple and isSimpleRelaxed should return true after this operation.
-
isSimpleRelaxed
public boolean isSimpleRelaxed()Description copied from class:OGCGeometryExtension method - checks if geometry is simple for Geodatabase.- Overrides:
isSimpleRelaxedin classOGCGeometry- 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
makeSimpleRelaxed is not supported for the GeometryCollection instance.- Overrides:
makeSimpleRelaxedin classOGCGeometry- Returns:
- Returns simplified geometry. Note: isSimpleRelaxed should return true after this operation.
-
boundary
- Specified by:
boundaryin classOGCGeometry
-
locateAlong
- Specified by:
locateAlongin classOGCGeometry
-
locateBetween
- Specified by:
locateBetweenin classOGCGeometry
-
getEsriGeometry
- Specified by:
getEsriGeometryin classOGCGeometry
-
getEsriGeometryCursor
- Overrides:
getEsriGeometryCursorin classOGCGeometry
-
isConcreteGeometryCollection
protected boolean isConcreteGeometryCollection()- Overrides:
isConcreteGeometryCollectionin classOGCGeometry
-
convexHull
- Overrides:
convexHullin classOGCGeometry
-
setSpatialReference
- Overrides:
setSpatialReferencein classOGCGeometry
-
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
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.
-
asJson
- Overrides:
asJsonin classOGCGeometry- Returns:
- Convert to REST JSON.
-
equals
- Overrides:
equalsin classOGCGeometry
-
hashCode
public int hashCode()- Overrides:
hashCodein classOGCGeometry
-
distance
- Overrides:
distancein classOGCGeometry
-
overlaps
- Overrides:
overlapsin classOGCGeometry
-
touches
- Overrides:
touchesin classOGCGeometry
-
crosses
- Overrides:
crossesin classOGCGeometry
-
relate
- Overrides:
relatein classOGCGeometry
-
disjoint
- Overrides:
disjointin classOGCGeometry
-
contains
- Overrides:
containsin classOGCGeometry
-
Equals
Description copied from class:OGCGeometryOGC equals. Performs topological comparison with tolerance. This is different from equals(Object), that uses exact comparison.- Overrides:
Equalsin classOGCGeometry
-
toGeometryCollection
-
toList
-
difference
- Overrides:
differencein classOGCGeometry
-
intersection
- Overrides:
intersectionin classOGCGeometry
-
symDifference
- Overrides:
symDifferencein classOGCGeometry
-
isFlattened
public boolean isFlattened()Checks if collection is flattened.- Returns:
- True for the flattened collection. A flattened collection contains up to three non-empty geometries: an OGCMultiPoint, an OGCMultiPolygon, and an OGCMultiLineString.
-
flatten
Flattens Geometry Collection. The result collection contains up to three geometries: an OGCMultiPoint, an OGCMultilineString, and an OGCMultiPolygon (in that order).- Returns:
- A flattened Geometry Collection, or self if already flattened.
-
flattenAndRemoveOverlaps
Fixes topological overlaps in the GeometryCollecion. This is equivalent to union of the geometry collection elements. TODO "flattened" collection is supposed to contain only mutli-geometries, but this method may return single geometries e.g. for GEOMETRYCOLLECTION (LINESTRING (...)) it returns GEOMETRYCOLLECTION (LINESTRING (...)) and not GEOMETRYCOLLECTION (MULTILINESTRING (...))- Returns:
- A geometry collection that is flattened and has no overlapping elements.
-
removeOverlapsHelper_
-
prepare_for_ops_
-