This page describes an older version, please see latest API at http://resources.arcgis.com/en/help/flex-api/apiref/com/esri/ags/tasks/GeometryService.html.
Packagecom.esri.ags.tasks
Classpublic class GeometryService
InheritanceGeometryService Inheritance BaseTask Inheritance flash.events.EventDispatcher

Represents a geometry task resource exposed by the ArcGIS Server REST API (available in ArcGIS Server 9.3 and above). This resource provides the service description associated with a geometry service and is primarily a processing and algorithmic resource that supports operations related to geometries.

Set the URL to the ArcGIS Server REST resource that represents a GeometryService, for example, http://sampleserver3.arcgisonline.com/ArcGIS/rest/services/Geometry/GeometryServer. For more information on constructing a URL, see Using the ArcGIS Services Directory.

See also

com.esri.ags.events.GeometryServiceEvent
Live Sample - using a listener for GeometryServiceEvent.BUFFER_COMPLETE.
Live Sample - using a listener for GeometryServiceEvent.BUFFER_COMPLETE.
Live Sample - using arealengthsComplete and simplifyComplete with a GeometryService.
Live Sample - using labelPointsComplete and simplifyComplete with a GeometryService.
Live Sample - using lengthsComplete and projectComplete with a GeometryService.
Live Sample - using projectComplete with a GeometryService.
Live Sample - using relationComplete with a GeometryService.
Live Sample - using simplifyComplete with a GeometryService.


Public Properties
 PropertyDefined By
  areasAndLengthsLastResult : AreasAndLengthsResult
[read-only] The result returned from last call to the areasAndLengths function.
GeometryService
  autoCompleteLastResult : Array
[read-only] Array of polygon returned from last call to the autoComplete function.
GeometryService
 InheritedautoNormalize : Boolean
If true, normalizes the geometries across the central meridian.
BaseTask
  bufferLastResult : Array
[read-only] Array of polygon returned from last call to the buffer function.
GeometryService
 Inheritedconcurrency : String
Value that indicates how to handle multiple calls to the same task.
BaseTask
  convexHullLastResult : Geometry
[read-only] Geometry returned from last call to the convexHull function.
GeometryService
  cutLastResult : CutResult
[read-only] The result returned from last call to the cut function.
GeometryService
  densifyLastResult : Array
[read-only] Array of geometry returned from last call to the densify function.
GeometryService
  differenceLastResult : Array
[read-only] Array of geometry returned from last call to the difference function.
GeometryService
 InheriteddisableClientCaching : Boolean
If true, adds a timestamp parameter ("_ts") to the REST request to prevent the request from being loaded from the browser's cache.
BaseTask
  distanceLastResult : Number
[read-only] The "distance" returned from last call to the distance function.
GeometryService
  generalizeLastResult : Array
[read-only] Array of geometry returned from last call to the generalize function.
GeometryService
  intersectLastResult : Array
[read-only] Array of geometry returned from last call to the intersect function.
GeometryService
  labelPointsLastResult : Array
[read-only] Array of mappoint returned from last call to the labelPoints function.
GeometryService
  lengthsLastResult : Array
[read-only] Array of "length" returned from last call to the lengths function.
GeometryService
 Inheritedmethod : String
URL request method to use.
BaseTask
  offsetLastResult : Array
[read-only] Array of geometry returned from last call to the offset function.
GeometryService
  projectLastResult : Array
[read-only] Array of geometry returned from last call to the project function.
GeometryService
 InheritedproxyURL : String
The URL to proxy the request through.
BaseTask
  relationLastResult : Array
[read-only] Object with array of "relation" returned from last call to the relation function.
GeometryService
 InheritedrequestTimeout : int
The request timeout in seconds.
BaseTask
  reshapeLastResult : Geometry
[read-only] Geometry returned from last call to the reshape function.
GeometryService
 InheritedshowBusyCursor : Boolean
If true, a busy cursor is displayed while a service is executing.
BaseTask
  simplifyLastResult : Array
[read-only] Array of geometry returned from last call to the simplify function.
GeometryService
 Inheritedtoken : String
Token for accessing a secure task.
BaseTask
  trimExtendLastResult : Array
[read-only] Array of polyline returned from last call to the trimExtend function.
GeometryService
  unionLastResult : Geometry
[read-only] Geometry returned from last call to the union function.
GeometryService
 Inheritedurl : String
URL of the task.
BaseTask
Public Methods
 MethodDefined By
  
GeometryService(url:String = null)
Creates a new GeometryService object.
GeometryService
  
areasAndLengths(areasAndLengthsParameters:AreasAndLengthsParameters, responder:IResponder = null):AsyncToken
The areasAndLengths operation is performed on a geometry service resource.
GeometryService
  
