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).
184 questions
1
vote
0
answers
31
views
Clip Raster in ArcGIS Python API
It seems I cannot clip my raster using the ArcGIS Python API. I am trying to read the Elevation Imagery Layer from the ArcGIS Living Atlas and clip it by a Watershed area.
I first imported the USGS ...
0
votes
0
answers
31
views
Adding an existing web map into a new Story Map via Python
My ultimate goal is pretty simple: I need to create a Story Map, add a web map to it, then save and publish it all from a python notebook. The documentation is unclear to me about how to accomplish ...
0
votes
1
answer
59
views
Arcgis Python Api to create field map smartforms
I have been asked to create field map smartforms from the hosted feature layer & webmap.
Any example would be helpful!
My code seems to be not working, it does not create Form element.
from arcgis....
0
votes
1
answer
59
views
Filtering for deprecated items using Item Fields with ArcGIS Python API
ArcGIS Pro 3.1, Python 3.9
I'm using the ArcGIS Python API to connect to Portal (11.1) and AGOL to filter for deprecated items. According this reference doc, Item Fields can be passed to the query ...
1
vote
0
answers
40
views
Reload item with ArcGIS Python API [closed]
This tutorial shows how to easily download an item from an ESRI portal using the Python API. Can you open the item just downloaded in a different, offline, Python environment that doesn't have access ...
0
votes
0
answers
45
views
Displaying labels on points in Jupyter notebook using ArcGIS API for Python widget map
I'm trying to get labels working in my Jupyter notebook map, and I've tried everything I can think of.
Here's my code:
from arcgis.geometry import Point
from arcgis.features import Feature, FeatureSet,...
0
votes
2
answers
107
views
ArcGIS API unable to unshare item
ArcGIS Pro 3.1.4
Python 3.9
API version is 2.1.0.2
When I log into ArcGIS Online with an account that has a custom role with a few administrative privileges, I can share / unshare items owned by ...
1
vote
1
answer
58
views
GIS Object shows wrong Portal version
I'm connecting to Portal via the GIS object.
from arcgis.gis import GIS
portal = GIS(<my portal>)
print(portal.version) # gives [10,3]
But my portal is at version 11.1. That's what the Portal ...
0
votes
1
answer
357
views
How to refresh or overwrite a feature service using the ArcGIS REST API
I am trying to use the REST API from ArcGIS Online to refresh or overwrite a feature service.
I am using Python to upload an item using the addItem operation:
upload_url = (
f"{portal}/...
0
votes
0
answers
38
views
ArcGIS Online Python API Empty DataFrame return for Usage property on hosted raster tile service
I have a simple piece of code which I'm hoping I might be able to get a solution to. It specifically pulls usage for an item for the last 7 days or whatever desired date range. It appears to work fine ...
1
vote
1
answer
64
views
How to add a spatially enabled df to a Leafmap map
Python: 3.9
ArcGIS API for Python: 2.3.0.1
I am accessing a Feature Layer from the Living Atlas using the ArcGIS API for Python. I convert it to a sdf with the column 'SHAPE' as the geometry. How do I ...
0
votes
2
answers
150
views
ArcGIS API for Python - determine if feature service was published from ArcGIS Pro?
We publish most of our ArcGIS Online (AGOL) content from ArcGIS Pro, with the original data stored in local file Geodatabases. However, we have some layers that exist only in AGOL (eg, Survey123 ...
-1
votes
1
answer
181
views
Problem with installation ArcGIS Python library
I want to launch the Python tool, which is available here:
https://github.com/Esri/field-maps-scripts
but unfortunately there is no arcgis library
I tried several ways of installing this script:
...
1
vote
0
answers
70
views
Update Survey123 media via Python (not via republishing)
Using the example in the Developers.ArcGIS.com documentation I am trying to update a Survey123 form's media file pythonically. My modified version of the example code is downloading an empty Zip file.
...
1
vote
1
answer
173
views
Overwriting feature layer using lyrx file
I am trying to come up with a method that utilizes lyrx files to routinely overwrite a feature layer on ArcGIS Portal. I've tried a few methods that utilize Python scripts, ModelBuilder and Task ...