-
Python toolbox: Feature Layer filter list dependent on Map parameter, not just whichever map view is active?
Pretty much what it says in the title. I'm trying to get my FeatureLayer parameter to populate based off the map that is selected in my map parameter, but it just populates based off whichever map view is active. inMap = arcpy.Parameter( displayName="Map", name="inMap", datatype="GPMap", parameterType="Required",…
-
FeatureClassToNumPyArray を使ったポリゴン ジオメトリの検討
ポリゴン ジオメトリの例 複数の三角形があり、一部には穴が開いています。緑色の数字はポリゴン外周リングの ID 値を示します。赤色の数字は、外周リングと内周リングに付けられた連続するポイント ID 値です。 ID 値が次のようになっている場所があることは、見た目からすぐにわかります。 * 一度だけ現れるもの(線分の接続点)、 * 2つの番号があるもの(ポリゴンの始点と終点)、 * 関連付けられた ID が3つ、4つ、あるいは5つあるもの(さまざまな形でポリゴンが接する場所)。 arcpy から numpy へ FeatureClassToNumPyArray を使ってジオメトリを NumPy…
-
ArcGIS Pro 3.7.3が断続的に起動せず、Pythonスクリプトがランダムに終了コード246を返す
ArcGIS ProとPythonスクリプトの両方で断続的な問題が発生しています。同じような経験をされた方はいらっしゃいますか? 比較的シンプルなPythonスクリプトを使っていますが、実行しても何も起こらないことがあります。明らかなエラーはなく、スクリプトが起動または実行されないだけです。何度か再試行すると最終的には正常に実行されます。3回目や4回目に成功することもあれば、最初の試行で成功することもあります。 同じスクリプトをPyCharmから実行した場合も、同様の動作が見られます。失敗した場合、PyCharmは終了コード246を返します。 ほぼ同じ頃に、ArcGIS…
-
arcpyで選択を解除する方法は?
一見すると簡単な質問ですが、ジオプロセシングツールとノートブックの両方で、次のコードに興味深い問題があることがわかりました。 import arcpy TARGET_LAYERS = [r"UN\Electric Line", r"UN\Equipment"] for src in TARGET_LAYERS: arcpy.management.SelectLayerByAttribute(src, "CLEAR_SELECTION") このコードをそのまま実行すると、何百万ものフィーチャが選択され、その後ArcGIS…
-
In, On or Out. Collinearity and other things
This is a backgrounder to things spatial, like point in polygon analysis etcetera. Code links are at the end. ——————-For point in polygon, spatial joins and the like, the normally accepted definitions consider points on the boundary of a polygon are "outside". There are situations where you may want to include them.…
-
Arc Py GIS
こんにちは。ケルビンといいます。このテーマのMOOC講座を探しているのですが、どなたか教えていただけませんか?
-
Python Toolbox: Value Table Parameter nesting, defaults?
Well, as much as I normally try to avoid them, I have a project where a value table makes sense. However, they suuuuuuck to figure out and I'm hoping someone has already solved the following questions: * Can you set a persistent default for a column in a value table parameter? * Can you nest a value table inside a value…
-
DefineProjection_managementでPRJが作成されませんでした
私たちはAutoCAD…
-
arcpy.da.TableToNumPyArray
定義クエリが設定された結合テーブルに arcpy.da.TableToNumPyArray を使用すると、インポート後のテーブルに定義クエリが完全に反映されないことに気づいた方はほかにもいますか?
-
Geoprocessing service works when run in Experience Builder or Pro, fails as task?
I have a geoprocessing service that basically does a bunch of field calculations. It has one input parameter, which the user does not see. This parameter takes a json file that points the tool to the right tables. When tool was published as a service, that json file went with it. I got it uploaded and it works great. I'm…
-
Are changes to ArcPy scripts needed when accessing SQL feature classes after upgrading the enterprise geodatabase to Pro
I've only upgraded a test SQL geodatabase from 10.9.2 to 3.5. When the feature classes are listed, the geodatabase name is no longer there. For example, geo.dbo.county now shows up as dbo.county. Does this mean all python scripts referencing feature classes in an enterprise geodatabase need to drop the database name to…
-
Survey123 to Survey123 data append
Hello everyone! I'm using ArcGIS Pro 3.4.5 and I'd like to know if anyone can give me some references, and even an example, of how I can append data from a Survey123 form (it contains some repeats) to another survey that basically has the same structure and attribute names - the difference is that the target survey will…
-
Automate metadata to update summary section
Hello everyone, I am not a developer, I'm using ArcGIS Pro 3.5.7. I am using ModelBuilder to run a scheduled model every 1st day of the month to export feature classes from a SQL geodatabase to a file geodatabase. The next script I would like to run after hours (every 1st of the month) is to update the summary section of…
-
Geocode takes a crazy amount of time to respond
I've got a Azure function app that processes data from a non-Survey123 form. On of the questions on that form allows a person to enter an address, just a street, or a landmark. I'm using geocode() to get x:y coordinates of that location. It works, but it seem to take nearly a half-hour to complete, which is crazy. Below is…
-
Change Tracking layer doesn't have changeTrackingInfo
Hi, I'm working on a workflow where a webhook fires when an attachment is added to a layer. This triggers a notebook on the notebook server to run which is code that will move this attachment to other tables based on ID. What I hoped to do in the notebook is use the extract_changes function because my layer has archiving…
-
How to use arcpy environment settings with python multiprocessing in arcgis pro?
Hi everyone, I want to use arcpy environment settings with python mutliprocessing, but using attribut 'workspace' raises the exception: "AttributeError: 'GPEnvironment' object has no attribute 'workspace'" My code snippet from parent script: mp_exe = os.path.join(sys.exec_prefix, 'pythonw.exe') mp.set_executable(mp_exe)…
-
New ParameterArray container
Seems like the latest version of arcpy has added a ParameterArray container for parameters! I can't seem to find the documentation for it, but it definitely adopts the string based indexing that I've been using for years now haha. Glad to see that this is finally being added officially, but it would be nice to have some…
-
What's the limit to create Maps everyday in ArcGIS Pro?
Is there any limitation to creats maps everyday? OR I can creats everyday or every hours unlimited Maps through Python Programming.
-
Open-source MCP bridge for ArcGIS Pro / ArcPy workflows — feedback wanted
Hi everyone, I’m sharing an independent open-source project I’ve been working on: arcgis-mcp-bridge. It is a local-first MCP server that exposes ArcGIS Pro’s ArcPy runtime to MCP-compatible hosts over stdio JSON-RPC. The goal is to make ArcPy workflows usable through a controlled local bridge without importing ArcPy…
-
空間投影用のArcGISPro -py3スクリプトの実行
皆さん、こんにちは。 Windows Server上でホストしているWebアプリケーションがあります。このアプリケーションは、Windows版ArcGIS Enterprise 12(サーバー)を使用し、SpatialReference用のarcpyスクリプトを実行して、座標をWGSSpatialReferenceに投影します。 Webアプリケーション上でユーザーが座標群の投影を開始した場合(マップの生成やサービスの利用はなく、バックグラウンドで処理され、ツールボックスも使用しません)、すべてのユーザーがCreatorユーザータイプとして扱われるのでしょうか。それとも一般ユーザーとして扱われるのでしょうか。…
-
Update datasource of MapService with Mosaic
I have a map service that include Mosaic Dataset (Map service and NOT image service) I am trying to use arcpy to update from one server to another. I try to use layer.updateConnectionProperties but it does not work. The closest I get is layer.updateConnectionProperties(None, ’https://newserver/arcgis/rest/map1/MapServer’,…
-
Update table so column one stores the value of matching value from column two
Looking for some help. The title of my post isn't the greatest. What I'm trying to do is update an empty field (Pdfs) of my feature class with a full URL that's pulled from HTML of a webpage. I'm matching the ALT values of the webpage with the DXF_TEXT column in the feature class and writing the matching URL into the Pdfs…
-
Geocoding in Pro Jupyter notebook with Street Map Premium
I'm trying to geocode a csv file in an ArcGIS Pro Jupyter notebook, using our Street Map Premium locator. No matter what I do, it returns 'RunTimeError: Object: Error in executing tool'. I'm following the ESRI documentation here. I have an SMP license. I don't really understand the sample field map at "\'Address or Place\'…
-
Python Script to Auto update Web Map from Arc Pro project
I would like to create a python Script to automatically update my web map from my ArcPro project. I have a ArcPro project that I manually update the web map right now. I also used experience builder to create a user-friendly web map that uses the data from my published web map. I have attached my first try at a script, but…
-
ツールボックスのプロパティ : *.atbx を再検討
カスタムツールボックスの方が好きです。なぜなら、ツールプロパティダイアログをスクリーンキャプチャできるからです。テキスト情報を集めるのは少し面倒なので、これを簡単に行い、または自分のツールボックスに組み込むことができるスクリプトを含めました。 ツールボックス、そのツールセット、およびツールから始めます。 これは入力パラメータ付きのツールです。これは *.atbx ツールボックスを文書化するためのものです。 ツールの結果はメッセージに送られ、クリップボードにコピーしてテキストプロセッサなどに貼り付けることができます。 こちらはテキストプロセッサでのサンプル出力です。…