autoComplete(polygons:Array, polylines:Array, responder:IResponder = null):AsyncToken
The AutoComplete operation simplifies the process of constructing new polygons that are adjacent to other polygons.
GeometryService
  
buffer(bufferParameters:BufferParameters, responder:IResponder = null):AsyncToken
The buffer operation is performed on a geometry service resource.
GeometryService
  
convexHull(geometries:Array, outSR:SpatialReference, responder:IResponder = null):AsyncToken
The convexHull operation is performed on a geometry service resource (only available with ArcGIS Server 10.0 or above).
GeometryService
  
cut(targetGeometries:Array, cutterPolyline:Polyline, responder:IResponder = null):AsyncToken
The cut operation splits the input polyline or polygon where it crosses a cutting polyline (only available with ArcGIS Server 10.0 or above).
GeometryService
  
densify(densifyParameters:DensifyParameters, responder:IResponder = null):AsyncToken
The densify operation is performed on a geometry service resource (only available with ArcGIS Server 10.0 or above).
GeometryService
  
difference(geometries:Array, geometry:Geometry, responder:IResponder = null):AsyncToken
The difference operation is performed on a geometry service resource (only available with ArcGIS Server 10.0 or above).
GeometryService
  
distance(distanceParameters:DistanceParameters, responder:IResponder = null):AsyncToken
The distance operation is performed on a geometry service resource (only available with ArcGIS Server 10.0 or above).
GeometryService
  
generalize(generalizeParameters:GeneralizeParameters, responder:IResponder = null):AsyncToken
The generalize operation is performed on a geometry service resource (only available with ArcGIS Server 10.0 or above).
GeometryService
  
intersect(geometries:Array, geometry:Geometry, responder:IResponder = null):AsyncToken
The intersect operation is performed on a geometry service resource (only available with ArcGIS Server 10.0 or above).
GeometryService
  
labelPoints(polygons:Array, responder:IResponder = null):AsyncToken
The labelPoints operation is performed on a geometry service resource (only available with ArcGIS Server 9.3 Service Pack 1 or above).
GeometryService
  
lengths(lengthsParameters:LengthsParameters, responder:IResponder = null):AsyncToken
Calculate the length of each polyline specified in the input array.
GeometryService
  
offset(offsetParameters:OffsetParameters, responder:IResponder = null):AsyncToken
The offset operation is performed on a geometry service resource (only available with ArcGIS Server 10.0 or above).
GeometryService
  
project(geometries:Array, outSpatialReference:SpatialReference, responder:IResponder = null):AsyncToken
Projects a set of geometries into a new spatial reference.
GeometryService
  
relation(relationParameters:RelationParameters, responder:IResponder = null):AsyncToken
The relation operation is performed on a geometry service resource (only available with ArcGIS Server 9.3 Service Pack 1 or above).
GeometryService
  
reshape(targetGeometry:Geometry, reshaperPolyline:Polyline, responder:IResponder = null):AsyncToken
The reshape operation is performed on a geometry service resource (only available with ArcGIS Server 10.0 or above).
GeometryService
  
simplify(geometries:Array, responder:IResponder = null):AsyncToken
Alters the given geometries to make their definitions topologically legal with respect to their geometry type.
GeometryService
  
trimExtend(trimExtendParameters:TrimExtendParameters, responder:IResponder = null):AsyncToken
The trimExtend operation is performed on a geometry service resource (only available with ArcGIS Server 10.0 or above).
GeometryService
  
union(geometries:Array, responder:IResponder = null):AsyncToken
The union operation is performed on a geometry service resource (only available with ArcGIS Server 10.0 or above).
GeometryService
Protected Methods
 MethodDefined By
 Inherited
sendURLVariables(urlSuffix:String, urlVariables:URLVariables, responder:IResponder, operation:Function):AsyncToken
Sends an HTTP request.
BaseTask
Events
 Event Summary Defined By
  Dispatched when an areasAndLengths operation successfully completes.GeometryService
  Dispatched when a autoComplete operation successfully completes.GeometryService
  Dispatched when a buffer operation successfully completes.GeometryService
  Dispatched when a convexHull operation successfully completes.GeometryService
  Dispatched when a cut operation successfully completes.GeometryService
  Dispatched when a densify operation successfully completes.GeometryService
  Dispatched when a difference operation successfully completes.GeometryService
  Dispatched when a distance operation successfully completes.GeometryService
  Dispatched when a GeometryService request fails.GeometryService
  Dispatched when a generalize operation successfully completes.GeometryService
  Dispatched when a intersect operation successfully completes.GeometryService
  Dispatched when a labelPoints operation successfully completes.GeometryService
  Dispatched when a lengths operation successfully completes.GeometryService
  Dispatched when a offset operation successfully completes.GeometryService
  Dispatched when a project operation successfully completes.GeometryService
  Dispatched when a relation operation successfully completes.GeometryService
  Dispatched when a reshape operation successfully completes.GeometryService
  Dispatched when a simplify operation successfully completes.GeometryService
  Dispatched when a trimExtend operation successfully completes.GeometryService
  Dispatched when a union operation successfully completes.GeometryService
