jmielke

IdentifyTask does not seem to honor IdentifyParameters .layerDefinitions

Discussion created by jmielke on Apr 14, 2011
Latest reply on Apr 19, 2011 by jmielke
I am trying to limit the results returned by the IdentifyTask by setting the IdentifyParameters.layerDefinitions.  However it seems to ignore this and rather continues to return all found features from the ArcGISDynamicMapService.  For instance if set...
identifyParams.layerDefinitions[0] = "prod_gas = 'Yes'";


and then execute the IdentifyTask.  The petroleum field polygon features where prod_gas = 'No' are still returned in the results set.

Here's a link to an esri sample server (v10) rest services directory that demonstrates this... http://sampleserver3.arcgisonline.com/ArcGIS/rest/services/Petroleum/KSFields/MapServer/identify?geometryType=esriGeometryPoint&geometry=-96%2C38&sr=4267&layers=0&time=&layerTimeOptions=&layerdefs=prod_gas%3D%27Yes%27&tolerance=2&mapExtent=-101.980837490204%2C34%2C-93%2C43&imageDisplay=400%2C400%2C96&returnGeometry=false&maxAllowableOffset=&f=HTML

Am I not setting the .layerDefinitions correctly or is this a bug?

thanks, jason

Outcomes