-
Thank You Python API Community - v2.4.4
With the release of ArcGIS API for Python 2.4.4, we want to extend a huge thank you to our community. Your feedback and active participation are what truly shape the evolution of this product. For those new to the ecosystem, our public GitHub repository is your go-to hub for samples, tutorials, and documentation. Your…
-
Question about future AI capabilities for ArcGIS API for Python (Agentic GIS workflows)
Hello everyone, Recently I noticed that the ArcGIS Maps SDK for JavaScript has started introducing AI-related components and integrations that help developers build AI-assisted web mapping applications. These capabilities are very interesting and open new possibilities for building intelligent GIS applications. This made…
-
Enterprise Portal API: Missing Token
Hello All, I've run into some issues running operations from a local Jupyter Notebook against our Enterprise Portal. Specifically, trying to do batch geocoding fails due to a "missing token error". The tutorial I'm referencing can be found here. I checked the authentication, and I do have a token attached to the GIS()…
-
Content Migration item types, and comparison of .epk (Rest API) vs API for Python
I'm trying to understand the different item types supported for these 2 APIs, Cloning Content | ArcGIS API for Python | Esri Developer Cloning via Offline Backups | ArcGIS API for Python | Esri Developer Are both supporting the same file types to be migrated? For the offline backups, is there limitations in terms of number…
-
Using clone_items(), it's updating the creation information and I don't want it to
I'm migrating Web maps and data from an AGOL environment to our Enterprise environment using the clone_items() function. Everything works for the most part. The trouble I'm having is that in the process of cloning it updates the data fields that reference who created/updated the record and when it was created/updated to my…
-
ArcGIS Pro - Python Toolbox
Hello everyone, Hi, I'm Nur from Malaysia. I'm a beginner in Python and currently experimenting with building a Python toolbox to automatically calculate yearly forest cover changes in my region. I created the script with help from ChatGPT. When I run the tool, the analysis starts but I get the following error message:…
-
Use Folder.add function and wait ArcGIS Python API
I am trying to add a FeatureService to a folder in ArcGIS Online using the Python APIs Folder.add() method. This method returns a Future. How can I wait for this to finish and execute the remainder of the script synchronously? The only way I found was with a while loop, which is not nice. item_properties = { "title": "Test…
-
error in join field "name 'self' is not defined"
I'm having an issue about "join feature" in geoanalytics server tool. I'm trying to build the tool in arcpy, but also playing in toolbox for testing. In ArcGIS Pro, in toolbox, it's returning me that error: Traceback (most recent call last): File "C:\Program…
-
RasterProcessingGPU service cannot release GPU memory
l used arcgis python api to perform deeplearning inference tasks. When one task successed, proceed to another task, the job of RasterAnalysisTools failed. Job messages prompted GPU memory is occupied. l found instance of RasterProcessingGPU do not release GPU memory. l tried some ways but not optimal. 1. Adjust…
-
Version numbering, deprecation
I am a little bit confused about the version numbering of the ArcGIS API for Python. I am trying to run a python script I wrote and tested with Python 3.9.16, together with ArcGIS Pro 3.1.1. When I run this code in a Notebook in ArcGIS Online, I receive these messages: /tmp/ipykernel_23/3079746621.py:164:…
-
I am trying to read airdata.com flight api data and show on a map using Notebook
I am trying to learn how to map data that I read from an api GET method. How do I create a feature class from the data?
-
Item ID only returning title
I am trying to connect to ArcGIS Online and retrieve information on an item using an item ID. My code is as follows: import arcgis from arcgis.gis import GIS gis = GIS(url='https://unc.maps.arcgis.com', username='my_username', password='mypassword') itemid = '9d4c5e75fa5b4bcabbb6161bafe10f57' item = gis.content.get(itemid)…
-
temp1 = Templates.MONITOR
Greetings, The ESRI "Working with Web Experiences in the Python API" in Class Basics. It states the following code snipit. # import the module from the apps folder, and establish a GIS connection. from arcgis.apps.expbuilder import WebExperience from arcgis.gis import GIS gis = GIS(profile="your_online_profile") # template…
-
Is the only way to use the API for python through a Developer ($5kUSD/year) subscription?
Last year, I was able to generate OAuth tokens and use the Developer tools without issue. I took some time away from development activities and am understanding that there were changes in licensing structure since then. I am confused by the shuffle to location services and if there are any other licenses in the ESRI…
-
2.3.0 API Python Download Help for SamLoRA
Hey there, I'm trying to recreate making a dlpk using SAMLoRA (new feature in 2.3.0) that I did using a school computer a few weeks ago using ArcPRO/jupyter notebooks. However, my employer's ArcPRO has arcgis 2.2.3 and I've done everything to try and clone and update the environment, but that gives a bunch of errors. I've…
-
Append to Feature Layer Collection
Hello! My environment is ArcGIS Enterprise v11.1 & ArcGIS Pro v3.2.1. I can successfully append from a shapefile to a hosted feature layer in Portal. The new points come over, but the attributes are blank. # initial imports from IPython.display import display, HTML from arcgis.features import FeatureLayerCollection from…
-
Version requirements for Deep Learning Libraries in Google Colab
Hello, Quite a long time back Google Colab updated its Python version. Also the Esri team updated their arcgis library version for the platform. However, they did not provide any documentation regarding the deep learning libraries. For example: What if I want to use Python 3.10 for the EntityRecognizer? Last I know…
-
Convert .h5 to .dlpk
I want to convert (.h5) model file I created using keras/tensorflow to deep learning package file(.dlpk) file supported in ArcGIS pro geo processing tools , I'm trying it using ArcGIS API for python but not able to find any solution , I need help in this conversion if possible ? Please provide any support and suggestions.…
-
Calculate Field from Feature Class Name
Hello, I'm a python newbie seeking help. I'm attempting to create a python script that iterates through a file geodatabase with feature classes and feature classes within feature datasets to calculate the field 'NRHP_Type' with the name of the feature class. For example, all points in the feature class crothr_pt would have…
-
Need help with create StoryMap using ArcGIS API for Python
Hi,I have some question about creating story map from coding using python. This is my code from arcgis.gis import GIS portal_url = "https://your-organization/portal" gis = GIS(url=portal_url, username="YourName", password="YourPassword") storymap_item = gis.content.add({"type": "StoryMap",'title': 'My Test Python Story2' }…
-
Layers loaded as SEDF from a feature class in a local GDB do not appear in the map widget (ArcGIS Pro 3.2)
Hi, Has anyone else experienced issues with displaying layers converted from local geodatabases to SEDFs in map widgets? in 3.2, I can't seem to see the SEDF when loaded into the map widget, but when saved into the portal, the feature layers added from SEDFs are present. I am running the sample notebook from the Visualing…
-
Connecting to GIS() using Built-In login
Hello, I had been using Pro 2.7, but recently upgraded to 3.2. The code I had been using with 2.7 worked fine, but doesn't seem to work with 3.2 I'm connecting to GIS() using Built-In login, as described here: Connect to ArcGIS Online using a built-in account > Connecting through ArcGIS Pro…
-
"content.clone_items" does not work at all for Hosted Feature Layers with multiple Layers and Tables
"content.clone_items" does not work at all for Hosted Feature Layers with multiple Layers and Tables! _ItemCreateException: ('Failed to create Feature Service <service>: list index out of range'
-
Super Basic - Update 'Credits' with arcgis api for python?
I am trying to update the 'Credits' property (feature services and views) using arcgis api for python and I have had no luck. I've tried 'update' on the item and 'update_definition' on the flc and I don't see a 'credits' property. Can someone explain who this is done? I can do rudimentary jupyter notebooking, but haven't…
-
Monitor ArcGIS Online License Allocations via API?
Hi, I'm trying to draft an ArcGIS Python API script that can monitor the license allocations for our ArcGIS Online organisation. According to the documentation there should be a 'plot' function that returns this information, but I can't figure out the syntax to get it to work. For example, the following works: lm =…