Public Constants
 ConstantDefined By
  UNIT_ACRES : String = esriAcres
[static] Acres (areal unit)
GeometryService
  UNIT_ARES : String = esriAres
[static] Ares (areal unit)
GeometryService
  UNIT_FOOT : Number = 9002
[static] International foot (0.3048 meters).
GeometryService
  UNIT_HECTARES : String = esriHectares
[static] Hectares (areal unit)
GeometryService
  UNIT_KILOMETER : Number = 9036
[static] Kilometers.
GeometryService
  UNIT_METER : Number = 9001
[static] International meter.
GeometryService
  UNIT_NAUTICAL_MILE : Number = 9030
[static] Nautical miles (1,852 metres).
GeometryService
  UNIT_SQUARE_CENTIMETERS : String = esriSquareCentimeters
[static] Square Centimeters (areal unit)
GeometryService
  UNIT_SQUARE_DECIMETERS : String = esriSquareDecimeters
[static] Square Decimeters (areal unit)
GeometryService
  UNIT_SQUARE_FEET : String = esriSquareFeet
[static] Square Feet (areal unit)
GeometryService
  UNIT_SQUARE_INCHES : String = esriSquareInches
[static] Square Inches (areal unit)
GeometryService
  UNIT_SQUARE_KILOMETERS : String = esriSquareKilometers
[static] Square Kilometers (areal unit)
GeometryService
  UNIT_SQUARE_METERS : String = esriSquareMeters
[static] Square Meters (areal unit)
GeometryService
  UNIT_SQUARE_MILES : String = esriSquareMiles
[static] Square Miles (areal unit)
GeometryService
  UNIT_SQUARE_MILLIMETERS : String = esriSquareMillimeters
[static] Square Millimeters (areal unit)
GeometryService
  UNIT_SQUARE_YARDS : String = esriSquareYards
[static] Square Yards (areal unit)
GeometryService
  UNIT_STATUTE_MILE : Number = 9093
[static] Miles (5,280 feet, 1,760 yards, or exactly 1,609.344 meters).
GeometryService
  UNIT_US_NAUTICAL_MILE : Number = 109012
[static] US nautical miles.
GeometryService
Property Detail
areasAndLengthsLastResultproperty
areasAndLengthsLastResult:AreasAndLengthsResult  [read-only]

The result returned from last call to the areasAndLengths function.

This property can be used as the source for data binding.


Implementation
    public function get areasAndLengthsLastResult():AreasAndLengthsResult
autoCompleteLastResultproperty 
autoCompleteLastResult:Array  [read-only]

Array of polygon returned from last call to the autoComplete function.

This property can be used as the source for data binding.


Implementation
    public function get autoCompleteLastResult():Array

See also

bufferLastResultproperty 
bufferLastResult:Array  [read-only]

Array of polygon returned from last call to the buffer function.

This property can be used as the source for data binding.


Implementation
    public function get bufferLastResult():Array

See also

convexHullLastResultproperty 
convexHullLastResult:Geometry  [read-only]

Geometry returned from last call to the convexHull function.

This property can be used as the source for data binding.


Implementation
    public function get convexHullLastResult():Geometry
cutLastResultproperty 
cutLastResult:CutResult  [read-only]

The result returned from last call to the cut function.

This property can be used as the source for data binding.


Implementation
    public function get cutLastResult():CutResult
densifyLastResultproperty 
densifyLastResult:Array  [read-only]

Array of geometry returned from last call to the densify function.

This property can be used as the source for data binding.


Implementation
    public function get densifyLastResult():Array

See also

differenceLastResultproperty 
differenceLastResult:Array  [read-only]

Array of geometry returned from last call to the difference function.

This property can be used as the source for data binding.


Implementation
    public function get differenceLastResult():Array

See also

distanceLastResultproperty 
distanceLastResult:Number  [read-only]

The "distance" returned from last call to the distance function.

This property can be used as the source for data binding.


Implementation
    public function get distanceLastResult():Number
generalizeLastResultproperty 
generalizeLastResult:Array  [read-only]

Array of geometry returned from last call to the generalize function.

This property can be used as the source for data binding.


Implementation
    public function get generalizeLastResult():Array

See also

intersectLastResultproperty 
intersectLastResult:Array  [read-only]

Array of geometry returned from last call to the intersect function.

This property can be used as the source for data binding.


Implementation
    public function get intersectLastResult():Array

See also

