帖子
|
关于2)你可以使用GP工具来执行这个工作流(将一个光栅引用到一个引用层-ArcGIS Pro |文档)。你可以首先调用'Warp' GP工具:Warp如何工作-ArcGIS Pro |文档,然后使用'光栅投影' GP工具:项目光栅(数据管理)-ArcGIS Pro |文档。你可以从SDK调用这些GP工具。
...查看更多
一周前
|
1
|
1
|
11
|
帖子
|
下面的代码段对我有用:protected override async void OnClick() {var fcLayer = mapview . activemap . getlayersas平坦列表(). oftype
2周前
|
0
|
0
|
34
|
帖子
|
在2017年的DevSummit上,Esri的一位产品工程师(Tushar,他已经不在Esri工作了)做了一个样例,基本上就是你在用例1中尝试做的事情。从视频的第37分钟开始:用于。net的ArcGIS Pro SDK:与ArcGIS在线集成- Esri视频:GIS,事件,ArcGIS产品和行业我附上了演示源代码供您参考。请注意,该代码是针对ArcGIS Pro 1.4的,大约有5年的历史。但是,它可能会为您提供一些关于如何使用EsriHttpClient来完成任务的提示。
...查看更多
3周前
|
1
|
0
|
51
|
帖子
|
或者你可以使用ArcGIS Pro的“内置”功能来创建一个到门户的连接,然后使用ArcGISPortal类来获得一个令牌:
...查看更多
3周前
|
0
|
1
|
58
|
帖子
|
该工具文档仅将“File”显示为有效输入。这个增强必须由GP工具来实现(或者GP工具,因为我可以想象这个功能在许多工具中都是有用的),所以我建议要么把它添加到ArcGIS Pro Ideas - Esri社区,要么投票支持这个项目,如果它已经在那里。188金宝博复式188金宝搏网址导航目前,你仍然需要流到一个临时的.json文件中,并将其传递给工具。
...查看更多
3周前
|
0
|
1
|
54
|
帖子
|
根据ProConcept Pro SDK自定义项目文档,这似乎是“设计”。·Esri/arcgis-pro-sdk Wiki (github.com)配置中指定的文件扩展名。Daml是区分大小写的,因此只有使用区分大小写的比较匹配文件扩展名的文件才能工作。我不确定这一限制背后的原因。
...查看更多
3周前
|
2
|
0
|
91
|
帖子
|
为了控制你的ArcGIS Pro自定义标签和控件可以使用这里列出的状态和条件:ProConcepts框架·Esri / arcgis-pro-sdk Wiki (github.com)有一个指南如何做到这一点:ProGuide代码自己的状态和条件·Esri / arcgis-pro-sdk Wiki (github.com)和一些示例代码:arcgis-pro-sdk-community-samples /框架在主人·Esri arcgis-pro-sdk-community-samples (github.com)你在后台代码就会发现门户用户组:PortalGroup Class-ArcGIS Pro,根据返回的组,您可以激活或禁用相应的状态。最后,由于模块外接程序是JIT (Just In Time)加载的,默认情况下,直到用户界面需要外接程序模块时才加载,你可以改变这种行为,在启动时加载你的模块,如下所述:
...查看更多
4星期前
|
0
|
1
|
65
|
帖子
|
我能够复制的问题与别名属性不保留其值之间的会话,即使当我显式保存项目。我向框架开发团队报告了这个问题。谢谢你报道这个问题。
...查看更多
4星期前
|
0
|
0
|
43
|
帖子
|
这将适用于lyrx文件。Lyr文件来自ArcGIS桌面,所以我不确定3.0是否仍然会加载这些文件。OnClick() {string url = @"c:\temp\Acme Service Roads.lpkx";//加载层文件Uri Uri =新Uri(url);等待QueuedTask.Run(() => LayerFactory.Instance。MapView.Active.Map CreateLayer (uri));}
...查看更多
4星期前
|
0
|
0
|
84
|
帖子
|
我认为问题是,你不能重用的EditOperation是启动OnRowCreated事件。另外,不建议切换和等待Row事件中的线程,因为这可能导致线程死锁。重申一下您的工作流程:在RowCreated事件上,您需要提供一个用户界面,允许用户操作一个值,然后使用该值更新新创建行的字段值。为了做到这一点,我不得不在OnRowEvent结束后在UI线程上启动ProWindow,然后使用单独的EditOperation来更新新创建的行。我附上了我的示例项目,请注意它是使用C:\Data\FeatureTest\FeatureTest。使用示例插件,我可以使用'TestChainedUpdate'按钮初始化我的事件监听器:创建一个新行将触发OnRowCreated事件,在事件代码中,我记得新创建的记录的对象id(用于后续更新),并在UI上初始化ProWindow ShowDialog:protected void OnRowCreated(RowChangedEventArgs rowChanged) {Module1. protected voidUpdatedObjectId = rowchanged . row . getobectid ();ProApp.Current.Dispatcher.BeginInvoke (DispatcherPriority。Normal, (Action)() => {OpenPrinWindowInfoInput();}));所有的工作都在OpenPrinWindowInfoInput中完成,它在行创建后在UI线程上执行。 Here is the code: private async void OpenPrinWindowInfoInput () { // open the dialog, populate initial data to show and process result var prowindowinfoinput = new ProWindowInfoInput(); prowindowinfoinput.Owner = FrameworkApplication.Current.MainWindow; var proWinVm = new ProWindowInfoInputVM { RecordInfo = $@"Created Record's {Module1.UpdatedObjectIdField}: {Module1.UpdatedObjectId}" }; prowindowinfoinput.DataContext = proWinVm; prowindowinfoinput.Closed += (o, e) => { System.Diagnostics.Debug.WriteLine("Pro Window Dialog closed"); }; var dlgResult = prowindowinfoinput.ShowDialog(); if (dlgResult == true) { // user click Ok: update the newly created record with info input data // load the inspector with the feature await QueuedTask.Run(() => { var insp = new Inspector(); insp.Load(_testLayer, Module1.UpdatedObjectId); insp[UpdateField] = proWinVm.InfoData; //create and execute the edit operation var op = new EditOperation { Name = "Update newly created record", SelectModifiedFeatures = false, SelectNewFeatures = false }; op.Modify(insp); op.Execute(); }); } } After i click 'update' in the ProWindow I use Inspector to get the newly created record and update the newly created record in a new EditOperation: Ideally i would like to use a Chained EditOperation here but i got an error trying to create a chained edit operation. However, the transaction is on undo/redo stack:
...查看更多
12-01-2022上午08:23
|
1
|
1
|
67
|
标题 | 荣誉 | 发布 |
---|---|---|
1 | 一周前 | |
1 | 3周前 | |
2 | 3周前 | |
1 | 12-01-2022上午08:23 | |
1 | 11-29-202202:43点 |