Select to view content in your preferred language

what format do the coordinates need to be in? 42 31 31.334, -77 32 45.32 was what i tried

3480
6
09-30-2014 04:31 PM
JimBurdett
Deactivated User

i want to add lat long locations to map.  I tried importing a .txt file with coordinates.  what format do the coordinates need to be in?  42 31 31.334, -77 32 45.32 was what i tried

0 Kudos
6 Replies
SusanJones
Frequent Contributor

Decimal Degrees - 42.5, -77.5 etc

It shouldn't struggle as long as it gets parsed as numeric instead of strings.

0 Kudos
DanPatterson_Retired
MVP Emeritus

you currently have this 42 31 31.334 which is degrees minutes and seconds, you need to convert them to decimal degrees...written out syntactically

42 31 31.334 =  42. 31.522233333 degrees decimal minutes = 42.525370555 decimal degrees

degrees remains, then take seconds and divide by 60...add that to minutes...divide that by 60 and that is the decimal portion of the term

0 Kudos
JimBurdett
Deactivated User

After convering to decimal degrees, I tried the command “add layer from file” with the .txt file and got the errror below

0 Kudos
DanPatterson_Retired
MVP Emeritus

X is longitude (-77ish) Y is latitude (42ish)  Make sure that you have a comma-delimited field name and no blank lines in the data

0 Kudos
curtvprice
MVP Alum

You need actual numeric xy coordinates in geographic ("decimal degrees") or projected (e.g. "meters") to plot them on a map.

Fortunately, if you name the field names exactly right, those locations can be converted on the fly for you. There's also a tool available that can convert those text strings to geographic (decimal degrees).

The skinny is here in the ArcGIS help (this applies to 10.1/10.2):

Adding an ASCII or text file table  >  How coordinate information is determined

0 Kudos
SusanJones
Frequent Contributor

From what application - Portal, ESRI Desktop (ArcMap) ?

Try saving file as a csv file.

0 Kudos