Query with Spatial Reference and without Spatial Reference

Discussion created by VinayBa on Sep 24, 2013
HI All,

   When i use query without spatial reference to  get graphic object and display it on my map , things(grap are accurate but IE hangs when i query for more data.

To resolve this i used maxallowable offset and spatial reference in query which resolved the IE hanging issue things are not accurate i.e  when i zoom into these graphic ,the border are not clear.

Below is code with Spatail reference and maxallowableoffset
 var query = new esri.tasks.Query();
             query.returnGeometry = true;
             query.maxAllowableOffset = calcOffset();
             console.log(" creating query");
             var queryStart = "CNTRY_NAME IN ('" + countryName + "')";
             query.where = queryStart;
             console.log("finalQuery " + queryStart);
             query.spatialRelationship = esri.tasks.Query.SPATIAL_REL_CONTAINS;
             var spRef = new esri.SpatialReference({
                 wkid: 102100
             query.outSpatialReference = spRef;

How can i tune query to get proper  results