public class GeometryService
extends com.google.gwt.core.client.JavaScriptObject
Modifier and Type | Class and Description |
---|---|
static class |
GeometryService.UnitType |
Modifier and Type | Method and Description |
---|---|
void |
addAreasAndLengthsHandler(AreasAndLengthsHandler handler)
Add event handler for areasAndLengths
|
void |
addAutoCompleteHandler(AutoCompleteHandler handler)
Add event handler for autoComplete
|
void |
addBufferHandler(BufferHandler handler)
Add event handler for buffer.
|
void |
addConvexHullHandler(ConvexHullHandler handler)
Add event handler for convexHull
|
void |
addCutHandler(CutHandler handler)
Add event handler for cut.
|
void |
addDifferenceHandler(DifferenceHandler handler)
Add event handler for difference.
|
void |
addDistanceHandler(DistanceHandler handler)
Add event handler for distance.
|
void |
addErrorHandler(ErrorHandler handler)
Add event handler for errors.
|
void |
addGeneralizeHandler(GeneralizeHandler handler)
Add event handler for generalize.
|
void |
addIntersectHandler(IntersectHandler handler)
Add event handler for intersect.
|
void |
addLabelPointsHandler(LabelPointsHandler handler)
Add event handler for labelPoints.
|
void |
addLengthsHandler(LengthsHandler handler)
Add event handler for lengths.
|
void |
addOffsetHandler(OffsetHandler handler)
Add event handler for offset.
|
void |
addProjectHandler(ProjectHandler handler)
Add event handler for project.
|
void |
addRelationHandler(RelationHandler handler)
Add event handler for relation.
|
void |
addReshapeHandler(ReshapeHandler handler)
Add event handler for reshape.
|
void |
addSimplifyHandler(SimplifyHandler handler)
Add event handler for simplify
|
void |
addTrimExtendHandler(TrimExtendHandler handler)
Add event handler for trimExtend.
|
void |
addUnionHandler(UnionHandler handler)
Add event handler for union.
|
Deferred |
areasAndLengths(AreasAndLengthsParameters param)
Computes the area and length for the input polygons.
|
Deferred |
areasAndLengths(AreasAndLengthsParameters param,
AreasAndLengthsCallback callback)
Computes the area and length for the input polygons.
|
Deferred |
autoComplete(Polygon[] polygons,
Polyline[] polylines)
The Auto Complete operation is performed on a geometry service resource.
|
Deferred |
autoComplete(Polygon[] polygons,
Polyline[] polylines,
AutoCompleteCallback callback)
The Auto Complete operation is performed on a geometry service resource.
|
Deferred |
buffer(BufferParameters params)
Creates buffer polygons at a specified distance around the given geometries.
|
Deferred |
buffer(BufferParameters params,
BufferCallback callback)
Creates buffer polygons at a specified distance around the given geometries.
|
Deferred |
convexHull(Geometry[] geometries)
The convexHull operation is performed on a geometry service resource.
|
Deferred |
convexHull(Geometry[] geometries,
ConvexHullCallback callback)
The convexHull operation is performed on a geometry service resource.
|
static GeometryService |
create(java.lang.String url)
Creates a new GeometryService object.
|
Deferred |
cut(Geometry[] targetGeometry,
Geometry cutterGeometry)
The cut operation is performed on a geometry service resource.
|
Deferred |
cut(Geometry[] targetGeometry,
Geometry cutterGeometry,
CutCallback callback)
The cut operation is performed on a geometry service resource.
|
Deferred |
difference(Geometry[] geometries,
Geometry geometry)
The difference operation is performed on a geometry service resource.
|
Deferred |
difference(Geometry[] geometries,
Geometry geometry,
DifferenceCallback callback)
The difference operation is performed on a geometry service resource.
|
Deferred |
distance(DistanceParameters params)
Measures the planar or geodesic distance between geometries.
|
Deferred |
distance(DistanceParameters params,
DistanceCallback callback)
Measures the planar or geodesic distance between geometries.
|
Deferred |
generalize(GeneralizeParameters params)
Generalizes the input geomtries using the Douglas-Peucker algorithim.
|
Deferred |
generalize(GeneralizeParameters params,
GeneralizeCallback callback)
Generalizes the input geomtries using the Douglas-Peucker algorithim.
|
java.lang.String |
getUrl()
URL to the ArcGIS Server REST resource that represents a locator service.
|
Deferred |
intersect(Geometry[] geometries,
Geometry geometry)
The intersect operation is performed on a geometry service resource.
|
Deferred |
intersect(Geometry[] geometries,
Geometry geometry,
IntersectCallback callback)
The intersect operation is performed on a geometry service resource.
|
Deferred |
labelPoints(Geometry[] polygons)
Calculates an interior point for each polygon specified.
|
Deferred |
labelPoints(Geometry[] polygons,
LabelPointsCallback callback)
Calculates an interior point for each polygon specified.
|
Deferred |
lengths(LengthsParameters params)
Gets the lengths for a Geometry[] when the geometry type is Polyline.
|
Deferred |
lengths(LengthsParameters params,
LengthsCallback callback)
Gets the lengths for a Geometry[] when the geometry type is Polyline.
|
Deferred |
offset(OffsetParameters params)
Constructs the offset of the input geometries.
|
Deferred |
offset(OffsetParameters params,
OffsetCallback callback)
Constructs the offset of the input geometries.
|
Deferred |
project(Geometry[] geometries,
SpatialReference outSspatialReference)
Projects a set of geometries into a new spatial reference.
|
Deferred |
project(Geometry[] geometries,
SpatialReference outSspatialReference,
ProjectCallback callback)
Projects a set of geometries into a new spatial reference.
|
Deferred |
relation(RelationParameters params)
Computes the set of pairs of geometries from the input geometry arrays that belong to the specified relation.
|
Deferred |
relation(RelationParameters params,
RelationCallback callback)
Computes the set of pairs of geometries from the input geometry arrays that belong to the specified relation.
|
Deferred |
reshape(Geometry targetGeometry,
Geometry reshaperGeometry)
The reshape operation is performed on a geometry service resource.
|
Deferred |
reshape(Geometry targetGeometry,
Geometry reshaperGeometry,
ReshapeCallback callback)
The reshape operation is performed on a geometry service resource.
|
Deferred |
simplify(Geometry[] geometries)
Alters the given geometries to make their definitions topologically legal with respect to their geometry type.
|
Deferred |
simplify(Geometry[] geometries,
SimplifyCallback callback)
Alters the given geometries to make their definitions topologically legal with respect to their geometry type.
|
Deferred |
trimExtend(TrimExtendParameters params)
Trims or extends the input polylines using the user specified guide polyline.
|
Deferred |
trimExtend(TrimExtendParameters params,
TrimExtendCallback callback)
Trims or extends the input polylines using the user specified guide polyline.
|
Deferred |
union(Geometry[] geometries)
The union operation is performed on a geometry service resource.
|
Deferred |
union(Geometry[] geometries,
UnionCallback callback)
The union operation is performed on a geometry service resource.
|
public static GeometryService create(java.lang.String url)
url
- - URL to the ArcGIS Server REST resource that represents a geometry service.public final java.lang.String getUrl()
public final Deferred areasAndLengths(AreasAndLengthsParameters param, AreasAndLengthsCallback callback)
param
- - Specify the input polygons and optionally the linear and areal units.callback
- - The function to call when the method has completedpublic final Deferred areasAndLengths(AreasAndLengthsParameters param)
param
- - Specify the input polygons and optionally the linear and areal units.public final Deferred autoComplete(Polygon[] polygons, Polyline[] polylines, AutoCompleteCallback callback)
polygons
- - The array of polygons that will provide some boundaries for new polygons.polylines
- - An array of polylines that will provide the remaining boundaries for new polygons.callback
- - The function to call when the method has completed.public final Deferred autoComplete(Polygon[] polygons, Polyline[] polylines)
polygons
- - The array of polygons that will provide some boundaries for new polygons.polylines
- - An array of polylines that will provide the remaining boundaries for new polygons.public final Deferred buffer(BufferParameters params, BufferCallback callback)
params
- - Specifies the input geometries, buffer distances, and other options.callback
- - The function to call when the method has completed.public final Deferred buffer(BufferParameters params)
params
- - Specifies the input geometries, buffer distances, and other options.public final Deferred convexHull(Geometry[] geometries, ConvexHullCallback callback)
geometries
- - The geometries whose convex hull is to be created.callback
- - The function to call when the method has completed.public final Deferred convexHull(Geometry[] geometries)
geometries
- - The geometries whose convex hull is to be created.public final Deferred cut(Geometry[] targetGeometry, Geometry cutterGeometry, CutCallback callback)
targetGeometry
- - The polyline or polygon to be cut.cutterGeometry
- - The polyline that will be used to divide the target into pieces where it crosses the target.callback
- - The function to call when the method has completed.public final Deferred cut(Geometry[] targetGeometry, Geometry cutterGeometry)
targetGeometry
- - The polyline or polygon to be cut.cutterGeometry
- - The polyline that will be used to divide the target into pieces where it crosses the target.public final Deferred difference(Geometry[] geometries, Geometry geometry, DifferenceCallback callback)
geometries
- - An array of points, multipoints, polylines or polygons.geometry
- - A single geometry of any type, of dimension equal to or greater than the elements of geometries.callback
- - The function to call when the method has completed.public final Deferred difference(Geometry[] geometries, Geometry geometry)
geometries
- - An array of points, multipoints, polylines or polygons.geometry
- - A single geometry of any type, of dimension equal to or greater than the elements of geometries.public final Deferred distance(DistanceParameters params, DistanceCallback callback)
params
- - Sets the input geometries to measure, distance units and other parameters.callback
- - The function to call when the method has completed.public final Deferred distance(DistanceParameters params)
params
- - Sets the input geometries to measure, distance units and other parameters.public final Deferred generalize(GeneralizeParameters params, GeneralizeCallback callback)
params
- - An array of geometries to generalize and a maximum deviation.callback
- - The function to call when the method has completed.public final Deferred generalize(GeneralizeParameters params)
params
- - An array of geometries to generalize and a maximum deviation.public final Deferred intersect(Geometry[] geometries, Geometry geometry, IntersectCallback callback)
geometries
- - An array of points, multipoints, polylines or polygons.geometry
- - single geometry of any type, of dimension equal to or greater than the elements of geometries.callback
- - The function to call when the method has completed.public final Deferred intersect(Geometry[] geometries, Geometry geometry)
geometries
- - An array of points, multipoints, polylines or polygons.geometry
- - single geometry of any type, of dimension equal to or greater than the elements of geometries.public final Deferred labelPoints(Geometry[] polygons, LabelPointsCallback callback)
polygons
- - The graphics to process.callback
- - The function to call when the method has completed.public final Deferred labelPoints(Geometry[] polygons)
polygons
- - The graphics to process.public final Deferred lengths(LengthsParameters params, LengthsCallback callback)
params
- - Specify the polylines and optionally the length unit and the geodesic length option.callback
- - The function to call when the method has completed.public final Deferred lengths(LengthsParameters params)
params
- - Specify the polylines and optionally the length unit and the geodesic length option.public final Deferred offset(OffsetParameters params, OffsetCallback callback)
params
- - Set the geometries to offset, distance and units.callback
- - The function to call when the method has completed.public final Deferred offset(OffsetParameters params)
params
- - Set the geometries to offset, distance and units.public final Deferred project(Geometry[] geometries, SpatialReference outSspatialReference, ProjectCallback callback)
geometries
- - The geometries to project.outSspatialReference
- - The well-known ID of a spatial reference.callback
- - The function to call when the method has completed.public final Deferred project(Geometry[] geometries, SpatialReference outSspatialReference)
geometries
- - The geometries to project.outSspatialReference
- - The well-known ID of a spatial reference.public final Deferred relation(RelationParameters params, RelationCallback callback)
params
- - The set of parameters required to perform the comparison.callback
- - The function to call when the method has completed.public final Deferred relation(RelationParameters params)
params
- - The set of parameters required to perform the comparison.public final Deferred reshape(Geometry targetGeometry, Geometry reshaperGeometry, ReshapeCallback callback)
targetGeometry
- - The polyline or polygon to be reshaped.reshaperGeometry
- - The single-part polyline that does the reshaping.callback
- - The function to call when the method has completed.public final Deferred reshape(Geometry targetGeometry, Geometry reshaperGeometry)
targetGeometry
- - The polyline or polygon to be reshaped.reshaperGeometry
- - The single-part polyline that does the reshaping.public final Deferred simplify(Geometry[] geometries, SimplifyCallback callback)
geometries
- - The geometries to simplify.callback
- - The function to call when the method has completed.public final Deferred simplify(Geometry[] geometries)
geometries
- - The geometries to simplify.public final Deferred trimExtend(TrimExtendParameters params, TrimExtendCallback callback)
params
- - Input parameters for the trimExtend operation.callback
- - The function to call when the method has completed.public final Deferred trimExtend(TrimExtendParameters params)
params
- - Input parameters for the trimExtend operation.public final Deferred union(Geometry[] geometries, UnionCallback callback)
geometries
- - The array of geometries to be unioned.callback
- - The function to call when the method has completed.public final Deferred union(Geometry[] geometries)
geometries
- - The array of geometries to be unioned.public final void addAreasAndLengthsHandler(AreasAndLengthsHandler handler)
handler
- - Fires when the areasAndLengths operation is complete.public final void addAutoCompleteHandler(AutoCompleteHandler handler)
handler
- - Fires when the autoComplete operation is complete.public final void addBufferHandler(BufferHandler handler)
handler
- - Fires when the buffer operation is complete.public final void addConvexHullHandler(ConvexHullHandler handler)
handler
- - Fires when the convexHull operation is complete.public final void addCutHandler(CutHandler handler)
handler
- - Fires when the cut operation is complete.public final void addDifferenceHandler(DifferenceHandler handler)
handler
- - Fires when the difference operation is complete.public final void addDistanceHandler(DistanceHandler handler)
handler
- - Fires when the difference operation is complete.public final void addErrorHandler(ErrorHandler handler)
handler
- - Fires when an error occurs when executing the task.public final void addGeneralizeHandler(GeneralizeHandler handler)
handler
- - Fires when the generalize operation is complete.public final void addIntersectHandler(IntersectHandler handler)
handler
- - Fires when the intersect operation is complete.public final void addLabelPointsHandler(LabelPointsHandler handler)
handler
- - Fires when the labelPoints operation is complete.public final void addLengthsHandler(LengthsHandler handler)
handler
- - Fires when the lengths operation is complete.public final void addOffsetHandler(OffsetHandler handler)
handler
- - Fires when the offset operation is complete.public final void addProjectHandler(ProjectHandler handler)
handler
- - Fires when the project operation is complete.public final void addRelationHandler(RelationHandler handler)
handler
- - Fires when the relation operation is complete.public final void addReshapeHandler(ReshapeHandler handler)
handler
- - Fires when the reshape operation is complete.public final void addSimplifyHandler(SimplifyHandler handler)
handler
- - Fires when the trimExtend operation is complete.public final void addTrimExtendHandler(TrimExtendHandler handler)
handler
- - Fires when the trimExtend operation is complete.public final void addUnionHandler(UnionHandler handler)
handler
- - Fires when the union operation is complete.