Hello Esri Community,
I need to plot coordinates of points from .csv file to an interactive map in Google Colab. I am new to ArcGIS API for Python, and I couldn't find the proper solution for it. Can someone please help me with this in layman terms?
Thank you in advance!
Hi @RabinSubedi
I think you might need first to be sure that Google Colab provides access to ESRI API for Python.
So first, are you able to run the following line of code successfully in Colab?
from arcgis.gis import GIS
gis = GIS('home')
if not, then I don't think ArcGIS API for Python is fit for what you are after.
Regards
Ihab
Hi @IhabHassan
It gives me following error:
---------------------------------------------------------------------------
ModuleNotFoundError Traceback (most recent call last)
<ipython-input-1-383f12f27a7e> in <module>()
----> 1 from arcgis.gis import GIS
2 gis = GIS('home')
ModuleNotFoundError: No module named 'arcgis'
---------------------------------------------------------------------------
NOTE: If your import is failing due to a missing package, you can
manually install dependencies using either !pip or !apt.
To view examples of installing some common dependencies, click the
"Open Examples" button below.
---------------------------------------------------------------------------
If it doesn't work using arcgis api for python, can you suggest me a different way to plot coordinates in colab?
Thank You!
The error message is giving a hint that it might be possible to install the API, and giving examples on how to install new packages/dependencies, I would say this worth checking.
I am not familiar with other Python packages that can provide plotting spatial data on a map. If you are able to use ESRI products, you can easily do this in ArcGIS Pro or ArcGIS Online, or even building simple Javascript application.
That's a JS sample: https://developers.arcgis.com/javascript/latest/sample-code/layers-csv/