How to get the result of a geometry service relation method?

351
1
04-25-2014 07:44 AM
ab1
by
Occasional Contributor II
I'm using ArcGIS 10.0 flex API 3.0.

I'd like to test if two geometries are equal.
For that, the relation method is called like follows:

            var relationParameters:RelationParameters = new RelationParameters();
   relationParameters.geometries1 = [geom1];
   relationParameters.geometries2 = [geom2];
   relationParameters.spatialRelationship = RelationParameters.SPATIAL_REL_RELATION;
   relationParameters.comparisonString = "IDENTICAL (G1, G2) = TRUE";
   _geometryService.addEventListener(GeometryServiceEvent.RELATION_COMPLETE, onGeomCompared);
   _geometryService.relation(relationParameters);

The service is supposed to return a boolean that tells if the two geometries are equal or not. Isn't it?

The GeometryServiceEvent returned by the service doesn't contain any boolean and the result object of the event is empty.

How can I get the response of the service for my request?
Tags (2)
0 Kudos
1 Reply
ab1
by
Occasional Contributor II
Is there any other way to compare the equality of two geometries?
0 Kudos