tr_transcendent

getting the SpatialReference from returned features

Discussion created by tr_transcendent on Jun 11, 2012
Latest reply on Jun 12, 2012 by rahul_m
hi,
I wondering how to get the SpatialReference from the returned features


dojo.require("esri.tasks.query");
        dojo.require("esri.map");
        var xmin;
        var xmax;
        var ymin;
        var ymax;
        var sp;
        function init() {
         var restGIS = "<%=GISServerLocation%>";
         var qText = "<%=ParNumwithDash%>"
        queryTask = new esri.tasks.QueryTask(restGIS);
        query = new esri.tasks.Query();
        query.returnGeometry = true;
        query.text = qText;
        queryTask.execute(query, gettingResults);
        
        }
        
        function gettingResults(results){
           
            var newExtent = esri.graphicsExtent(results.features);
            xmin = newExtent.xmin;
            ymin = newExtent.ymin;
            xmax= newExtent.xmax;
            ymax = newExtent.ymax;
                   
        }
        
       dojo.ready(init)

Outcomes