CityOfSurrey

Query Task Fails Unless I pass in exact coordinates...

Discussion created by CityOfSurrey on Feb 1, 2011
Latest reply on Feb 1, 2011 by khutchins-esristaff
Hi there,

I have a simple query task defined for a point layer.  When I override the xy returned from the map with the exact coordinates of the feature, the task works.  Otherwise, no features are identified.  Is there a tolerance parameter I can apply?


function executeQueryTask(evt) {
      
         query.geometry = evt.mapPoint;
                //alert (evt.mapPoint.x + " - " + evt.mapPoint.y )
        evt.mapPoint.x= 511704.446;
        evt.mapPoint.y = 5437075.128;
  queryTask.execute(query, showResults);
 
}
        

Outcomes