labelPointsLastResultproperty 
labelPointsLastResult:Array  [read-only]

Array of mappoint returned from last call to the labelPoints function.

This property can be used as the source for data binding.


Implementation
    public function get labelPointsLastResult():Array

See also

lengthsLastResultproperty 
lengthsLastResult:Array  [read-only]

Array of "length" returned from last call to the lengths function.

This property can be used as the source for data binding.


Implementation
    public function get lengthsLastResult():Array
offsetLastResultproperty 
offsetLastResult:Array  [read-only]

Array of geometry returned from last call to the offset function.

This property can be used as the source for data binding.


Implementation
    public function get offsetLastResult():Array

See also

projectLastResultproperty 
projectLastResult:Array  [read-only]

Array of geometry returned from last call to the project function.

This property can be used as the source for data binding.


Implementation
    public function get projectLastResult():Array

See also

relationLastResultproperty 
relationLastResult:Array  [read-only]

Object with array of "relation" returned from last call to the relation function.

This property can be used as the source for data binding.


Implementation
    public function get relationLastResult():Array
reshapeLastResultproperty 
reshapeLastResult:Geometry  [read-only]

Geometry returned from last call to the reshape function.

This property can be used as the source for data binding.


Implementation
    public function get reshapeLastResult():Geometry
simplifyLastResultproperty 
simplifyLastResult:Array  [read-only]

Array of geometry returned from last call to the simplify function.

This property can be used as the source for data binding.


Implementation
    public function get simplifyLastResult():Array

See also

trimExtendLastResultproperty 
trimExtendLastResult:Array  [read-only]

Array of polyline returned from last call to the trimExtend function.

This property can be used as the source for data binding.


Implementation
    public function get trimExtendLastResult():Array

See also

unionLastResultproperty 
unionLastResult:Geometry  [read-only]

Geometry returned from last call to the union function.

This property can be used as the source for data binding.


Implementation
    public function get unionLastResult():Geometry
Constructor Detail
GeometryService()Constructor
public function GeometryService(url:String = null)

Creates a new GeometryService object.

Parameters
url:String (default = null) — [optional] URL to the ArcGIS Server REST resource that represents a geometry service.
Method Detail
areasAndLengths()method
public function areasAndLengths(areasAndLengthsParameters:AreasAndLengthsParameters, responder:IResponder = null):AsyncToken

The areasAndLengths operation is performed on a geometry service resource. This operation calculates areas and perimeter lengths for each polygon specified in the input array. Using ArcGIS Server 10.0 and above it is possible to specify the units for calculating perimeter lengths and areas.

Parameters

areasAndLengthsParameters:AreasAndLengthsParameters — The AreasAndLengthsParameters object contains the input polygons, lengthUnit and areaUnit.
 
responder:IResponder (default = null) — The responder to call on result or fault.

Returns
AsyncToken

See also

autoComplete()method 
public function autoComplete(polygons:Array, polylines:Array, responder:IResponder = null):AsyncToken

The AutoComplete operation simplifies the process of constructing new polygons that are adjacent to other polygons. It constructs polygons that fill in the gaps between existing polygons and a set of polylines.

Parameters

polygons:Array — The array of polygons that will provide some boundaries for new polygons.
 
polylines:Array — The array of polylines that will provide the remaining boundaries for new polygons.
 
responder:IResponder (default = null) — The well-known ID of the spatial reference of the input polygons and polylines.

Returns
AsyncToken

See also

buffer()method 
public function buffer(bufferParameters:BufferParameters, responder:IResponder = null):AsyncToken

The buffer operation is performed on a geometry service resource. The result of this operation is buffer polygons at the specified distances for the input geometry array. An option is available to union buffers at each distance.

Parameters

bufferParameters:BufferParameters — The BufferParameters object contains the input geometries, distances, and optional parameters.
 
responder:IResponder (default = null) — The responder to call on result or fault.

Returns
AsyncToken

See also

convexHull()method 
public function convexHull(geometries:Array, outSR:SpatialReference, responder:IResponder = null):AsyncToken

The convexHull operation is performed on a geometry service resource (only available with ArcGIS Server 10.0 or above). It returns the convex hull of the input geometry. A convex hull is the smallest convex polygon that encloses a group of objects, such as points. The input geometry can be a point, multipoint, polyline or polygon. The hull is typically a polygon but can also be a polyline or point in degenerate cases.

Parameters

geometries:Array — The geometries whose convex hull is to be created.
 
outSR:SpatialReference — The well-known ID of the spatial reference of the output geometry.
 
responder:IResponder (default = null) — The responder to call on result or fault.

Returns
AsyncToken

See also

cut()method 
public function cut(targetGeometries:Array, cutterPolyline:Polyline, responder:IResponder = null):AsyncToken

