Geometry Service - Project DMS

814
4
09-12-2012 01:53 PM
AronBird
New Contributor III
I am using a geometry service to project a point location from UTM to Lat Long.  Our users would like the output to be in DMS rather than DD.  Any suggestions?

Thanks,

Aron
0 Kudos
4 Replies
nicogis
MVP Frequent Contributor
What's the problem do from dd to dms? you will do the called from an application and then you visualize in dms or do you mean from service directory?
0 Kudos
AronBird
New Contributor III
The users will enter the UTM location in a table and when they press a button the request is  sent out to the geometry service and will return the coordinates in Lat/Lon.  The problem is that the returned coordinate is in DD and we would like it returned in DMS.

For example, entering the UTM location for Vancouver, BC, Canada (UTM Zone 10N) (wkid 26910)
489725, 5454761

returns the following when projecting to WGS_1984 (wkid 4326)

Point:
X: -123.141174428737
Y: 49.245535769267

We would like the output in degrees, minutes and seconds instead of decimal degrees.  Here is the url using the Esri sampleserver geometry service:

http://sampleserver1.arcgisonline.com/ArcGIS/rest/services/Geometry/GeometryServer/project?inSR=2691...

Can I add something to the url to get the output in DMS?

Aron
0 Kudos
nicogis
MVP Frequent Contributor
seeing help http://sampleserver1.arcgisonline.com/ArcGIS/SDK/REST/project.html the answer is no.
you post on idea esri or you create your interface with your view in dms
0 Kudos
AronBird
New Contributor III
Thanks for your help.  I guess it looks like I will have to put together something to get the coordinates returned in DMS.

Aron
0 Kudos