com.esri.core.geometry.ogc
Class OGCGeometry
java.lang.Object
com.esri.core.geometry.ogc.OGCGeometry
- Direct Known Subclasses:
- OGCCurve, OGCGeometryCollection, OGCPoint, OGCSurface
public abstract class OGCGeometry
- extends Object
OGC Simple Feature Access specification v.1.2.1
|
Method Summary |
ByteBuffer |
asBinary()
|
String |
asGeoJson()
|
String |
asText()
|
abstract OGCGeometry |
boundary()
|
OGCGeometry |
buffer(double distance)
|
boolean |
contains(OGCGeometry another)
|
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(OGCGeometry another)
|
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()
|
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 |
MakeSimpleRelaxed(boolean forceProcessing)
Makes a simple geometry for Geodatabase. |
double |
MaxMeasure()
|
double |
MaxZ()
|
double |
MinMeasure()
|
double |
MinZ()
|
boolean |
overlaps(OGCGeometry another)
|
boolean |
relate(OGCGeometry another,
String matrix)
|
void |
setSpatialReference(SpatialReference esriSR_)
|
int |
SRID()
|
OGCGeometry |
symDifference(OGCGeometry another)
|
boolean |
touches(OGCGeometry another)
|
OGCGeometry |
union(OGCGeometry another)
|
boolean |
within(OGCGeometry another)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
esriSR
public SpatialReference esriSR
- SpatialReference of the Geometry.
OGCGeometry
public OGCGeometry()
dimension
public int dimension()
coordinateDimension
public int coordinateDimension()
geometryType
public abstract String geometryType()
SRID
public int SRID()
envelope
public OGCGeometry envelope()
asText
public String asText()
asBinary
public ByteBuffer asBinary()
asGeoJson
public String asGeoJson()
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.
isSimpleRelaxed
public boolean isSimpleRelaxed()
- Extension method - checks if geometry is simple for Geodatabase.
- Returns:
- Returns true if geometry is simple, false otherwise.
MakeSimpleRelaxed
public OGCGeometry MakeSimpleRelaxed(boolean forceProcessing)
- Makes a simple geometry for Geodatabase.
- Returns:
- Returns simplified geometry.
is3D
public boolean is3D()
isMeasured
public boolean isMeasured()
boundary
public abstract OGCGeometry boundary()
equals
public boolean equals(OGCGeometry another)
disjoint
public boolean disjoint(OGCGeometry another)
intersects
public boolean intersects(OGCGeometry another)
touches
public boolean touches(OGCGeometry another)
crosses
public boolean crosses(OGCGeometry another)
within
public boolean within(OGCGeometry another)
contains
public boolean contains(OGCGeometry another)
overlaps
public boolean overlaps(OGCGeometry another)
relate
public boolean relate(OGCGeometry another,
String matrix)
locateAlong
public abstract OGCGeometry locateAlong(double mValue)
locateBetween
public abstract OGCGeometry locateBetween(double mStart,
double mEnd)
distance
public double distance(OGCGeometry another)
buffer
public OGCGeometry buffer(double distance)
convexHull
public OGCGeometry convexHull()
intersection
public OGCGeometry intersection(OGCGeometry another)
union
public OGCGeometry union(OGCGeometry another)
difference
public OGCGeometry difference(OGCGeometry another)
symDifference
public OGCGeometry symDifference(OGCGeometry another)
getEsriGeometry
public abstract Geometry getEsriGeometry()
getEsriGeometryCursor
public GeometryCursor getEsriGeometryCursor()
getEsriSpatialReference
public SpatialReference getEsriSpatialReference()
createFromEsriCursor
public static OGCGeometry createFromEsriCursor(GeometryCursor gc,
SpatialReference sr)
- 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
public static OGCGeometry fromText(String text)
fromBinary
public static OGCGeometry fromBinary(ByteBuffer binary)
fromEsriShape
public static OGCGeometry fromEsriShape(ByteBuffer buffer)
fromJson
public static OGCGeometry fromJson(String string)
throws org.codehaus.jackson.JsonParseException,
IOException
- Throws:
org.codehaus.jackson.JsonParseException
IOException
fromGeoJson
public static OGCGeometry fromGeoJson(String string)
throws org.json.JSONException
- Throws:
org.json.JSONException
createFromEsriGeometry
public static OGCGeometry createFromEsriGeometry(Geometry geom,
SpatialReference sr)
createFromEsriGeometry
public static OGCGeometry createFromEsriGeometry(Geometry geom,
SpatialReference sr,
boolean multiType)
createFromOGCStructure
public static OGCGeometry createFromOGCStructure(OGCStructure ogcStructure,
SpatialReference sr)
isConcreteGeometryCollection
protected boolean isConcreteGeometryCollection()
setSpatialReference
public void setSpatialReference(SpatialReference esriSR_)
Copyright © 2013. All Rights Reserved.