The cut operation splits the input polyline or polygon where it crosses a cutting polyline (only available with ArcGIS Server 10.0 or above).

Parameters

targetGeometries:Array — The array of polylines or polygons to be cut.
 
cutterPolyline:Polyline — The polyline that will be used to divide the targetGeometry into pieces where it crosses the same.
 
responder:IResponder (default = null) — The responder to call on result or fault.

Returns
AsyncToken

See also

densify()method 
public function densify(densifyParameters:DensifyParameters, responder:IResponder = null):AsyncToken

The densify operation is performed on a geometry service resource (only available with ArcGIS Server 10.0 or above). This operation densifies geometries by plotting points between existing vertices.

Parameters

densifyParameters:DensifyParameters — The DensifyParameters objects contains the geometries, maxSegmentLength, geodesic and other parameters.
 
responder:IResponder (default = null) — The responder to call on result or fault.

Returns
AsyncToken

See also

difference()method 
public function difference(geometries:Array, geometry:Geometry, responder:IResponder = null):AsyncToken

The difference operation is performed on a geometry service resource (only available with ArcGIS Server 10.0 or above). This operation constructs the set-theoretic difference between an array of geometries and another geometry.

Parameters

geometries:Array — An array of points, multipoints, polylines or polygons.
 
geometry:Geometry — A single geometry of any type, of dimension equal to or greater than the elements of "geometries".
 
responder:IResponder (default = null) — The responder to call on result or fault.

Returns
AsyncToken

See also

distance()method 
public function distance(distanceParameters:DistanceParameters, responder:IResponder = null):AsyncToken

The distance operation is performed on a geometry service resource (only available with ArcGIS Server 10.0 or above). It reports the planar (projected space) / geodesic shortest distance between A and B. Distance is reported in the linear units specified by distanceUnit or the units of input geometry spatialReference if distanceUnit is null.

Parameters

distanceParameters:DistanceParameters — The geometry from where the distance is to be measured.
 
responder:IResponder (default = null) — The geometry to which the distance is to be measured.

Returns
AsyncToken

See also

generalize()method 
public function generalize(generalizeParameters:GeneralizeParameters, responder:IResponder = null):AsyncToken

The generalize operation is performed on a geometry service resource (only available with ArcGIS Server 10.0 or above). It returns generalized (Douglas-Poiker) versions of the input geometries. Polylines and polygons may be mixed in the input array. Curved segments may be present in the input polylines/polygons but will be densified using the D-P generalization rule in the output.

Parameters

generalizeParameters:GeneralizeParameters — Set the geometries, maximumDeviation and deviationUnit for the generalize operation.
 
responder:IResponder (default = null) — The responder to call on result or fault.

Returns
AsyncToken

See also

intersect()method 
public function intersect(geometries:Array, geometry:Geometry, responder:IResponder = null):AsyncToken

The intersect operation is performed on a geometry service resource (only available with ArcGIS Server 10.0 or above). This operation constructs the set-theoretic intersection between an array of geometries and another geometry.

Parameters

geometries:Array — An array of points, multipoints, polylines or polygons.
 
geometry:Geometry — A single geometry of any type, of dimension equal to or greater than the elements of "geometries".
 
responder:IResponder (default = null) — The responder to call on result or fault.

Returns
AsyncToken

See also

labelPoints()method 
public function labelPoints(polygons:Array, responder:IResponder = null):AsyncToken

The labelPoints operation is performed on a geometry service resource (only available with ArcGIS Server 9.3 Service Pack 1 or above).

Parameters

polygons:Array — The array of polygons whose label points are to be computed.
 
responder:IResponder (default = null) — The responder to call on result or fault.

Returns
AsyncToken

See also

lengths()method 
public function lengths(lengthsParameters:LengthsParameters, responder:IResponder = null):AsyncToken

Calculate the length of each polyline specified in the input array.

Parameters

lengthsParameters:LengthsParameters — The LengthsParameters object contains the polylines, lengthUnit and optional geodesic parameters.
 
responder:IResponder (default = null) — The responder to call on result or fault.

Returns
AsyncToken

See also

offset()method 
public function offset(offsetParameters:OffsetParameters, responder:IResponder = null):AsyncToken

The offset operation is performed on a geometry service resource (only available with ArcGIS Server 10.0 or above). Offset constructs the offset of the given input polycurve. If the offset parameter is positive the constructed offset will be on the right side of the curve. (Left side offsets are constructed with negative parameters.) Tracing the curve from its first vertex to the last will give you a direction along the curve. It is to the right and left perspective of this direction that the positive and negative parameters will dictate where the offset is contructed. In these terms it is simple to infer where the offset of even horizontal polycurves will be constructed. The offsetHow parameter determines how outer corners between segments are handled. Rounded offset rounds the corner between extended offsets. Bevelled offset squares off the corner after a given ratio distance. Mitered offset attempts to allow extended offsets to naturally intersect, but if that intersection occurs too far from the corner, the corner is eventually bevelled off at a fixed distance.

