public abstract class OGCGeometry extends Object
Modifier and Type | Field and Description |
---|---|
SpatialReference |
esriSR
SpatialReference of the Geometry.
|
Constructor and Description |
---|
OGCGeometry() |
Modifier and Type | Method and Description |
---|---|
ByteBuffer |
asBinary() |
String |
asGeoJson() |
String |
asJson() |
String |
asText() |
abstract OGCGeometry |
boundary() |
OGCGeometry |
buffer(double distance) |
OGCGeometry |
centroid() |
boolean |
contains(OGCGeometry another) |
abstract OGCGeometry |
convertToMulti()
Converts this Geometry to the OGCMulti* if it is not OGCMulti* or
OGCGeometryCollection already.
|
OGCGeometry |
convexHull() |
int |
coordinateDimension() |
static OGCGeometry |
createFromEsriCursor(GeometryCursor gc,
SpatialReference sr)
Create an OGCGeometry instance from the GeometryCursor.
|
static OGCGeometry |
createFromEsriCursor(GeometryCursor gc,
SpatialReference sr,
boolean skipEmpty) |
static OGCGeometry |
createFromEsriGeometry(Geometry geom,
SpatialReference sr) |
static OGCGeometry |
createFromEsriGeometry(Geometry geom,
SpatialReference sr,
boolean multiType) |
static OGCGeometry |
createFromOGCStructure(OGCStructure ogcStructure,
SpatialReference sr) |
boolean |
crosses(OGCGeometry another) |
OGCGeometry |
difference(OGCGeometry another) |
int |
dimension() |
boolean |
disjoint(OGCGeometry another) |
double |
distance(OGCGeometry another) |
OGCGeometry |
envelope() |
boolean |
equals(Object other) |
boolean |
equals(OGCGeometry another)
Deprecated.
|
boolean |
Equals(OGCGeometry another)
OGC equals.
|
abstract long |
estimateMemorySize()
Returns an estimate of this object size in bytes.
|
static OGCGeometry |
fromBinary(ByteBuffer binary) |
static OGCGeometry |
fromEsriShape(ByteBuffer buffer) |
static OGCGeometry |
fromGeoJson(String string) |
static OGCGeometry |
fromJson(String string) |
static OGCGeometry |
fromText(String text) |
abstract String |
geometryType() |
abstract Geometry |
getEsriGeometry() |
GeometryCursor |
getEsriGeometryCursor() |
SpatialReference |
getEsriSpatialReference() |
int |
hashCode() |
OGCGeometry |
intersection(OGCGeometry another) |
boolean |
intersects(OGCGeometry another) |
boolean |
is3D() |
protected boolean |
isConcreteGeometryCollection() |
boolean |
isEmpty() |
boolean |
isMeasured() |
boolean |
isSimple()
Returns true if this geometric object has no anomalous geometric points,
such as self intersection or self tangency.
|
boolean |
isSimpleRelaxed()
Extension method - checks if geometry is simple for Geodatabase.
|
abstract OGCGeometry |
locateAlong(double mValue) |
abstract OGCGeometry |
locateBetween(double mStart,
double mEnd) |
OGCGeometry |
makeSimple()
Resolves topological issues in this geometry and makes it Simple according to OGC specification.
|
OGCGeometry |
makeSimpleRelaxed(boolean forceProcessing)
Makes a simple geometry for Geodatabase.
|
OGCGeometry |
MakeSimpleRelaxed(boolean forceProcessing)
Deprecated.
|
double |
MaxMeasure() |
double |
MaxZ() |
double |
MinMeasure() |
double |
MinZ() |
boolean |
overlaps(OGCGeometry another) |
abstract 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.
|
boolean |
relate(OGCGeometry another,
String matrix) |
void |
setSpatialReference(SpatialReference esriSR_) |
int |
SRID() |
OGCGeometry |
symDifference(OGCGeometry another) |
String |
toString() |
boolean |
touches(OGCGeometry another) |
OGCGeometry |
union(OGCGeometry another) |
boolean |
within(OGCGeometry another) |
public SpatialReference esriSR
public int dimension()
public int coordinateDimension()
public abstract String geometryType()
public abstract long estimateMemorySize()
This estimate doesn't include the size of the SpatialReference
object
because instances of SpatialReference
are expected to be shared among
geometry objects.
public int SRID()
public OGCGeometry envelope()
public String asText()
public ByteBuffer asBinary()
public String asGeoJson()
public String asJson()
public boolean isEmpty()
public double MinZ()
public double MaxZ()
public double MinMeasure()
public double MaxMeasure()
public boolean isSimple()
public boolean isSimpleRelaxed()
@Deprecated public OGCGeometry MakeSimpleRelaxed(boolean forceProcessing)
public OGCGeometry makeSimpleRelaxed(boolean forceProcessing)
public OGCGeometry makeSimple()
public boolean is3D()
public boolean isMeasured()
public abstract OGCGeometry boundary()
public boolean Equals(OGCGeometry another)
@Deprecated public boolean equals(OGCGeometry another)
public boolean disjoint(OGCGeometry another)
public boolean intersects(OGCGeometry another)
public boolean touches(OGCGeometry another)
public boolean crosses(OGCGeometry another)
public boolean within(OGCGeometry another)
public boolean contains(OGCGeometry another)
public boolean overlaps(OGCGeometry another)
public boolean relate(OGCGeometry another, String matrix)
public abstract OGCGeometry locateAlong(double mValue)
public abstract OGCGeometry locateBetween(double mStart, double mEnd)
public double distance(OGCGeometry another)
public OGCGeometry buffer(double distance)
public OGCGeometry centroid()
public OGCGeometry convexHull()
public OGCGeometry intersection(OGCGeometry another)
public OGCGeometry union(OGCGeometry another)
public OGCGeometry difference(OGCGeometry another)
public OGCGeometry symDifference(OGCGeometry another)
public abstract Geometry getEsriGeometry()
public GeometryCursor getEsriGeometryCursor()
public SpatialReference getEsriSpatialReference()
public static OGCGeometry createFromEsriCursor(GeometryCursor gc, SpatialReference sr)
gc
- sr
- public static OGCGeometry createFromEsriCursor(GeometryCursor gc, SpatialReference sr, boolean skipEmpty)
public static OGCGeometry fromText(String text)
public static OGCGeometry fromBinary(ByteBuffer binary)
public static OGCGeometry fromEsriShape(ByteBuffer buffer)
public static OGCGeometry fromJson(String string)
public static OGCGeometry fromGeoJson(String string)
public static OGCGeometry createFromEsriGeometry(Geometry geom, SpatialReference sr)
public static OGCGeometry createFromEsriGeometry(Geometry geom, SpatialReference sr, boolean multiType)
public static OGCGeometry createFromOGCStructure(OGCStructure ogcStructure, SpatialReference sr)
protected boolean isConcreteGeometryCollection()
public void setSpatialReference(SpatialReference esriSR_)
public abstract OGCGeometry convertToMulti()
public abstract OGCGeometry reduceFromMulti()
Copyright © 2018. All rights reserved.