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).
186 questions
0 votes
0 answers
17 views
How to extract layer list in ArcGIS 10.9.1 Standalone Server?
We have an Standalone ArcGIS Server 10.9.1 environment. The objective is to fetch layer list within all services using arcpy or python API. I did found some help articles and stack results, but can't ...
3 votes
1 answer
83 views
Truncate layer in ArcGIS Online using arcgis.gis
I'm trying to delete all features in a layer hosted in ArcGIS Online. from arcgis.gis import GIS from arcgis.features import FeatureLayer #Login AGOL gis = GIS("https://www.arcgis.com", &...
1 vote
0 answers
34 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
68 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
69 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
41 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
116 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
59 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
388 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
66 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
152 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
194 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: ...