Parameters

offsetParameters:OffsetParameters — Set the geometries, offsetDistance, offsetHow and other parameters for the offset operation.
 
responder:IResponder (default = null) — The responder to call on result or fault.

Returns
AsyncToken

See also

project()method 
public function project(geometries:Array, outSpatialReference:SpatialReference, responder:IResponder = null):AsyncToken

Projects a set of geometries into a new spatial reference. All geometries need to be of the same geometry type. On completion, the projectComplete event is fired and the optional callback function is invoked. Both the callback and event handlers receive an array of projected geometries.

Parameters

geometries:Array — Array of geometries.
 
outSpatialReference:SpatialReference — The output spatial reference.
 
responder:IResponder (default = null) — The responder to call on result or fault.

Returns
AsyncToken

See also

relation()method 
public function relation(relationParameters:RelationParameters, responder:IResponder = null):AsyncToken

The relation operation is performed on a geometry service resource (only available with ArcGIS Server 9.3 Service Pack 1 or above).

To find out more about using spatialRelationship=SPATIAL_REL_RELATION, read more about the Shape Comparison Language (for example, RELATE(G1, G2, "FFFTTT***")).

Parameters

relationParameters:RelationParameters — Set the geometries1, geometries2, spatialRelationship and other parameters for the relation operation.
 
responder:IResponder (default = null) — The responder to call on result or fault.

Returns
AsyncToken

See also

reshape()method 
public function reshape(targetGeometry:Geometry, reshaperPolyline:Polyline, responder:IResponder = null):AsyncToken

The reshape operation is performed on a geometry service resource (only available with ArcGIS Server 10.0 or above). It reshapes a polyline or a part of a polygon using a reshaping line.

Parameters

targetGeometry:Geometry — The polyline or polygon to be reshaped.
 
reshaperPolyline:Polyline — The single-part polyline that does the reshaping.
 
responder:IResponder (default = null) — The responder to call on result or fault.

Returns
AsyncToken

See also

simplify()method 
public function simplify(geometries:Array, responder:IResponder = null):AsyncToken

Alters the given geometries to make their definitions topologically legal with respect to their geometry type. On completion, the simplifyComplete event is fired and the optional callback function is invoked. Both the callback and event handlers receive an array of the simplified geometries.

Note: The XY tolerance property of the geometry's associated spatial reference is used during the simplify operation for polylines and polygons, which might slightly change exact locations.

Parameters

geometries:Array — The array of geometries to be simplified.
 
responder:IResponder (default = null) — The responder to call on result or fault.

Returns
AsyncToken

See also

trimExtend()method 
public function trimExtend(trimExtendParameters:TrimExtendParameters, responder:IResponder = null):AsyncToken

The trimExtend operation is performed on a geometry service resource (only available with ArcGIS Server 10.0 or above). This operation trims / extends each polyline specified in the input array, using the user specified guide polylines. When trimming features, the part to the left of the oriented cutting line is preserved in the output and the other part is discarded. An empty polyline is added to the output array if the corresponding input polyline is neither cut nor extended.

Parameters

trimExtendParameters:TrimExtendParameters — Set the polylines, trimExtendPolyline and extendHow for the trimExtend operation.
 
responder:IResponder (default = null) — The responder to call on result or fault.

Returns
AsyncToken

See also

union()method 
public function union(geometries:Array, responder:IResponder = null):AsyncToken

The union operation is performed on a geometry service resource (only available with ArcGIS Server 10.0 or above). This operation constructs the set-theoretic union of the geometries in the input array. All inputs must be of the same type.

Parameters

geometries:Array — The array of geometries to be unioned.
 
responder:IResponder (default = null) — The responder to call on result or fault.

Returns
AsyncToken

See also

Event Detail
areasAndLengthsComplete Event
Event Object Type: com.esri.ags.events.GeometryServiceEvent
GeometryServiceEvent.type property = com.esri.ags.events.GeometryServiceEvent.AREAS_AND_LENGTHS_COMPLETE

Dispatched when an areasAndLengths operation successfully completes.

Defines the value of the type property of an areasAndLengthsComplete event object.
autoCompleteComplete Event  
Event Object Type: com.esri.ags.events.GeometryServiceEvent
GeometryServiceEvent.type property = com.esri.ags.events.GeometryServiceEvent.AUTO_COMPLETE_COMPLETE

Dispatched when a autoComplete operation successfully completes.

