-
How to do regression testing with ArcGIS Pro 3.7
Following the online advice https://doc.esri.com/en/arcgis-pro/latest/sdk/api-reference/conceptdocs/docs/ProGuide-Regression-Testing.html for regression testing an ArcGIS Pro addin, the file TestEnvironment.cs refers to a Task TestModeInitializeAsync, defined in ArcGIS.Desktop.Internal.Core.PropAppInternalExtensions. This…
-
レイアウトで現在の地図の縮尺を取得する
こんにちは、 私は、さまざまなレイヤーを含むMapframeを持つレイアウトを作成しました。1つか2つのレイヤーには、ユーザーが選択したIDに対するDefinitionqueryがあります。このレイヤーはMapframe内でフィット(ズーム)されます。 その後、地図/Mapframeの現在の地図縮尺を取得したいのですが、カメラに縮尺があることはわかりました。しかし、その値を見ると、通常のmapviewでIDにズームしたときの値とは異なります。 特別な点としては、このレイアウトはarcgis上では表示されず、画像をエクスポートするためにバックグラウンドでのみ作成されていることです。
-
VS code サポート
皆さん、こんにちは 私は10年前に開発されたレガシーなArcMapプラグインをArcGIS Proプラグイン(ArcGIS Pro 3.5)に移行する任務を受けました。主にWeb開発にはVS codeを使用しています。Proプラグインの開発にVS codeを使うことはできますか?簡単に調べたところ、VS studio 2022が推奨されているようです。この点について教えてください。
-
アドインがラスター レイヤーの結合された属性テーブル(ラスター レイヤー用のIDisplayTable)を読み取れるようにする
問題の概要 ArcGIS Proでは、ユーザーがスタンドアロン テーブルをラスター レイヤーの属性テーブルに結合できます(VAT付きの任意のラスターで「Add Join」)。結合された列は、その後アプリケーション内のどこでもラスターの属性テーブルの一部として機能します。属性テーブルビュー、ポップアップ、シンボロジ ペインに表示され、結合された列に直接基づくユニーク値カラーライザーを作成できます(結合されたクラス名フィールドでシンボル化およびラベル付けされた土地被覆ラスターが日常的な例です)。 ArcGIS Pro SDKはこれらをアドインに提供していません。フィーチャ レイヤーとスタンドアロン…
-
WebViewBrowser コントロールで Single Sign-On (SSO) のサポートを追加する予定はありますか?
こんにちは、私たちは最近、Esri の WebViewBrowser コントロールの使用を停止しなければなりませんでした。なぜなら Single Sign-On (SSO) を有効にする必要があったからです。クラスのプロパティ AllowSingleSignOnUsingOSPrimaryAccount CoreWebView2EnvironmentOptions は SSO を有効にすることができますが、WebViewBrowser は WebView2 環境の構築と初期化を管理しており、オプションは許可されていません。私たちは WebView2…
-
ArcGIS Pro用オープンソース林業ツールキット – フィールドワーク、ドローンマッピング、火災ホットスポット、森林分析
皆さん、こんにちは、 私が取り組んでいる小さなオープンソースプロジェクト「Forestry Toolkit」を共有したいと思います。これは実用的な林業とフィールドワークのワークフローを中心に構築されたArcGIS Proのアドインです。 もともとは林業作業で遭遇する繰り返しの多いGISタスクを簡素化するために始めましたが、徐々にArcGIS Pro内のツール集へと成長しました。 現在の主な機能には以下が含まれます: * ドローン飛行ミッション計画 * 木材調査Excelインポート * オルソフォトからの樹木および油ヤシ検出 * 土地開発検出 * 道路/トレイル抽出 * NASA FIRMSの活火山ホットスポット * バイオマスおよび炭素推定…
-
MapFrameはレイヤーが追加されるとフリーズします
こんにちは、 私はレイアウトを作成し、その後PNGファイルにエクスポートするアドインを持っています。 問題は、Mapframeを作成するために使用されるマップにレイヤーを追加すると、この行でフリーズしてしまうことです。パフォーマンスの問題かどうか確認するためにしばらく待ちましたが、5〜10分経っても何も起こりません。 oMapframe = ElementFactory.Instance.CreateMapFrameElement(oLayout, oEnv, oMap)…
-
ArcGIS Pro MCP
Dear all, I have released a free, open-source ArcGIS Pro add-in that lets an AI assistant work on the project you have open — style layers, run geoprocessing, query attributes, build layouts — by asking in plain language. "Colour the provinces by area, pastel red through green." "Which are bigger than 15,000 km²? Zoom to…
-
QueuedTaskを使用しない場合
私はArcGIS Proのイベントにサブスクライブし、重要なイベントの概要をサーバーに報告してウェブクライアントのダッシュボードを駆動するアドインを開発しています。私たちのアドインの大きな目標は、ユーザーへの影響を最小限に抑えることです。その考えと時にはMCTを使用する必要があることから、QueuedTaskに大きく依存しています。 私たちのアプリケーションの典型的なフローは、次のスニペットのようなものです: GPExecuteToolEvent.Subscribe((evt) => QueuedTask.Run(() => { // parseGPEventはMCTを必要とする場合があります var parsedEvent =…
-
How to deal with Nulls in the Geodatabase Tables?
Hi Everyone, I am relatively new to C# and this is a C#/SDK question. I have been switching back and forth between DBNull.Value versus null to identify null values. Can you someone confirm which is the correct one to use for my case? I am performing calculations using the data from a geodatabase table. Each set of values…
-
Main Group “Zoom To Layer” gives incorrect extent when a subgroup contains an empty layer
I have the following layer structure in ArcGIS Pro: Main Group ├── FeatureLayer A ├── FeatureLayer B └── Sub Group ├── FeatureLayer C └── FeatureLayer D (empty) Zoom To Layer works correctly for all individual feature layers and also for the Sub Group. However, when I right-click the Main Group and select Zoom To Layer,…
-
A CoreHost app targeting .NET 10 crashes when working with Pro 3.6 and previous
We have a small CoreHost application targeting .NET 8 that works with Pro 3.4-3.6. To make it also work with Pro 3.7 we changed the .NET target to 10. We expect the new version to work with Pro 3.4-3.7 as .NET supports backward compatibility and Pro 3.7 can load add-ins targeting .NET 6-10. The application (as recommended)…
-
ArcGIS Pro 3.6.1 Local Scene does not refresh imagery after adding/removing an elevation source until zooming
Hello, I found what appears to be a display issue in ArcGIS Pro 3.6.1 Local Scene. Steps to reproduce: * Create a new ArcGIS Pro project. * Add a new Local Scene and remove the default 2D map. * Add an elevation source (DEM) to the Ground surface. * Add an imagery raster layer. * Add or remove the elevation source again.…
-
Edit Operation Not Enabling Undo in ArcGIS Pro
All - I've been trying to find my problem for days and am stuck. The attached snippet has code that updates feature attributes inside an Edit Operation. When executed the updates are applied as expected, but the ArcGIS Pro "Undo" does not become enabled. The crux of the code is below. The code is attached. Any suggestions…
-
ArcGIS Pro Compatibility
We are building an ArcGIS Pro add-in with the ArcGIS Pro SDK. What's a good strategy to support older versions of ArcGIS Pro, especially versions using different .NET runtimes? For example, if we are building our next release with the ArcGIS Pro SDK 3.6, how should we support users running ArcGIS Pro 3.5 and older, or even…
-
Implementing Custom Asynchronous Job Pattern (SubmitJob/Status/Results) in C# SOE using ArcGIS Enterprise SDK
Hello everyone, I am developing a custom Server Object Extension (SOE) using C# and the ArcGIS Enterprise SDK. My extension needs to run heavy, long-running queries and traces against a Utility Network dataset. Because these operations can exceed standard HTTP and Web Adaptor timeouts, a synchronous REST request isn't…
-
SchemaBuilder error with enterprise geodatabase
Hi, I wrote code that adds a field to a feature class using SchemaBuilder. It works correctly with a file geodatabase, but not with an enterprise geodatabase hosted on PostgreSQL. In that case, an error message is returned stating: "The Fields collection contained multiple geometry fields. (st_perimeter(shape)". The error…
-
Get Reference to a "Trace Network" in a Geodatabase
Google Gemini says I should be able to get a reference to a Trace Network using the following code. TraceNetwork traceNetwork = gdb.OpenDataset<TraceNetwork>("MyNetwork"); (see below) I don't see "TraceNetwork" as a valid definition for a geodatabase object when I try this. Am I missing something, or is there another way…
-
Default Version Guard - ArcGIS Pro SDK add-in
The Problem If you edit enterprise, branch-versioned feature service data in ArcGIS Pro, you've probably had that moment of dread wondering whether you just made edits on the Default version instead of a child branch version. Even if you set Default to protected, users with Portal admin & version admin roles have the…
-
ArcGIS Enterprise Patch and QueryFilter issues/changes
Issue has resolved itself.
-
When I programatically select from a FeatureLayer anytime ofter selecting on the map, The application freezes.
I have a class that wraps a FeatueLayer. This is to make sure I can make MCT calls organically from other code. public class FeatureLayerWrapper { FeatureLayerWrapper(FeatureLayer featLayer){ RawfeatureLayer = featLayer; } public FeatureLayer RawfeatureLayer { get; private set;} public async Task<Selection> Select(…
-
Table Name from TOC returned prefaced with a "%"
Hi - I'm just trying to understand what's going on here. I have a stand-alone table from an Oracle database in my TOC named MAXIMO.ZXQSERVPOINT. See below. When, in code, I iterate through the tables present in the TOC the name is returned as "MAXIMO.%ZXQSERVPOINT". See below. What's the deal with the "%" ?? Any info would…
-
Project Open failed in ArcGIS Pro 3.7
Hi, in our Add-In we open a template APRX, which is basically empty project. We do this when Pro is starting in an event OnAppStartupReady and we used the code below. Everything worked fine until we upgraded to ArcGIS Pro 3.7. Now we receive an error message (but not always, sometimes it runs without error): "Project Open…
-
ArcGIS Pro per-user installation ignores ConfigurationName and Configuration Folders Registry Keys
Hello, While testing ArcGIS Pro with a per-user installation, I noticed behavior that appears different from what is documented regarding automatic configuration discovery. According to the SDK documentation, ArcGIS Pro can automatically locate a .proConfigX configuration using the following registry keys: *…
-
DAML shared tab across multiple addins
Hello -- We are currently using the ArcGIS Pro SDK for Pro version 3.5, and had a question about creating a shared tab for use with multiple, independent addins. By way of example, suppose I had two addins, called A and B. They are both mutually exclusive and don't depend on each other. Our end users may have both A and B…