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

gisoracle

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

公告

03 2022 档案

ArcGIS Pro弹出菜单
摘要:var mapView = MapView.Active; if (mapView == null) return; //Create custom popup content var popups = new List<PopupContent>(); popups.Add(new PopupCo 阅读全文

posted @ 2022-03-25 11:54 gisai 阅读(145) 评论(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 L 阅读全文

posted @ 2022-03-24 09:07 gisai 阅读(398) 评论(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 阅读(396) 评论(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 阅读(157) 评论(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 阅读(220) 评论(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 阅读(257) 评论(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 阅读(301) 评论(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 阅读(183) 评论(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 阅读(168) 评论(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 阅读(99) 评论(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 阅读(194) 评论(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 阅读(1045) 评论(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 阅读(129) 评论(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 阅读(108) 评论(0) 推荐(0)

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

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

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 阅读(478) 评论(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 阅读(96) 评论(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)

64位系统下使用mdb数据库问题
摘要:总之,64位系统下.NET访问Access 数据库,最彻底的方法是安装64位的Access数据访问驱动安装程序 并使用新的Access提供程序 Microsoft.ACE.OLEDB.12.0 下载64位:64bit(下载)地址:https://download.microsoft.com/down 阅读全文

posted @ 2022-03-19 11:47 gisai 阅读(542) 评论(0) 推荐(0)

Arcengine开发的pas函数
摘要:unit utGISPub; interface uses esriControls_TLB, esriCarto_TLB, esriDisplay_TLB, esriGeometry_TLB, esriGeoDatabase_TLB, esriSystem_TLB, esriDataSources 阅读全文

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

arcengine 判断要素是否有z值
摘要://判断IFeatureClass图形是否含有Z值信息 IFeatureClass featureClass = this.pLayer.FeatureClass; string shapeFieldName = featureClass.ShapeFieldName; if (featureCla 阅读全文

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

在ArcEngine中创建带高程Z值的点和线图层
摘要:在ArcEngine中创建带高程Z值的点和线图层 管线和其附属物的坐标数据都是带有Z值的 而且有些情况下,一个管段的两个端点的x,y值一模一样(垂直的管段) 这样的线,在直接生成shape图层的时候,就会产生问题,特别是 使用ArcSDE的C API直接创建到表中的时候你会发现,这样的数据是生成不了 阅读全文

posted @ 2022-03-15 23:03 gisai 阅读(316) 评论(0) 推荐(0)

ArcGIS Pro所有的命令和工具
摘要:// // <auto-generated>// This code was generated by a tool.//// Changes to this file may cause incorrect behavior and will be lost if// the code is re 阅读全文

posted @ 2022-03-14 18:13 gisai 阅读(435) 评论(0) 推荐(0)

 
博客园  ©  2004-2025
浙公网安备 33010602011771号 浙ICP备2021040463号-3