Friday, 6 November 2015

arcgis javascript api - UTM NAD 1927 to DMS


I have requirement to convert UTM NAD 1927 Northing (4804172), Esting(753352) to Geographic coordinatesystem(Degrees Minutes, Seconds).


Iam doing like below


m_mapPoint[0] = new esri.geometry.Point(4804172, 753352, new esri.SpatialReference({ wkid: 26712 })); var geogPt = esri.geometry.webMercatorToGeographic(m_mapPoint[0]); gsvc.project([geogPt], outSRgc83, convrtCord83);


when I project the point I am getting result as NaN. But It's equivalent DMS should be 42 21' 58.42'', 107 52' 29.28'' and map point should be 42.5698, -107.5229


Please help me how to resolve it.


Thanks, Uday




No comments:

Post a Comment

arcpy - Changing output name when exporting data driven pages to JPG?

Is there a way to save the output JPG, changing the output file name to the page name, instead of page number? I mean changing the script fo...