Mathematica 9 is now available
THIS IS DOCUMENTATION FOR AN OBSOLETE PRODUCT.
SEE THE DOCUMENTATION CENTER FOR THE LATEST INFORMATION.
Mathematica > Computable Data > Geographic Data > Geodesy >

DMSString

DMSString[Theta]
converts an angle Theta given in decimal degrees to a degrees-minutes-seconds string.
DMSString[{Phi, Lambda}]
converts latitude and longitude given in decimal degrees to a DMS latitude-longitude string.
DMSString[{d, m, s}]
converts a DMS list to a DMS string.
  • DMSString[Theta, "NS"] or DMSString[Theta, "EW"] gives a string representation in which the sign of the angle is indicated by one of the cardinal directions N, S, E, or W.
  • DMSString[{Phi, Lambda}] uses N for positive Phi and E for positive Lambda.
  • Angles in radians can be converted to degrees for use in DMSString by dividing by Degree.
Convert an angle given in decimal degrees to a DMS string:
Convert to a DMS string that specifies one of the cardinal directions:
Convert an angle given in decimal degrees to a DMS string:
In[1]:=
Click for copyable input
Out[1]=
 
Convert to a DMS string that specifies one of the cardinal directions:
In[1]:=
Click for copyable input
Out[1]=
New in 7
Ask a question about this page  |  Suggest an improvement  |  Leave a message for the team