• 博客园logo
  • 会员
  • 众包
  • 新闻
  • 博问
  • 闪存
  • 赞助商
  • HarmonyOS
  • Chat2DB
    • 搜索
      所有博客
    • 搜索
      当前博客
  • 写随笔 我的博客 短消息 简洁模式
    用户头像
    我的博客 我的园子 账号设置 会员中心 简洁模式 ... 退出登录
    注册 登录

gisoracle

  • 博客园
  • 联系
  • 订阅
  • 管理

公告

随笔分类 -  ArcGIS Pro二次开发

上一页 1 2 3 4 5 6 7 8 9 10 下一页

ArcGIS Pro二次开发
ArcGIS Pro获得工作目录和设置工作目录
摘要:var homeDir = Project.Current.HomeFolderPath; var drive = Directory.GetDirectoryRoot(homeDir); if (drive == "C") { //Set the current directory. Projec 阅读全文

posted @ 2022-03-21 10:20 gisai 阅读(477) 评论(0) 推荐(0)

ArcGIS Pro获得工具名称
摘要:Tool currentTool = FrameworkApplication.ActiveTool; MessageBox.Show(currentTool.Caption); private void OnActiveToolChanged(ArcGIS.Desktop.Framework.Ev 阅读全文

posted @ 2022-03-21 10:17 gisai 阅读(95) 评论(0) 推荐(0)

ArcGIS Pro图层组使用和查询
摘要:await QueuedTask.Run(() => { ReadOnlyObservableCollection<Layer> lstLays; lstLays = MapView.Active.Map.Layers; foreach (Layer lay in lstLays) { if (la 阅读全文

posted @ 2022-03-21 10:12 gisai 阅读(197) 评论(0) 推荐(0)

ArcGIS Pro开发Pro没有IWorkspace只有Geodatabase
摘要:ArcGIS Pro开发Pro没有IWorkspace只有Geodatabase 原来create,变成Builder 阅读全文

posted @ 2021-03-14 21:41 gisai 阅读(294) 评论(0) 推荐(0)

await运算符只能用于异步方法中。请考虑用async修饰符标记此方法,并将其返回类型更改为Task...
摘要:private void button1_Click(object sender, EventArgs e) { string url = "http://localhost:35234/api/Products"; //创建HttpClient(注意传入HttpClientHandler) var 阅读全文

posted @ 2021-03-13 09:34 gisai 阅读(936) 评论(0) 推荐(0)

ArcGIS Pro运行Python脚本
摘要:// TODO: fix the path to test1.py so that it points to the proper file location 关注微信公众号:gisoracle var pathProExe = System.IO.Path.GetDirectoryName((ne 阅读全文

posted @ 2021-03-09 21:18 gisai 阅读(582) 评论(0) 推荐(0)

获得ArcGIS Pro的版本
摘要:using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System. 阅读全文

posted @ 2021-03-09 20:58 gisai 阅读(187) 评论(0) 推荐(0)

ArcGIS Pro使用键盘控制地图平移
摘要:/* Copyright 2019 Esri Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License 阅读全文

posted @ 2021-03-09 20:24 gisai 阅读(405) 评论(0) 推荐(0)

ArcGIS Pro添加注记工具
摘要:using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using ArcGIS.Core.CIM; using ArcGI 阅读全文

posted @ 2021-03-09 20:09 gisai 阅读(578) 评论(0) 推荐(0)

ArcGIS Pro二次开发添加网络图层
摘要:protected override void OnClick() { AddLayerToMap(); } private async Task AddLayerToMap() { try { // Get the first map called "Map" from the current p 阅读全文

posted @ 2021-03-09 19:42 gisai 阅读(293) 评论(0) 推荐(0)

ArcGIS Pro放大缩小按钮
摘要:/* Copyright 2019 Esri Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License 阅读全文

posted @ 2021-03-08 09:40 gisai 阅读(456) 评论(0) 推荐(0)

ArcGIS Pro获得一个图层的样式
摘要:private CIMPointSymbol GetPointSymbolFromLayer(Layer layer) { if (!(layer is FeatureLayer)) return null; var fLyr = layer as FeatureLayer; var rendere 阅读全文

posted @ 2021-03-08 09:34 gisai 阅读(244) 评论(0) 推荐(0)

ArcGIS Pro二次开发闪烁对象
摘要:private async void FlashFeaturesAsync(IReadOnlyDictionary<BasicFeatureLayer, List<long>> flashFeatures) { //Get the active map view. var mapView = Map 阅读全文

posted @ 2021-03-08 09:32 gisai 阅读(170) 评论(0) 推荐(0)

获得版本ArcGIS Pro
摘要:获得版本 print(arcpy.GetInstallInfo()['Version']) https://github.com/esri/arcgis-pro-sdk-community-samples 阅读全文

posted @ 2021-03-07 21:38 gisai 阅读(108) 评论(0) 推荐(0)

ArcGIS Pro SDK开发从别的收集
摘要:来自https://blog.csdn.net/baidu_28157641/article/details/109499943 粘贴图层符号系统: 注意:并且这个操作不能被撤销和重做,事实上,使用Pro中自带的 应用图层的符号设置 工具执行这一操作也不能被撤销和重做。 protected over 阅读全文

posted @ 2021-03-06 16:52 gisai 阅读(340) 评论(0) 推荐(0)

ArcGIS Pro空间查询
摘要:using (Geodatabase geodatabase = new Geodatabase(connectionProperties)) using (FeatureClass schoolBoundaryFeatureClass = geodatabase.OpenDataset<Featu 阅读全文

posted @ 2020-05-11 16:13 gisai 阅读(547) 评论(0) 推荐(0)

ArcGIS Pro多线程
摘要:protected async void SetActiveRecord() { #region Set the active record await QueuedTask.Run(async () => { var layers = MapView.Active.Map.GetLayersAsF 阅读全文

posted @ 2020-05-11 14:55 gisai 阅读(830) 评论(0) 推荐(0)

ArcGIS Pro改变光标
摘要:public CustomMapTool() { IsSketchTool = true; SketchType = SketchGeometryType.Rectangle; SketchOutputMode = SketchOutputMode.Map; //A custom cursor fi 阅读全文

posted @ 2020-04-11 08:57 gisai 阅读(543) 评论(0) 推荐(0)

ArcGIS Pro配置中删除已有所有TAB
摘要:using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Windows.Input; using System.Threading.Tasks; using 阅读全文

posted @ 2020-04-06 12:11 gisai 阅读(380) 评论(0) 推荐(0)

ArcGIS Pro右上角的提示信息
摘要:Notification notification = new Notification(); protected override void OnClick() { try { if (Project.Current == null) return; notification.Title = "提 阅读全文

posted @ 2020-04-06 10:52 gisai 阅读(437) 评论(0) 推荐(0)

上一页 1 2 3 4 5 6 7 8 9 10 下一页
 
博客园  ©  2004-2025
浙公网安备 33010602011771号 浙ICP备2021040463号-3