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

gisoracle

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

公告

随笔分类 -  C#

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

C#
CreatePolygonGraphicElement
摘要:QueuedTask.Run( () => { var layout = Project.Current.GetItems<LayoutProjectItem>().FirstOrDefault().GetLayout(); var element = layout.Elements.OfType< 阅读全文

posted @ 2020-04-03 22:26 gisai 阅读(495) 评论(0) 推荐(0)

Creating a Group with a List of Elements
摘要:Project.Current.GetItems<LayoutProjectItem>().FirstOrDefault()?.GetLayout(); List<Element> elements = new List<Element>(); for (int i = 0; i < 100; i+ 阅读全文

posted @ 2020-04-03 22:22 gisai 阅读(442) 评论(0) 推荐(0)

ArcGISPro理解多线程
摘要:cGIS Pro differs markedly from existing ArcGIS for Desktop applications in that it is built with a multithreaded architecture designed to leverage mod 阅读全文

posted @ 2020-04-03 22:20 gisai 阅读(662) 评论(0) 推荐(0)

ArcGIS Pro栅格修改大小另存
摘要:System.Uri uri = new Uri("e:\\ESRI_GDB\\Southampton.gdb"); QueuedTask.Run(() => { FileGeodatabaseConnectionPath path = new FileGeodatabaseConnectionPa 阅读全文

posted @ 2020-04-03 22:13 gisai 阅读(809) 评论(0) 推荐(0)

ArcGIS pro=callout
摘要:Creates a simple line callout text symbol Creates a simple line callout text symbol. The CIMSimpleLineCallout created is a dash-dot-dash line symbol w 阅读全文

posted @ 2020-04-03 22:07 gisai 阅读(435) 评论(0) 推荐(0)

ArcGIS Pro-SetCustomFullExtent
摘要:LayoutProjectItem layoutItem = Project.Current.GetItems<LayoutProjectItem>().FirstOrDefault(item => item.Name.Equals("Standard")); Layout layout = lay 阅读全文

posted @ 2020-04-03 21:44 gisai 阅读(355) 评论(0) 推荐(0)

ArcGIS Pro二次开发几个疑难问题
摘要:1.如何执行ExecuteSQL 2.获得一个文件夹的所有gdb 3.删除公里网 4.设置切割打印 5.获得arcgis pro的版本 6.获得所有按钮的ID 7.怎么创建注记要素 阅读全文

posted @ 2020-04-03 21:28 gisai 阅读(370) 评论(0) 推荐(0)

AE 彻底释放工作空间
摘要:IWorkspaceFactory pwf = new ShapefileWorkspaceFactory(); //关闭资源锁定 IWorkspaceFactoryLockControl ipWsFactoryLock = IWorkspaceFactoryLockControl)pwf; if  阅读全文

posted @ 2020-04-03 21:06 gisai 阅读(433) 评论(0) 推荐(0)

ArcGIS Pro获得一个要素图层一种方法
摘要:private FeatureLayer GetFeatureLayerByName(Map map, string layerName) { var featureLayers = map.GetLayersAsFlattenedList().OfType<FeatureLayer>(); for 阅读全文

posted @ 2020-04-02 20:43 gisai 阅读(565) 评论(0) 推荐(0)

ArcGIS Pro layout clone
摘要:1. Make a new layout 2. Copy the layout to be "duplicated" (this is the Clone method) 3. Replace the layout URI of the copy with the URI of the new la 阅读全文

posted @ 2020-04-02 19:42 gisai 阅读(286) 评论(0) 推荐(0)

ActiveMapViewChanged和选择变化
摘要:/Subscribe to eventArcGIS.Desktop.Framework.Events.ActivePaneChangedEvent.Subscribe(OnActivePaneChanged);private void OnActivePaneChanged(PaneEventArg 阅读全文

posted @ 2020-04-02 19:35 gisai 阅读(256) 评论(0) 推荐(0)

ArcGIS Pro 改变栅格的数据源
摘要:var rasterLayer = MapView.Active.Map.GetLayersAsFlattenedList().OfType<RasterLayer>().FirstOrDefault(); QueuedTask.Run(async () => { using (Geodatabas 阅读全文

posted @ 2020-04-02 19:33 gisai 阅读(473) 评论(0) 推荐(0)

ArcGIS Pro自定义图标
摘要:来自:https://community.esri.com/thread/250077-custom-control-and-handling-images Let say in xaml <Image x:Name="ImgStatus" Grid.Column="1" Grid.Row="0" 阅读全文

posted @ 2020-04-02 19:29 gisai 阅读(845) 评论(0) 推荐(0)

ArcGIS Pro判断坐标系是否是1984
摘要:The easiest way is to check the well-known id. if (sr.Wkid == SpatialReferences.WGS84.Wkid) IsWGS84 = true; or you could use the hard-coded wkid = 432 阅读全文

posted @ 2020-04-02 19:10 gisai 阅读(343) 评论(0) 推荐(0)

ArcGIS Pro地图册操作
摘要:MapSeriesExportOptions MSExport_custom = new MapSeriesExportOptions() { ExportPages = ExportPages.Custom, CustomPages = "1-3, 5", ExportFileOptions = 阅读全文

posted @ 2020-04-02 13:05 gisai 阅读(463) 评论(0) 推荐(0)

ArcGIS Pro批量加字段测试代码,很慢
摘要:private async void BatchAddField() { MapView mapView = MapView.Active; if (mapView == null) { return; } FeatureLayer featureLayer = mapView.Map.Layers 阅读全文

posted @ 2020-03-31 16:35 gisai 阅读(298) 评论(0) 推荐(0)

ArcGIS Pro线延长
摘要:ExtendFlags含义0 Default = 0 // By default, extension considers both ends of parts. The old ends remain and new // points are added at the extended ends 阅读全文

posted @ 2020-03-29 19:34 gisai 阅读(786) 评论(0) 推荐(0)

ArcGIS Pro 屏幕画框矩形打印含四周注记
摘要:ArcGIS Pro 屏幕画框矩形打印含四周注记 阅读全文

posted @ 2020-03-29 09:35 gisai 阅读(298) 评论(0) 推荐(0)

ArcGIS Pro 地图刷新和布局刷新
摘要:MapView.Active.Redraw(true); await QueuedTask.Run(() => layoutView.Refresh()); 阅读全文

posted @ 2020-03-29 08:34 gisai 阅读(797) 评论(0) 推荐(0)

枚举转字符串
摘要:string str = Enum.GetName(typeof(FontStyle), fontDialog1.Font.Style); MessageBox.Show(str); 阅读全文

posted @ 2020-03-28 16:09 gisai 阅读(299) 评论(0) 推荐(0)

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