Defines the value of the type property of a autoCompleteComplete event object [added in version 2.0] - note: autoComplete() is only available with ArcGIS Server 10.0 or above.
bufferComplete Event  
Event Object Type: com.esri.ags.events.GeometryServiceEvent
GeometryServiceEvent.type property = com.esri.ags.events.GeometryServiceEvent.BUFFER_COMPLETE

Dispatched when a buffer operation successfully completes.

Defines the value of the type property of a bufferComplete event object.
convexHullComplete Event  
Event Object Type: com.esri.ags.events.GeometryServiceEvent
GeometryServiceEvent.type property = com.esri.ags.events.GeometryServiceEvent.CONVEX_HULL_COMPLETE

Dispatched when a convexHull operation successfully completes.

Defines the value of the type property of a convexHullComplete event object [added in version 2.0] - note: convexHull() is only available with ArcGIS Server 10.0 or above.
cutComplete Event  
Event Object Type: com.esri.ags.events.GeometryServiceEvent
GeometryServiceEvent.type property = com.esri.ags.events.GeometryServiceEvent.CUT_COMPLETE

Dispatched when a cut operation successfully completes.

Defines the value of the type property of a cutComplete event object [added in version 2.0] - note: cut() is only available with ArcGIS Server 10.0 or above.
densifyComplete Event  
Event Object Type: com.esri.ags.events.GeometryServiceEvent
GeometryServiceEvent.type property = com.esri.ags.events.GeometryServiceEvent.DENSIFY_COMPLETE

Dispatched when a densify operation successfully completes.

Defines the value of the type property of a densifyComplete event object [added in version 2.0] - note: densify() is only available with ArcGIS Server 10.0 or above.
differenceComplete Event  
Event Object Type: com.esri.ags.events.GeometryServiceEvent
GeometryServiceEvent.type property = com.esri.ags.events.GeometryServiceEvent.DIFFERENCE_COMPLETE

Dispatched when a difference operation successfully completes.

Defines the value of the type property of a differenceComplete event object [added in version 2.0] - note: difference() is only available with ArcGIS Server 10.0 or above.
distanceComplete Event  
Event Object Type: com.esri.ags.events.GeometryServiceEvent
GeometryServiceEvent.type property = com.esri.ags.events.GeometryServiceEvent.DISTANCE_COMPLETE

Dispatched when a distance operation successfully completes.

Defines the value of the type property of a distanceComplete event object [added in version 2.0] - note: distance() is only available with ArcGIS Server 10.0 or above.
fault Event  
Event Object Type: mx.rpc.events.FaultEvent
FaultEvent.type property = mx.rpc.events.FaultEvent.FAULT

Dispatched when a GeometryService request fails. Applies to all methods.

generalizeComplete Event  
Event Object Type: com.esri.ags.events.GeometryServiceEvent
GeometryServiceEvent.type property = com.esri.ags.events.GeometryServiceEvent.GENERALIZE_COMPLETE

Dispatched when a generalize operation successfully completes.

Defines the value of the type property of a generalizeComplete event object [added in version 2.0] - note: generalize() is only available with ArcGIS Server 10.0 or above.
intersectComplete Event  
Event Object Type: com.esri.ags.events.GeometryServiceEvent
GeometryServiceEvent.type property = com.esri.ags.events.GeometryServiceEvent.INTERSECT_COMPLETE

Dispatched when a intersect operation successfully completes.

Defines the value of the type property of a intersectComplete event object [added in version 2.0] - note: intersect() is only available with ArcGIS Server 10.0 or above.
labelPointsComplete Event  
Event Object Type: com.esri.ags.events.GeometryServiceEvent
GeometryServiceEvent.type property = com.esri.ags.events.GeometryServiceEvent.LABEL_POINTS_COMPLETE

Dispatched when a labelPoints operation successfully completes.

Defines the value of the type property of a labelPointsComplete event object [added in version 1.1] - note: labelPoints() is only available with ArcGIS Server 9.3 Service Pack 1 or above.
lengthsComplete Event  
Event Object Type: com.esri.ags.events.GeometryServiceEvent
GeometryServiceEvent.type property = com.esri.ags.events.GeometryServiceEvent.LENGTHS_COMPLETE

Dispatched when a lengths operation successfully completes.

Defines the value of the type property of a lengthsComplete event object.
offsetComplete Event  
Event Object Type: com.esri.ags.events.GeometryServiceEvent
GeometryServiceEvent.type property = com.esri.ags.events.GeometryServiceEvent.OFFSET_COMPLETE

Dispatched when a offset operation successfully completes.

Defines the value of the type property of a offsetComplete event object [added in version 2.0] - note: offset() is only available with ArcGIS Server 10.0 or above.
projectComplete Event  
Event Object Type: com.esri.ags.events.GeometryServiceEvent
GeometryServiceEvent.type property = com.esri.ags.events.GeometryServiceEvent.PROJECT_COMPLETE

