As of May 31, 2023, we have updated our Code of Conduct.

Questions tagged [arcgis-python-api]

ArcGIS API for Python is a Python library for working with maps and geospatial data, powered by web GIS (ArcGIS Online, ArcGIS Enterprise portal).

Filter by
Sorted by
Tagged with
10 votes
1 answer
4k views

Replacing ArcPy with ArcGIS API for Python?

Today I found out about the ArcGIS API for Python. I was wondering if you could use this to (eventually) replace ArcPy? Recently I have been doing analyses that require cloud based solutions. When ...
RutgerH's user avatar
  • 3,155
2 votes
2 answers
1k views

Copying feature service to local geodatabase using ArcPy and ArcGIS API for Python?

I am trying to export/copy a feature service to a local geodatabase where I can work on it locally. I have provided the code below. I keep getting an "Object: Error in executing tool" for the last ...
P. Shutler's user avatar
1 vote
1 answer
960 views

Using Geometry.distance_to() in ArcGIS API for Python

I'm calculating distances between points in arcpy or ArcGIS API for Python, and am probably doing something wrong. Hopefully, someone can show me what. Take this as an interactive session with ...
DaveWork's user avatar
6 votes
2 answers
6k views

How to update a hosted feature service on ArcGIS Online using the Python API for ArcGIS Pro?

I'm trying to follow the steps in the Esri blog post Updating your hosted feature services with ArcGIS Pro and the ArcGIS API for Python but am running into an error. To test this I published a ...
Stephen Lead's user avatar
  • 20.9k
4 votes
3 answers
697 views

Installing ArcGIS Python API with ArcGIS Pro

I am new to the world of ArcGIS and I come from a data science background. I recently installed ArcGIS Pro with a Single User license from my organization. I would like to use it with the Python API ...
ali_is's user avatar
  • 41
3 votes
1 answer
1k views

Using ArcPy and ArcGIS API for Python together?

I am having trouble with how I am supposed to use both ArcPy and ArcGIS API for Python. ArcPy is only in Python 2 and ArcGIS API for Python is in ArcGIS Pro and is Python 3. I don't know how to set my ...
Chris's user avatar
  • 153
2 votes
1 answer
7k views

TypeError: cannot unpack non-iterable NoneType object on Spatial Join

I'm working with two spatial dataframes and am trying to do a spatial join on the two. parcels_sdf -- a frame with around ~370,000 real estate parcels. subdivisions_sdf -- a frame with all ...
leeprevost's user avatar
2 votes
1 answer
866 views

Adding data using Python from ArcGIS Online/ArcGIS REST Services directory to a ArcMap MXD

I want to update over 100 MXDs by adding 4/5 ArcGIS Online/ArcGIS REST Services directory layers. I am unsure whether this is possible using Python and can only find documentation on how to access ...
wilfred202's user avatar
1 vote
1 answer
141 views

Using 3rd party PASCAL_VOC in arcgis.learn prepare_data() method

Has anyone had luck using the prepare_data method with data not exported from the Export Training Data tool in ArcGIS Pro? The documentation suggests prepare_data will take PASCAL_VOC_rectangles from ...
K. Freestone's user avatar
1 vote
1 answer
184 views

Does ArcGIS API for Python use ArcPy internally?

Today I read a GIS SE user opinion in Using Geometry.distance_to() in ArcGIS API for Python that: it appears that ArcGIS API for Python uses ArcPy internally This surprised me because I do not ...
PolyGeo's user avatar
  • 64.6k
0 votes
1 answer
443 views

Publish CSV to Enterprise Portal as table

I'm following this help doc. https://geosaurus.maps.arcgis.com/home/item.html?id=a1db6db172bc49a8932daacc2ed3d3ac#preview I'm able to add the CSV to the Portal, but I cannot get it to publish. I need ...
Pfalbaum's user avatar
  • 856