-
Continuous Issues with ArcPy SynchronizeChanges Automation
Hi, I have been running into the same error with trying to run the SynchronizeChanges Data Management tool in a python script between a parent replica and child replica Enterprise Geodatabase. SynchronizeChanges works perfectly fine when run from the toolbox within an active ArcGIS Pro session, but anytime I try to script…
-
ArcGIS Pro 3.7.3 Intermittently Fails to Start and Python Scripts Randomly Return Exit Code 246
I'm running into an intermittent issue with both ArcGIS Pro and Python scripts, and I'm curious if anyone else has experienced something similar. I have a relatively simple Python script that occasionally does nothing when executed. There are no obvious errors, and the script simply fails to launch or run. If I retry…
-
spatial.join silently returns 0 rows if a point has 'NaN' coordinates (arcpy engine)
Describe the bug One point with 'NaN' coordinates makes spatial.join return 0 rows with no error when arcpy is the geometry engine. full_extent also returns nan. With shapely as the engine, the same data raises an error. ESRI REST Service queries can return 'NaN' in geometries. To Reproduce Steps to reproduce the behavior:…
-
Best Process for Automating a Custom Locator Update
Hi ESRI Community! I have a layer in my SDE containing consumer addresses that I would like to make into a locator for use in my Enterprise 10.9.1, although we are upgrading to 11.5 at the end of the year. This layer frequently updates, and ideally our end users would like to see this locator refresh once a week, on top of…
-
Unable to authenticate ArcGIS Online dataset for use in Arpy geoprocessing tool
I have a hosted feature service on arcgis.com that is not publicly shared and I need to read the data from a python script. The below script has been running without issue until recently. I now get a 000732 error ("Dataset does not exist or is not supported") when the MakeFeatureLayer_management tool executes. I printed…
-
Automating ArcGIS Notebooks
Hello, for context I am currently developing a way to have records automatically added to a "Master Results Table". I am using a feature layer in AGOL that has tasks enabled through Field Maps Designer. Within the EsriTask workflow, the field team will be required to complete a Survey123 form. There is n many Survey123…
-
FeatureLayer.query() giving Exception - TypeError: '>=' not supported between instances of 'int' and 'NoneType'
While querying Feature Layer getting Exception as <em><strong>"</strong></em><em>TypeError: '>=' not supported between instances of 'int' and 'NoneType' "</em> But the same outStatistics value and where clause is working fine in the REST end point in the browser, and giving the expected result. <em> </em> // Below code is…
-
PRJ Not Created with DefineProjection_management
We have a python script that imports AutoCAD DWG files to SDE feature classes. These DWG files are created by various 3rd parties and are transmitted to us for import. One of the steps in our import process is to create a PRJ file for the DWG. Mostly, this works fine but about 5% of the DWG's have a problem when trying to…
-
Be able to use field mapping objects with a Geocoder with different roles
Make a way to "poke" at each geocoder role so, that we can use field mappings to map the geocoder out. So, that when a new geocoder is scripted it doesn't need to have this long string.
-
Speed up jupyter notebooks in ArcGIS Pro
I appreciate the integration of Jupyter Notebooks into ArcGIS Pro, as it greatly enhances workflows. However, the performance is significantly slower compared to other platforms such as VS Code. Tasks like opening notebooks and modifying the environments have been consistently slow for a long time. Since upgrading to…
-
Provide a mechanism to integrate Google Earth Engine data
Previously, users were able to use the geemap package to log into GEE, access data through a jupyter notebook, and visualize that data in a mapframe in ArcGIS Pro. With the latest version of arcpro (3.5.3) this connection appears to be broken, and GEE data is no longer able to be added to the map frame via the .addLayer…
-
Licensing and installation values outdated
Using arcpy to check product and licensing information returns outdated and confusing results. Literals and return values for arcpy.ProductInfo, arcpy.ListInstallations, and arcpy.CheckProduct specifically all use ArcView, ArcEditor and ArcInfo values. This leads to confusion when ArcGIS Desktop and ArcGIS Pro are both…
-
Beyond the Basics of ArcPy: Let's Read the Reference
Introduction At ESRI Japan,GIS Community Forumand other opportunities,we hold sessions for ArcPy beginners.In surveys from these sessions, we sometimes receive feedback like "I want to know how to look up the reference."How to look up the reference To address this feedback, this article introduces tips for reading the…
-
ArcPy lacks the bookmark functionality of ArcObjects
ArcGIS Pro (ArcPy) does not have the equivalent way to modify bookmarks dynamically that ArcObjects had. It gave us the ability to iterate through bookmarks and modify their extents, or create named bookmarks with a specific extent, for example. While you can manage something similar using a map series with ArcGIS Pro and…
-
Batch Processing in Python for ArcGIS - Example of Integration into Geoprocessing Tools
はじめに 過去に本ブログで、「ArcGIS の Python でのマルチプロセス処理 」、「ArcGIS の Python でのマルチプロセス処理-実装例 」として、ArcPy と Python でのマルチプロセス処理をとりあげ、ベスト プラクティスや、コーディング パターンをサンプルを交えながら紹介させて頂きました。今回は、Python 3.3 以上でのコーディング パターンとしてアップデートするとともに、ArcGIS Pro のジオプロセシング ツールへの組み込み例を加えた解説記事になります。 なお、本記事で解説しているコードは、すでに「Farmland polygon conversion tools」として、すぐに利用可能な…
-
Add ArcGIS Pro Layer Properties Class to Python
We need to update python library for ArcGIS API to support properties for each layer in the Table of Contents. For example, I want to set a display field to a common field for every layer within the Table of Contents within the ArcGIS Pro Map. if I have a variable that looks at listLayers called lyr. We should be able to…
-
ArcPy Free-threading Support
Now that CPython has a definitive roadmap for removing the global interpreter lock (GIL) and supporting true multi-threading, i.e., free-threading, (https://peps.python.org/pep-0703/); Esri should start to lay out its roadmap to support free-threading with ArcPy. Supporting free-threading is no small undertaking for a…
-
ArcPy で GPT-4o mini と連携してみよう!
生成 AI と ArcGIS の連携 近年 ChatGPT のような文章による指示でコンテンツを生成する AI が数多く登場しています。様々な企業が生成 AI のサービスを開発し、多くのユーザーがそれらを業務で活用しています。そんな生成 AI と ArcGIS の連携について過去の記事でも取り上げましたが、今回は Python と ArcPy を使って、ArcGIS Pro 上で生成 AI を利用できるようなスクリプト ツールを作成してみました。 ChatGPT と Azure OpenAI Service について ChatGPT とは、OpenAI が開発した大規模言語モデル(Large Language Models…
-
Refresh Datasource arcpy command
Please can we have an arcpy command to refresh data sources so changes made via a script run from within ArcGIS Pro updates the data shown in the project. Needs to work in all circumstances, versioned (all types of versioning), non-versioned, enterprise geodatabase, file geodatabase. And if versioned - working in a version…
-
「Python を使って ArcGIS のワークフローを効率化!」ウェビナーの資料を公開
2023年11月17日に「Python を使って ArcGIS のワークフローを効率化!」ウェビナーを開催しました。多数の方にご参加いただきありがとうございました。本ウェビナーでは ArcGIS の処理を実行できる Pythonライブラリである ArcGIS API for Python や ArcPy の製品概要や使い方などを、デモを交えてご紹介しました。 ウェビナーで使用した資料を ESRIジャパンの GitHub に公開していますので、当日ご参加できなかった方はぜひダウンロードしてご覧ください。 ウェビナーでは ArcGIS API for Python と ArcPy…
-
In a python toolbox use arcpy to set an aprx scratch disk space without affecting the default geodatabase.
Hi Esri We have had an issue setting the scratch disk in ArcPro. Just to be clear, we are setting the parameter using arcpy in a python toolbox not manually in environment settings. Our situation it this: * We have a python toolbox to create drawing indexes and save a new drawing filling in the drawing index with the…
-
arcpy.da.Describe should return the same data as arcpy.Describe for a workspace (it does not currently)
The arcpy.Describe function when used against an enterprise geodatabase connection returns the server information (authentication_mode, database, user, instance, etc.) via. the connectionProperties method. This information isn't available when using arcpy.da.Describe and it should be.
-
ArcPy RefreshCatalog() function for ArcGIS Pro
ArcPy for ArcMap has a RefreshCatalog() function as per Esri documentation. Can this function be made available for ArcGIS Pro?
-
Return Enterprise Geodatabase Dataset Permissions
Please create a geodatabase/arcpy tool that returns permissions on an input enterprise dataset. There are cases when we have new staff start and they need/want the same permissions as another user. It would be nice to be able to iterate over datasets in a geodatabase, get the permissions on a particular dataset and be able…
-
Estimate Credit Functionality in arcpy
The estimate credit requirement that has been added in 3.1.x is preventing my scripts from running since it requires the user to manually click the button in the geoprocessing pane. Can we get this functionality in arcpy. I really like the ability to estimate credits, but I would like the ability to allow bypass for…