摘要:var homeDir = Project.Current.HomeFolderPath; var drive = Directory.GetDirectoryRoot(homeDir); if (drive == "C") { //Set the current directory. Projec
阅读全文
摘要:Tool currentTool = FrameworkApplication.ActiveTool; MessageBox.Show(currentTool.Caption); private void OnActiveToolChanged(ArcGIS.Desktop.Framework.Ev
阅读全文
摘要:await QueuedTask.Run(() => { ReadOnlyObservableCollection<Layer> lstLays; lstLays = MapView.Active.Map.Layers; foreach (Layer lay in lstLays) { if (la
阅读全文
摘要:ArcGIS Pro开发Pro没有IWorkspace只有Geodatabase 原来create,变成Builder
阅读全文
摘要:private void button1_Click(object sender, EventArgs e) { string url = "http://localhost:35234/api/Products"; //创建HttpClient(注意传入HttpClientHandler) var
阅读全文
摘要:// TODO: fix the path to test1.py so that it points to the proper file location 关注微信公众号:gisoracle var pathProExe = System.IO.Path.GetDirectoryName((ne
阅读全文
摘要:using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.
阅读全文
摘要:/* 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
阅读全文
摘要:using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using ArcGIS.Core.CIM; using ArcGI
阅读全文
摘要:protected override void OnClick() { AddLayerToMap(); } private async Task AddLayerToMap() { try { // Get the first map called "Map" from the current p
阅读全文
摘要:/* 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
阅读全文
摘要:private CIMPointSymbol GetPointSymbolFromLayer(Layer layer) { if (!(layer is FeatureLayer)) return null; var fLyr = layer as FeatureLayer; var rendere
阅读全文
摘要:private async void FlashFeaturesAsync(IReadOnlyDictionary<BasicFeatureLayer, List<long>> flashFeatures) { //Get the active map view. var mapView = Map
阅读全文
摘要:获得版本 print(arcpy.GetInstallInfo()['Version']) https://github.com/esri/arcgis-pro-sdk-community-samples
阅读全文
摘要:来自https://blog.csdn.net/baidu_28157641/article/details/109499943 粘贴图层符号系统: 注意:并且这个操作不能被撤销和重做,事实上,使用Pro中自带的 应用图层的符号设置 工具执行这一操作也不能被撤销和重做。 protected over
阅读全文
摘要:using (Geodatabase geodatabase = new Geodatabase(connectionProperties)) using (FeatureClass schoolBoundaryFeatureClass = geodatabase.OpenDataset<Featu
阅读全文
摘要:protected async void SetActiveRecord() { #region Set the active record await QueuedTask.Run(async () => { var layers = MapView.Active.Map.GetLayersAsF
阅读全文
摘要:public CustomMapTool() { IsSketchTool = true; SketchType = SketchGeometryType.Rectangle; SketchOutputMode = SketchOutputMode.Map; //A custom cursor fi
阅读全文
摘要:using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Windows.Input; using System.Threading.Tasks; using
阅读全文
摘要:Notification notification = new Notification(); protected override void OnClick() { try { if (Project.Current == null) return; notification.Title = "提
阅读全文