Skip to main content

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
5k 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,325
2 votes
2 answers
2k 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
7 votes
2 answers
7k 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
  • 21.2k
4 votes
3 answers
888 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
1k 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
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
1 vote
1 answer
171 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
79 views

Cannot enable 'Any organization's members' setting when creating Group or updating properties using ArcGIS Python API [closed]

I am creating a group using the ArcGIS for Python API, there is limited information in the API Reference here. And I found some more information in the Rest Reference relating to the membershipAccess ...
Clubdebambos's user avatar
  • 1,700
1 vote
1 answer
1k 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
1 vote
1 answer
222 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
  • 65.2k
0 votes
1 answer
599 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
  • 911
0 votes
1 answer
901 views

Adding hosted Feature Layer from AGOL to my local ArcGIS Pro through Python

I`m trying to find a way to add an online layer to my local map, through Python. I know how to grab the layer info, but don't know how to use it. onlinelayer = gis.content.search(mylayer)[0] itemid= ...
Gustavo's user avatar
  • 133