Select to view content in your preferred language

intersect widget using geoprocessing service

932
4
03-25-2014 06:37 AM
fatizanady
Deactivated User
hi everyone,

does anyone have any idea about how to develop an intersect widget using geoprocessing service?????

Thanks for any help that could be offered!
Tags (2)
0 Kudos
4 Replies
BjornSvensson
Esri Regular Contributor
does anyone have any idea about how to develop an intersect widget using geoprocessing service?????


You could also use the intersect() method of the GeometryService
https://developers.arcgis.com/flex/api-reference/index.html?com/esri/ags/tasks/GeometryService.html&...
0 Kudos
KomanDiabate
Deactivated User
Yes, you will be a lot better off using geometry services.

private function SelectPoints(queryGraphic:Polygon):void
   {
    var query:Query=new Query();
    var queryTask:QueryTask = new QueryTask();
    queryTask.url = "http://****/sdgis/rest/services/*************/0";
    query.spatialRelationship=Query.SPATIAL_REL_INTERSECTS; 
    query.geometry=queryGraphic;
    query.outFields=["*"];
    query.returnGeometry=true;
    queryTask.execute(query, new AsyncResponder(onResult, onFault));
    
    function onResult(featureSet:FeatureSet, token:Object=null):void
    {  
     for each(var myGraphic:Graphic in featureSet.features)
     {    
      myGraphic.symbol=sfs;
      myGraphicsLayer.add(myGraphic);    
     }
     
     Alert.show(featureSet.features.length.toString())
    }
    function onFault(info:Object, token:Object=null):void
    {
     Alert.show(info.toString());
    }
    
    
   }
0 Kudos
fatizanady
Deactivated User
bjorn,kdiabate64,

Thank you very much for answer.
Indeed, I have to work with geoprocessing services because it's the topic of my graduation project.so i well just use the geoprocessing service :).
Thanks again 🙂
0 Kudos
KomanDiabate
Deactivated User
Well, in that case good luck.
0 Kudos