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

gisoracle

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

公告

09 2022 档案

ArcGIS Pro进度条 You cannot see the progress dialog if you run from the debugger.
摘要:protected override async void OnClick() { using (var progress = new ProgressDialog("Showing Progress", "Canceled", 100, false)) { var status = new Can 阅读全文

posted @ 2022-09-28 16:21 gisai 阅读(130) 评论(0) 推荐(0)

State/condition for selected feature class/table in a geodatabase
摘要:rotected override void OnClick() { if (subscribed) ProjectWindowSelectedItemsChangedEvent.Unsubscribe(OnProjectWindowSelectedItem); else ProjectWindow 阅读全文

posted @ 2022-09-22 22:14 gisai 阅读(64) 评论(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 @ 2022-09-21 21:37 gisai 阅读(392) 评论(0) 推荐(0)

ArcGIS Pro Tool,单击显示坐标
摘要:protected override Task HandleMouseDownAsync(MapViewMouseButtonEventArgs e) { //Get the instance of the ViewModel var vm = OverlayEmbeddableControl as 阅读全文

posted @ 2022-09-20 19:32 gisai 阅读(196) 评论(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-09-20 14:48 gisai 阅读(63) 评论(0) 推荐(0)

ArcGIS Pro SDK栅格颜色拉伸
摘要:protected override async void OnClick() { var rasterLayer = MapView.Active.Map.GetLayersAsFlattenedList().OfType<ImageServiceLayer>().FirstOrDefault() 阅读全文

posted @ 2022-09-19 21:18 gisai 阅读(102) 评论(0) 推荐(0)

ArcGIS Pro 二次开发缓冲区代码
摘要:var valueArray = await QueuedTask.Run(() => { var g = new List<object>() { geometry, }; // Creates a 8000-meter buffer around the geometry object // n 阅读全文

posted @ 2022-09-19 21:00 gisai 阅读(128) 评论(0) 推荐(0)

ArcGIS Pro二次开发 是否有通过SDK打开/激活目录窗格的简单方法?
摘要:protected override void OnClick() { ExecuteProCommand("esri_core_showProjectView"); ExecuteProCommand("esri_core_showProjectDockPane"); } /// <summary 阅读全文

posted @ 2022-09-18 22:38 gisai 阅读(109) 评论(0) 推荐(0)

ArcGIS Pro SDK二次开发目录的刷新
摘要:protected override void OnClick() { var commandId = FrameworkApplication.GetPlugInWrapper(@"esri_core_exitApplicationButton") as ICommand; if (command 阅读全文

posted @ 2022-09-18 22:29 gisai 阅读(142) 评论(0) 推荐(0)

ArcGIS Pro 查询
摘要:var us_states = MapView.Active.Map.GetLayersAsFlattenedList() .OfType<FeatureLayer>().First(lyr => lyr.Name == "US States"); QueuedTask.Run(() => { us 阅读全文

posted @ 2022-09-17 08:33 gisai 阅读(168) 评论(0) 推荐(0)

ArcEngine拖拽加载文件
摘要:来自:https://www.likecs.com/show-204002511.html 第一步:设置MapControl的AllowDrop属性为True第二步:设置MapControl的OldDropEnabled属性为True第三步:选择MapControl的OnOleDrop事件第四步:加 阅读全文

posted @ 2022-09-16 20:21 gisai 阅读(70) 评论(0) 推荐(0)

基于c#/Arcgis Engine开发时,从ArcCatalog拖放(DragDrog)数据集至TextBox的实现
摘要:原文:http://www.samuelbosch.com/2009/06/drag-drop-from-arccatalog.html 帮助类: using System.Collections.Generic; using System.Windows.Forms; using ESRI.Arc 阅读全文

posted @ 2022-09-15 08:11 gisai 阅读(63) 评论(0) 推荐(0)

文件拖放到WinForm控件上,文件途径(地址)显示到控件上
摘要:先看一下效果,在这里我以TextBox控件为例,其它类型的操作也类似于这样 视频讲解地址 https://www.bilibili.com/video/BV1AV4y1M7mR 步骤如下(控件名为textBox1) 1、注册两个事件,代码如下 1 2 3 4 5 6 7 8 9 10 11 12 1 阅读全文

posted @ 2022-09-15 08:08 gisai 阅读(136) 评论(0) 推荐(0)

How to "Activate" a MapFrame in C#
摘要:internal class ActivateMapFrameBtn: Button { protected override void OnClick() { //1. must be on the GUI - dont switch to QueuedTask //2. Layout view 阅读全文

posted @ 2022-09-12 17:21 gisai 阅读(57) 评论(0) 推荐(0)

Arcengine获得模型(工具)是否存在
摘要:public static bool Exists(IGeoProcessor gp, string modalname) { IGpEnumList pList = gp.ListTools(""); string name = pList.Next(); while (name != "") { 阅读全文

posted @ 2022-09-12 14:56 gisai 阅读(38) 评论(0) 推荐(0)

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