Coordinates in DMS format

Coordinates in DMS format

allwinaugustine
Participant Participant
495 Views
4 Replies
Message 1 of 5

Coordinates in DMS format

allwinaugustine
Participant
Participant

I got this lisp code from online (www.cadlispandtips.com) showing coordinates in UTM format.

Can someone edit it to show coordinates in DMS (Degrees, Minutes, Seconds) format ?

It may require a prompt to ask Zone and Hemisphere(N/S), Not sure.

0 Likes
496 Views
4 Replies
Replies (4)
Message 2 of 5

Kent1Cooper
Consultant
Consultant

What should be the format of the information?  It must involve a distance as well as a DMS angle.  It should be simple to forget the 'enx' and 'eny' variables, and replace this line:

 

        (command "leader" enp1 ptl "" (strcat "E " enx) (strcat "N " eny) "")

 

with different text content.  But where does the distance go in relation to the angle, some symbol between them or on different lines, how many decimal places in the distance [or what denominator fraction], how many [if any] in the seconds part of the angle, etc.?

Kent Cooper, AIA
0 Likes
Message 3 of 5

Sea-Haven
Mentor
Mentor

"show coordinates in DMS (Degrees, Minutes, Seconds) " are you talking about Latitude & Longitude which can be DDDMMSS or DDD.xxxxxxxx decimal. 

 

33°51'39"S 151°12'27"E  33.8527777777778,151.275

 

0 Likes
Message 4 of 5

allwinaugustine
Participant
Participant

This is the required format.

33°51'39"S 151°12'27"E

0 Likes
Message 5 of 5

Sea-Haven
Mentor
Mentor

So you want lat & long ? This is not a here is answer much more complicated depends on where you are in the world with reference to the spot of the co-ordinates not where you live.

 

Google convert co-ords to Laitutude & Longitude.

 

If your using CIV3D can be done.

0 Likes