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

gisoracle

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

公告

随笔分类 -  ArcGIS Pro二次开发

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

ArcGIS Pro二次开发
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 L 阅读全文

posted @ 2022-03-24 09:07 gisai 阅读(396) 评论(0) 推荐(0)

ArcGIS Pro屏幕上临时画一条线
摘要:public MapTool1() { IsSketchTool = true; SketchType = SketchGeometryType.Line; SketchOutputMode = SketchOutputMode.Map; } protected override Task OnTo 阅读全文

posted @ 2022-03-23 22:45 gisai 阅读(274) 评论(0) 推荐(0)

ArcGIS Pro根据线层所有数据生成外接多边形
摘要:private Task<bool> ConstructSamplePolygon(FeatureLayer polygonLayer, FeatureLayer lineLayer) { // execute the fine grained API calls on the CIM main t 阅读全文

posted @ 2022-03-23 21:47 gisai 阅读(395) 评论(0) 推荐(0)

ArcGIS Pro代码创建一个随机点
摘要:public static class RandomExtension { /// <summary> /// Generate a random double number between the min and max values. /// </summary> /// <param name 阅读全文

posted @ 2022-03-23 11:50 gisai 阅读(156) 评论(0) 推荐(0)

ArcGIS Pro更新一个图层数据源路径
摘要:private async void ChangeDatasource(FeatureLayer featLayer, string newGDB) { await QueuedTask.Run(() => { // provide a replacement data connection obj 阅读全文

posted @ 2022-03-23 11:27 gisai 阅读(219) 评论(0) 推荐(0)

ArcGIS Pro二次开发添加字段
摘要:private async Task<bool> ExecuteAddFieldTool(BasicFeatureLayer theLayer, KeyValuePair<string, string> field, string fieldType, int? fieldLength = null 阅读全文

posted @ 2022-03-23 11:12 gisai 阅读(254) 评论(0) 推荐(0)

ArcGIS Pro删除一个字段
摘要:private async Task<bool> ExecuteDeleteFieldTool(BasicFeatureLayer theLayer, string fieldName) { try { return await ArcGIS.Desktop.Framework.Threading. 阅读全文

posted @ 2022-03-23 11:10 gisai 阅读(299) 评论(0) 推荐(0)

ArcGIS Pro获得一个数据源的路径
摘要:private async Task<string> GetDataSource(BasicFeatureLayer theLayer) { try { return await ArcGIS.Desktop.Framework.Threading.Tasks.QueuedTask.Run(() = 阅读全文

posted @ 2022-03-23 11:09 gisai 阅读(181) 评论(0) 推荐(0)

ArcGIS Pro更新属性的Inspector
摘要:#region Business Logic // Create instances of the edit boxes for use in the UpdateValues method public AttributeNameToUseEditBox AttributeNameToUseEdi 阅读全文

posted @ 2022-03-22 13:12 gisai 阅读(166) 评论(0) 推荐(0)

ArcGIS Pro简化一个圆
摘要:SpatialReference previousSR = densifyPolygon.SpatialReference; //Need to get to WebMercator in order to get the circle the same densifyPolygon = Geome 阅读全文

posted @ 2022-03-22 12:57 gisai 阅读(78) 评论(0) 推荐(0)

ArcGIS Pro 删除记录时提示
摘要:protected override void OnClick() { QueuedTask.Run(() => { Table table = MapView.Active.Map.GetLayersAsFlattenedList().OfType<FeatureLayer>().FirstOrD 阅读全文

posted @ 2022-03-22 11:21 gisai 阅读(98) 评论(0) 推荐(0)

ArcGIS Pro获得一个字段值
摘要:ublic async Task<List<string>> LookupMukey() { var mukeys = new List<string>(); var MV = MapView.Active; int mukeyCount = 0; var SelectionLayer = MV.M 阅读全文

posted @ 2022-03-21 22:27 gisai 阅读(193) 评论(0) 推荐(0)

ArcGIS Pro lyrx使用
摘要:创建图层从lyrx文件 Create layer from a lyrx file var lyrDocFromLyrxFile = new LayerDocument(@"d:\data\cities.lyrx"); var cimLyrDoc = lyrDocFromLyrxFile.GetCI 阅读全文

posted @ 2022-03-21 22:04 gisai 阅读(1042) 评论(0) 推荐(0)

ArcGIS Pro获得Polygon每一个部分
摘要:public void GetExteriorRings(Polygon inputPolygon) { if (inputPolygon == null || inputPolygon.IsEmpty) return; // polygon part count int partCount = i 阅读全文

posted @ 2022-03-21 21:25 gisai 阅读(153) 评论(0) 推荐(0)

ArcGIS Pro空间查询
摘要:SpatialQueryFilter filter = new SpatialQueryFilter(); filter.FilterGeometry = geometry; filter.SpatialRelationship = SpatialRelationship.Intersects; v 阅读全文

posted @ 2022-03-21 21:05 gisai 阅读(205) 评论(0) 推荐(0)

ArcGIS Pro中改变How can Combobox selection change Checkbox isChecked
摘要:internal class Module1 : Module { private static Module1 _this = null; //Capture the checkbox here public CheckBox CheckBox { get; set; } = null; //Eg 阅读全文

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

ArcGIS Pro 快速增加在内存表点中
摘要:// Works : protected async Task MemDB_Geoprocessing() { string gdbPath = "memory"; //string gdbPath = CoreModule.CurrentProject.DefaultGeodatabasePath 阅读全文

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

ArcGIS Pro获得所有的矢量图层
摘要:var allFeatLayers = map.GetLayersAsFlattenedList().OfType<FeatureLayer>().ToList(); foreach (var layer in allFeatLayers) { // Do something with layer 阅读全文

posted @ 2022-03-21 13:54 gisai 阅读(170) 评论(0) 推荐(0)

ArcGIS Pro TableToGeodatabase
摘要:var progDlg = new ProgressDialog("Running Table to Table", "Cancel", 100, true); progDlg.Show(); var progsrc=new CancelableProgressorSource(progDlg); 阅读全文

posted @ 2022-03-21 13:52 gisai 阅读(105) 评论(0) 推荐(0)

ArcGIS Pro中重名称图层
摘要:layer.SetName("New layer name gisoracle"); 阅读全文

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

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