| Package | com.esri.ags.tasks |
| Class | public class GeometryService |
| Inheritance | GeometryService BaseTask flash.events.EventDispatcher |
Set the url to the ArcGIS Server REST resource that represents a GeometryService, e.g. http://sampleserver1.arcgisonline.com/ArcGIS/rest/services/Geometry/GeometryServer. For more information on constructing a URL, see Using the ArcGIS Services Directory.
See also
| Property | Defined by | ||
|---|---|---|---|
| areasAndLengthsLastResult : Object
The last result of the areasAndlengths function execution.
| GeometryService | ||
| bufferLastResult : Array
The last result of the buffer function execution.
| GeometryService | ||
![]() | concurrency : String = "multiple"
Value that indicates how to handle multiple calls to the same task.
| BaseTask | |
![]() | disableClientCaching : 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 | |
| labelPointsLastResult : Array
The last result of the labelPoints function execution.
| GeometryService | ||
| lengthsLastResult : Array
The last result of the lengths function execution.
| GeometryService | ||
| projectLastResult : Array
The last result of the project function execution.
| GeometryService | ||
![]() | proxyURL : String
The URL to proxy the request through.
| BaseTask | |
| relationLastResult : Array
The last result of the relation function execution.
| GeometryService | ||
![]() | requestTimeout : Number = -1
The request timeout in seconds.
| BaseTask | |
![]() | showBusyCursor : Boolean = false
If true, a busy cursor is displayed while a service is executing.
| BaseTask | |
| simplifyLastResult : Array
The last result of the simplify function execution.
| GeometryService | ||
![]() | token : String
Token for accessing a secure task.
| BaseTask | |
![]() | url : String
URL of the task.
| BaseTask | |
| Method | Defined by | ||
|---|---|---|---|
|
GeometryService(url:String = null)
Creates a new GeometryService object.
| GeometryService | ||
|
areasAndLengths(graphics:Array, responder:IResponder = null):AsyncToken
The areasAndLengths operation is performed on a geometry service resource.
| GeometryService | ||
|
buffer(bufferParameters:BufferParameters, responder:IResponder = null):AsyncToken
The buffer operation is performed on a geometry service resource.
| GeometryService | ||
|
labelPoints(graphics: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(graphics:Array, responder:IResponder = null):AsyncToken
The lengths operation is performed on a geometry service resource.
| GeometryService | ||
|
project(graphics:Array, outSpatialReference:SpatialReference, responder:IResponder = null):AsyncToken
Projects a set of graphics into a new spatial reference.
| GeometryService | ||
|
relation(graphics1:Array, graphics2:Array, spatialRelationship:String, comparisonString:String = null, responder:IResponder = null):AsyncToken
The relation operation is performed on a geometry service resource.
| GeometryService | ||
|
simplify(graphics:Array, responder:IResponder = null):AsyncToken
Alters the given geometries to make their definitions topologically legal with respect to their geometry type.
| GeometryService | ||
| Event | Summary | Defined by | ||
|---|---|---|---|---|
| Dispatched when an areasAndLengths task successfully completes. | GeometryService | |||
| Dispatched when a buffer task successfully completes. | GeometryService | |||
| Dispatched when a GeometryService request fails. | GeometryService | |||
| Dispatched when a labelPoints task successfully completes. | GeometryService | |||
| Dispatched when a lengths task successfully completes. | GeometryService | |||
| Dispatched when a projection task successfully completes. | GeometryService | |||
| Dispatched when a relation task successfully completes. | GeometryService | |||
| Dispatched when a simplify task successfully completes. | GeometryService | |||
| Constant | Defined by | ||
|---|---|---|---|
| SPATIAL_REL_COINCIDENCE : String = "esriGeometryRelationLineCoincidence" [static]
The boundaries of the geometries must share an intersection, but the relationship between the interiors of the shapes is not considered (they could overlap, one could be contained in the other, or their interiors could be disjoint).
| GeometryService | ||
| SPATIAL_REL_CROSS : String = "esriGeometryRelationCross" [static]
Two polylines cross if they share only points in common, at least one of which is not an endpoint.
| GeometryService | ||
| SPATIAL_REL_DISJOINT : String = "esriGeometryRelationDisjoint" [static]
Two geometries are disjoint if their intersection is empty.
| GeometryService | ||
| SPATIAL_REL_IN : String = "esriGeometryRelationIn" [static]
The base geometry is within the comparison geometry if the base geometry is the intersection of the geometries and the intersection of their interiors is not empty.
| GeometryService | ||
| SPATIAL_REL_INTERIORINTERSECTION : String = "esriGeometryRelationInteriorIntersection" [static]
Geometries intersect excluding boundary touch.
| GeometryService | ||
| SPATIAL_REL_INTERSECTION : String = "esriGeometryRelationIntersection" [static]
Geometry interiors intersect or boundaries touch, same as 'not disjoint'.
| GeometryService | ||
| SPATIAL_REL_LINETOUCH : String = "esriGeometryRelationLineTouch" [static]
Two geometries are said to touch when the intersection of the geometries is non-empty, but the intersection of their interiors is empty.
| GeometryService | ||
| SPATIAL_REL_OVERLAP : String = "esriGeometryRelationOverlap" [static]
Two polylines share a common sub-line, or two polygons share a common sub-area.
| GeometryService | ||
| SPATIAL_REL_POINTTOUCH : String = "esriGeometryRelationPointTouch" [static]
Two geometries are said to touch when the intersection of the geometries is non-empty, but the intersection of their interiors is empty.
| GeometryService | ||
| SPATIAL_REL_RELATION : String = "esriGeometryRelationRelation" [static]
Allows specification of any relationship defined using the Shape Comparison Language.
| GeometryService | ||
| SPATIAL_REL_TOUCH : String = "esriGeometryRelationTouch" [static]
The union of esriGeometryRelationPointTouch and esriGeometryRelationLineTouch.
| GeometryService | ||
| SPATIAL_REL_WITHIN : String = "esriGeometryRelationWithin" [static]
Same as esriGeometryRelationIn but also allows polylines that are strictly on the boundaries of polygons to be considered 'in' the polygon.
| GeometryService | ||
| areasAndLengthsLastResult | property |
public var areasAndLengthsLastResult:ObjectThe last result of the areasAndlengths function execution.
This property can be used as the source for data binding.
| bufferLastResult | property |
public var bufferLastResult:ArrayThe last result of the buffer function execution.
This property can be used as the source for data binding.
| labelPointsLastResult | property |
public var labelPointsLastResult:ArrayThe last result of the labelPoints function execution.
This property can be used as the source for data binding.
| lengthsLastResult | property |
public var lengthsLastResult:ArrayThe last result of the lengths function execution.
This property can be used as the source for data binding.
| projectLastResult | property |
public var projectLastResult:ArrayThe last result of the project function execution.
This property can be used as the source for data binding.
| relationLastResult | property |
public var relationLastResult:ArrayThe last result of the relation function execution.
This property can be used as the source for data binding.
| simplifyLastResult | property |
public var simplifyLastResult:ArrayThe last result of the simplify function execution.
This property can be used as the source for data binding.
| GeometryService | () | constructor |
public function GeometryService(url:String = null)Creates a new GeometryService object.
Parametersurl:String (default = null) — [optional] URL to the ArcGIS Server REST resource that represents a geometry service.
|
| areasAndLengths | () | method |
public function areasAndLengths(graphics:Array, responder:IResponder = null):AsyncTokenThe areasAndLengths operation is performed on a geometry service resource. This operation calculates areas and perimeter lengths for each polygon specified in the input array.
Parametersgraphics:Array — Array of graphics.
|
|
responder:IResponder (default = null) — The responder to call on result or fault.
|
AsyncToken |
See also
| buffer | () | method |
public function buffer(bufferParameters:BufferParameters, responder:IResponder = null):AsyncTokenThe 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.
ParametersbufferParameters:BufferParameters — Set the features, distances, units, and other parameters for the buffer operation.
|
|
responder:IResponder (default = null) — The responder to call on result or fault.
|
AsyncToken |
See also
| labelPoints | () | method |
public function labelPoints(graphics:Array, responder:IResponder = null):AsyncTokenThe labelPoints operation is performed on a geometry service resource (only available with ArcGIS Server 9.3 Service Pack 1 or above).
Parametersgraphics:Array — Array of graphics.
|
|
responder:IResponder (default = null) — The responder to call on result or fault.
|
AsyncToken |
See also
| lengths | () | method |
public function lengths(graphics:Array, responder:IResponder = null):AsyncTokenThe lengths operation is performed on a geometry service resource. This operation calculates the lengths of each polyline specified in the input array.
Parametersgraphics:Array — Array of graphics.
|
|
responder:IResponder (default = null) — The responder to call on result or fault.
|
AsyncToken |
See also
| project | () | method |
public function project(graphics:Array, outSpatialReference:SpatialReference, responder:IResponder = null):AsyncTokenProjects a set of graphics into a new spatial reference. On completion, the projectComplete event is fired and the optional callback function is invoked. Both the callback and event handlers receive an array of Graphic that contains the projected geometries.
Parametersgraphics:Array — Array of graphics.
|
|
outSpatialReference:SpatialReference — The output spatial reference.
|
|
responder:IResponder (default = null) — The responder to call on result or fault.
|
AsyncToken |
See also
| relation | () | method |
public function relation(graphics1:Array, graphics2:Array, spatialRelationship:String, comparisonString:String = null, responder:IResponder = null):AsyncTokenThe 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 (e.g., RELATE(G1, G2, "FFFTTT)).
graphics1:Array — Array of first set of graphics.
|
|
graphics2:Array — Array of first set of graphics.
|
|
spatialRelationship:String — The spatial relationship to test for (see 12 constants below).
|
|
comparisonString:String (default = null) — The Shape Comparison Language string to be evaluated if spatialRelationship is SPATIAL_REL_RELATION ("esriGeometryRelationRelation").
|
|
responder:IResponder (default = null) — The responder to call on result or fault.
|
AsyncToken |
See also
| simplify | () | method |
public function simplify(graphics:Array, responder:IResponder = null):AsyncTokenAlters 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 Graphic that contains 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.
Parametersgraphics:Array — Array of graphics.
|
|
responder:IResponder (default = null) — The responder to call on result or fault.
|
AsyncToken |
See also
| arealengthsComplete | event |
com.esri.ags.events.GeometryServiceEvent
com.esri.ags.events.GeometryServiceEvent.AREA_LENGTHS_COMPLETE
Dispatched when an areasAndLengths task successfully completes.
Defines the value of the type property of an areaLengthsComplete event object.
| bufferComplete | event |
com.esri.ags.events.GeometryServiceEvent
com.esri.ags.events.GeometryServiceEvent.BUFFER_COMPLETE
Dispatched when a buffer task successfully completes.
Defines the value of the type property of a bufferComplete event object.
| fault | event |
mx.rpc.events.FaultEvent
Dispatched when a GeometryService request fails. Applies to all methods.
| labelPointsComplete | event |
com.esri.ags.events.GeometryServiceEvent
com.esri.ags.events.GeometryServiceEvent.LABEL_POINTS_COMPLETE
Dispatched when a labelPoints task successfully completes.
Defines the value of the type property of a labelPointsComplete event object
(note: labelPoints() is only available with ArcGIS Server 9.3 Service Pack 1 or above).
| lengthsComplete | event |
com.esri.ags.events.GeometryServiceEvent
com.esri.ags.events.GeometryServiceEvent.LENGTHS_COMPLETE
Dispatched when a lengths task successfully completes.
Defines the value of the type property of a lengthsComplete event object.
| projectComplete | event |
com.esri.ags.events.GeometryServiceEvent
com.esri.ags.events.GeometryServiceEvent.PROJECT_COMPLETE
Dispatched when a projection task successfully completes.
Defines the value of the type property of a projectComplete event object.
| relationComplete | event |
com.esri.ags.events.GeometryServiceEvent
com.esri.ags.events.GeometryServiceEvent.RELATION_COMPLETE
Dispatched when a relation task 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).
| simplifyComplete | event |
com.esri.ags.events.GeometryServiceEvent
com.esri.ags.events.GeometryServiceEvent.SIMPLIFY_COMPLETE
Dispatched when a simplify task successfully completes.
Defines the value of the type property of a simplifyComplete event object.
| SPATIAL_REL_COINCIDENCE | constant |
public static const SPATIAL_REL_COINCIDENCE:String = "esriGeometryRelationLineCoincidence"The boundaries of the geometries must share an intersection, but the relationship between the interiors of the shapes is not considered (they could overlap, one could be contained in the other, or their interiors could be disjoint). This relation applies to polylines and polygons.
| SPATIAL_REL_CROSS | constant |
public static const SPATIAL_REL_CROSS:String = "esriGeometryRelationCross"Two polylines cross if they share only points in common, at least one of which is not an endpoint. A polyline and a polygon cross if they share a polyline in common on the interior of the polygon which is not equivalent to the entire polyline. Cross is a Clementini operator. If either one of the geometries is empty, the geometries do not cross.
| SPATIAL_REL_DISJOINT | constant |
public static const SPATIAL_REL_DISJOINT:String = "esriGeometryRelationDisjoint"Two geometries are disjoint if their intersection is empty. Two geometries intersect if disjoint is "false". Disjoint is a Clementini operator.
| SPATIAL_REL_IN | constant |
public static const SPATIAL_REL_IN:String = "esriGeometryRelationIn"The base geometry is within the comparison geometry if the base geometry is the intersection of the geometries and the intersection of their interiors is not empty. Within is a Clementini operator. Within is the opposite operator of contains. An empty geometry is within another geometry, unless the other geometry is empty.
| SPATIAL_REL_INTERIORINTERSECTION | constant |
public static const SPATIAL_REL_INTERIORINTERSECTION:String = "esriGeometryRelationInteriorIntersection"Geometries intersect excluding boundary touch.
| SPATIAL_REL_INTERSECTION | constant |
public static const SPATIAL_REL_INTERSECTION:String = "esriGeometryRelationIntersection"Geometry interiors intersect or boundaries touch, same as 'not disjoint'.
| SPATIAL_REL_LINETOUCH | constant |
public static const SPATIAL_REL_LINETOUCH:String = "esriGeometryRelationLineTouch"Two geometries are said to touch when the intersection of the geometries is non-empty, but the intersection of their interiors is empty. This evaluates if the touch occurs along a boundary (not a point). Valid for polygons.
| SPATIAL_REL_OVERLAP | constant |
public static const SPATIAL_REL_OVERLAP:String = "esriGeometryRelationOverlap"Two polylines share a common sub-line, or two polygons share a common sub-area. Overlaps is a Clementini operator. Two geometries do not overlap if either one is empty.
| SPATIAL_REL_POINTTOUCH | constant |
public static const SPATIAL_REL_POINTTOUCH:String = "esriGeometryRelationPointTouch"Two geometries are said to touch when the intersection of the geometries is non-empty, but the intersection of their interiors is empty. This evaluates if the touch occurs at a point (not a boundary).
| SPATIAL_REL_RELATION | constant |
public static const SPATIAL_REL_RELATION:String = "esriGeometryRelationRelation"Allows specification of any relationship defined using the Shape Comparison Language.
| SPATIAL_REL_TOUCH | constant |
public static const SPATIAL_REL_TOUCH:String = "esriGeometryRelationTouch"The union of esriGeometryRelationPointTouch and esriGeometryRelationLineTouch. Two geometries are said to touch when the intersection of the geometries is non-empty, but the intersection of their interiors is empty. Touches is a Clementini operator. For example, a point touches a polyline only if the point is coincident with one of the polyline end points. If either one of the two geometries is empty, the geometries are not touched.
| SPATIAL_REL_WITHIN | constant |
public static const SPATIAL_REL_WITHIN:String = "esriGeometryRelationWithin"Same as esriGeometryRelationIn but also allows polylines that are strictly on the boundaries of polygons to be considered 'in' the polygon.