X/Y coordinates in pandas dataframe to map

10902
12
07-25-2017 07:20 AM
DavidRalston
New Contributor II

Is there a way to add x/y coordinate columns in a pandas dataframe to a map using the arcgis python api in jupyter notebook?

0 Kudos
12 Replies
IonutAlixandroae4
Occasional Contributor

Hi David,

I also had this problem in another topic on this group. The solution was the way Rohid said, but with coordinates in DD format. I had the list of coordinates in DMS format and it wasn`t working for me.

See here: https://community.esri.com/thread/198787-display-array-of-multiple-coordinates-xy-in-the-map-object  

Thanks,

Ionut

0 Kudos
GregoryBrunner
Esri Contributor

rsingh-esristaff

How does this work it my data is in a different coordinate system (i.e. not WGS 1984)?

0 Kudos
RohitSingh2
Esri Contributor

The layer/FeatureCollection to be added should have a correct spatial reference set in that case. I don't have the code offhand to do this though. Another way would be to use arcgis.geometry.project to project the coordinates to WGS1984.

0 Kudos