Solved! Go to Solution.
I raised an issue with Esri support. Here's what they said.
"The bug that both NIM102427 and NIM102007 are duplicate of is NIM101410 Spatial Reference is missing from geometries returned by an Identify operation when an input/search geometry had one spatial reference defined in it. Sorry about the confusion. The current status of NIM101410 is Fixed at version 10.3, so it is no longer an issue for ArcGIS Server 10.3."
var deferred = new dojo.Deferred(); deferred = identifyTask.execute(identifyParams); deferred.addCallback(function(response) { return dojo.map(response, function(result) { var feature = result.feature; alert(result.layerName +":"+ feature.geometry.spatialReference.wkid); // alert(feature.geometry.getExtent().xmin); // alert(feature.geometry.getExtent().ymin); // alert(feature.geometry.getExtent().xmax); // alert(feature.geometry.getExtent().ymax); feature.geometry.spatialReference = map.spatialReference; return feature; }); });
I am also seeing this issue at 10.22. Does anyone know if this has this been fixed in an arcgis server service pack, patch or 10.2.3? or in 10.3? or is the only fix a code fix to manually add in the spatial reference?
I raised an issue with Esri support. Here's what they said.
"The bug that both NIM102427 and NIM102007 are duplicate of is NIM101410 Spatial Reference is missing from geometries returned by an Identify operation when an input/search geometry had one spatial reference defined in it. Sorry about the confusion. The current status of NIM101410 is Fixed at version 10.3, so it is no longer an issue for ArcGIS Server 10.3."