Dispatched when a project operation successfully completes.

Defines the value of the type property of a projectComplete event object.
relationComplete Event  
Event Object Type: com.esri.ags.events.GeometryServiceEvent
GeometryServiceEvent.type property = com.esri.ags.events.GeometryServiceEvent.RELATION_COMPLETE

Dispatched when a relation operation successfully completes.

Defines the value of the type property of a relationComplete event object - note: relation() is only available with ArcGIS Server 9.3 Service Pack 1 or above.
reshapeComplete Event  
Event Object Type: com.esri.ags.events.GeometryServiceEvent
GeometryServiceEvent.type property = com.esri.ags.events.GeometryServiceEvent.RESHAPE_COMPLETE

Dispatched when a reshape operation successfully completes.

Defines the value of the type property of a reshapeComplete event object [added in version 2.0] - note: reshape() is only available with ArcGIS Server 10.0 or above.
simplifyComplete Event  
Event Object Type: com.esri.ags.events.GeometryServiceEvent
GeometryServiceEvent.type property = com.esri.ags.events.GeometryServiceEvent.SIMPLIFY_COMPLETE

Dispatched when a simplify operation successfully completes.

Defines the value of the type property of a simplifyComplete event object.
trimExtendComplete Event  
Event Object Type: com.esri.ags.events.GeometryServiceEvent
GeometryServiceEvent.type property = com.esri.ags.events.GeometryServiceEvent.TRIM_EXTEND_COMPLETE

Dispatched when a trimExtend operation successfully completes.

Defines the value of the type property of a trimExtendComplete event object [added in version 2.0] - note: trimExtend() is only available with ArcGIS Server 10.0 or above.
unionComplete Event  
Event Object Type: com.esri.ags.events.GeometryServiceEvent
GeometryServiceEvent.type property = com.esri.ags.events.GeometryServiceEvent.UNION_COMPLETE

Dispatched when a union operation successfully completes.

Defines the value of the type property of a unionComplete event object [added in version 2.0] - note: unionComplete() is only available with ArcGIS Server 10.0 or above.
Constant Detail
UNIT_ACRESConstant
public static const UNIT_ACRES:String = esriAcres

Acres (areal unit)

UNIT_ARESConstant 
public static const UNIT_ARES:String = esriAres

Ares (areal unit)

UNIT_FOOTConstant 
public static const UNIT_FOOT:Number = 9002

International foot (0.3048 meters).

UNIT_HECTARESConstant 
public static const UNIT_HECTARES:String = esriHectares

Hectares (areal unit)

UNIT_KILOMETERConstant 
public static const UNIT_KILOMETER:Number = 9036

Kilometers.

UNIT_METERConstant 
public static const UNIT_METER:Number = 9001

International meter.

UNIT_NAUTICAL_MILEConstant 
public static const UNIT_NAUTICAL_MILE:Number = 9030

Nautical miles (1,852 metres).

UNIT_SQUARE_CENTIMETERSConstant 
public static const UNIT_SQUARE_CENTIMETERS:String = esriSquareCentimeters

Square Centimeters (areal unit)

UNIT_SQUARE_DECIMETERSConstant 
public static const UNIT_SQUARE_DECIMETERS:String = esriSquareDecimeters

Square Decimeters (areal unit)

UNIT_SQUARE_FEETConstant 
public static const UNIT_SQUARE_FEET:String = esriSquareFeet

Square Feet (areal unit)

UNIT_SQUARE_INCHESConstant 
public static const UNIT_SQUARE_INCHES:String = esriSquareInches

Square Inches (areal unit)

UNIT_SQUARE_KILOMETERSConstant 
public static const UNIT_SQUARE_KILOMETERS:String = esriSquareKilometers

Square Kilometers (areal unit)

UNIT_SQUARE_METERSConstant 
public static const UNIT_SQUARE_METERS:String = esriSquareMeters

Square Meters (areal unit)

UNIT_SQUARE_MILESConstant 
public static const UNIT_SQUARE_MILES:String = esriSquareMiles

Square Miles (areal unit)

UNIT_SQUARE_MILLIMETERSConstant 
public static const UNIT_SQUARE_MILLIMETERS:String = esriSquareMillimeters

Square Millimeters (areal unit)

UNIT_SQUARE_YARDSConstant 
public static const UNIT_SQUARE_YARDS:String = esriSquareYards

Square Yards (areal unit)

UNIT_STATUTE_MILEConstant 
public static const UNIT_STATUTE_MILE:Number = 9093

Miles (5,280 feet, 1,760 yards, or exactly 1,609.344 meters).

UNIT_US_NAUTICAL_MILEConstant 
public static const UNIT_US_NAUTICAL_MILE:Number = 109012

US nautical miles.