|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.esri.core.geometry.GeometryEngine
public class GeometryEngine
Provides services that operate on Geometry instances
| Constructor Summary | |
|---|---|
GeometryEngine()
|
|
| Method Summary | |
|---|---|
static Polygon[] |
buffer(Geometry[] geometries,
SpatialReference spatialReference,
double[] distances,
Unit unit,
boolean toUnionResults)
Calculates a buffer polygon for each geometry at each of the corresponding specified distances. |
static Polygon |
buffer(Geometry geometry,
SpatialReference spatialReference,
double distance,
Unit unit)
Calculates buffer polygon of the geometry as specified by the distance input. |
static Geometry |
clip(Geometry geometry,
Envelope envelope,
SpatialReference spatialReference)
calculates the clipped geometry from an target geometry object by an envelope |
static boolean |
contains(Geometry geometry1,
Geometry geometry2,
SpatialReference spatialReference)
Test if one geometry (geometry1) contains another geometry object (geometry2) |
static boolean |
crosses(Geometry geometry1,
Geometry geometry2,
SpatialReference spatialReference)
Test if one geometry (geometry1) crosses another geometry object (geometry2) |
static Geometry |
difference(Geometry geometry1,
Geometry substractor,
SpatialReference spatialReference)
Constructs the difference between two geometries. |
static double |
distance(Geometry geometry1,
Geometry geometry2,
SpatialReference spatialReference)
calculates the distance between two geometries |
static boolean |
equals(Geometry geometry1,
Geometry geometry2,
SpatialReference spatialReference)
Test if two geometry objects are equal |
static String |
geometryToJson(int wkid,
Geometry geometry)
Exports the specified Geometry instance to it's Json representation. |
static Proximity2DResult |
getNearestCoordinate(Geometry geometry,
Point inputPoint,
boolean bTestPolygonInterior)
Finds the coordinate on the geometry which is closest to the specified point |
static Proximity2DResult |
getNearestVertex(Geometry geometry,
Point inputPoint)
Finds nearest vertex on the geometry which is closed to the specified point |
static Proximity2DResult[] |
getNearestVertices(Geometry geometry,
Point inputPoint,
double searchRadius,
int maxVertexCountToReturn)
Finds all vertices in the given distance from the specified point, sorted from closest to furthest |
static MapGeometry |
jsonToGeometry(org.codehaus.jackson.JsonParser json)
Imports the MapGeometry from it's Json representation. |
static Geometry |
project(Geometry geometry,
SpatialReference inputSR,
SpatialReference outputSR)
Projects the given Geometry instance from the input Spatial Reference to the output Spatial Reference. |
static Geometry |
simplify(Geometry geometry,
SpatialReference spatialReference)
Performs the simplify operation on the geometry. |
static boolean |
touches(Geometry geometry1,
Geometry geometry2,
SpatialReference spatialReference)
Test if one geometry (geometry1) touches another geometry object (geometry2) |
static Geometry |
union(Geometry[] geometries,
SpatialReference spatialReference)
Constructs the union of the geometries in the input array. |
static boolean |
within(Geometry geometry1,
Geometry geometry2,
SpatialReference spatialReference)
Test if one geometry (geometry1) is within another geometry object (geometry2) |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public GeometryEngine()
| Method Detail |
|---|
public static Geometry project(Geometry geometry,
SpatialReference inputSR,
SpatialReference outputSR)
geometry - the input Geometry to be projectedinputSR - spatial reference of the input geometryoutputSR - spatial reference to project the geometry to
public static MapGeometry jsonToGeometry(org.codehaus.jackson.JsonParser json)
json - json representation of the geometry (with spaial reference)
public static String geometryToJson(int wkid,
Geometry geometry)
wkid - the spatial reference well known id to be used for the Json representationgeometry - the geometry to be exported to JSON
public static Geometry union(Geometry[] geometries,
SpatialReference spatialReference)
geometries - the geometries to work onspatialReference - the spatial reference of the geometries
public static Geometry difference(Geometry geometry1,
Geometry substractor,
SpatialReference spatialReference)
geometry1 - geometry object being subtractedsubstractor - geometry object to subtract fromspatialReference - of geometries being differenced
public static boolean equals(Geometry geometry1,
Geometry geometry2,
SpatialReference spatialReference)
geometry1 - geometry objectgeometry2 - geometry objectspatialReference - the spatial reference of the two geometries
public static boolean within(Geometry geometry1,
Geometry geometry2,
SpatialReference spatialReference)
geometry1 - geometry object which is withingeometry2 - geometry object which containsspatialReference - the spatial reference of the geometries
public static boolean contains(Geometry geometry1,
Geometry geometry2,
SpatialReference spatialReference)
geometry1 - geometry object to be containergeometry2 - geometry object to be containedspatialReference - the spatial reference of the two geometries
public static boolean crosses(Geometry geometry1,
Geometry geometry2,
SpatialReference spatialReference)
geometry1 - geometry object to crossgeometry2 - geometry object being crossedspatialReference - the spatial reference of the geometries
public static boolean touches(Geometry geometry1,
Geometry geometry2,
SpatialReference spatialReference)
geometry1 - geometry object to touchgeometry2 - geometry object to be touchedspatialReference - the spatial reference of geometries
public static double distance(Geometry geometry1,
Geometry geometry2,
SpatialReference spatialReference)
geometry1 - geometry objectgeometry2 - another geometry objectspatialReference - the spatial reference of the two geometries
public static Geometry clip(Geometry geometry,
Envelope envelope,
SpatialReference spatialReference)
geometry - geometry object to be clippedenvelope - envelope object used to clipspatialReference - the spatial reference of the geometries
public static Polygon[] buffer(Geometry[] geometries,
SpatialReference spatialReference,
double[] distances,
Unit unit,
boolean toUnionResults)
geometries - An array of geometry objects to be bufferedspatialReference - The spatial reference of the geometriesdistances - The corresponding distances for the input geometries to be bufferedunit - The unit of the values in the distances array. Must be of the same Unit type as spatial reference, either both Linear or both Angular.toUnionResults - True if all geometries buffered at a given distance are to be unioned into a single polygon.
public static Polygon buffer(Geometry geometry,
SpatialReference spatialReference,
double distance,
Unit unit)
geometry - Geometry object to be bufferedspatialReference - Spatial reference of the geometrydistance - Specified distance for bufferunit - The unit of the values in the distances array. Must be of the same Unit type as spatial reference, either both Linear or both Angular.
public static Proximity2DResult getNearestCoordinate(Geometry geometry,
Point inputPoint,
boolean bTestPolygonInterior)
inputPoint - input point.bTestPolygonInterior - whether to take into the account that input point is within the polygon.
public static Proximity2DResult getNearestVertex(Geometry geometry,
Point inputPoint)
inputPoint - geometry -
public static Proximity2DResult[] getNearestVertices(Geometry geometry,
Point inputPoint,
double searchRadius,
int maxVertexCountToReturn)
inputPoint - the point to start fromgeometry - the geometry to considersearchRadius - search radiusmaxVertexCountToReturn - max number of vertices to return.
public static Geometry simplify(Geometry geometry,
SpatialReference spatialReference)
geometry - the geometry to be simplified.spatialReference - the spatial reference of the geometry to be simplified.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||