摘要:import arcpy arcpy.env.workspace = "C:/data/district.gdb" arcpy.management.AddFields( 'school', [['school_name', 'TEXT', 'Name', 255, 'Hello world', '
阅读全文
摘要: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 = "提
阅读全文
摘要:public void SelectAllFeatureLayersInTOC() { //Get the active map view. var mapView = MapView.Active; if (mapView == null) return; //Zoom to the select
阅读全文
摘要:public void ShowCustomPopup() { //Get the active map view. var mapView = MapView.Active; if (mapView == null) return; //Create custom popup content va
阅读全文
摘要:FrameworkApplication.Close(); FrameworkApplication.Panes.CloseAllPanes();
阅读全文
摘要:public MapTool1() { IsSketchTool = true; SketchType = SketchGeometryType.Line; SketchOutputMode = SketchOutputMode.Map; } protected override Task OnTo
阅读全文
摘要:ArcGIS Pro固定纸张限定比例尺自动调整纵横打印
阅读全文
摘要:var insTbl; await QueuedTask.Run(()=> { using (Geodatabase geodatabase = new Geodatabase(new FileGeodatabaseConnectionPath(new Uri(gPath)))) { using (
阅读全文
摘要:try{ var mapView = MapView.Active; if (mapView != null) { var map = mapView.Map; if (map != null) { foreach (StandaloneTable table in map.StandaloneTa
阅读全文
摘要:protected override async void OnClick(){ using (var progress = new ProgressDialog("Showing Progress", "Canceled", 100, false)) { var status = new Canc
阅读全文
摘要:QueuedTask.Run( () => { var layout = Project.Current.GetItems<LayoutProjectItem>().FirstOrDefault().GetLayout(); var element = layout.Elements.OfType<
阅读全文
摘要:Project.Current.GetItems<LayoutProjectItem>().FirstOrDefault()?.GetLayout(); List<Element> elements = new List<Element>(); for (int i = 0; i < 100; i+
阅读全文
摘要:cGIS Pro differs markedly from existing ArcGIS for Desktop applications in that it is built with a multithreaded architecture designed to leverage mod
阅读全文
摘要:System.Uri uri = new Uri("e:\\ESRI_GDB\\Southampton.gdb"); QueuedTask.Run(() => { FileGeodatabaseConnectionPath path = new FileGeodatabaseConnectionPa
阅读全文
摘要: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
阅读全文
摘要:LayoutProjectItem layoutItem = Project.Current.GetItems<LayoutProjectItem>().FirstOrDefault(item => item.Name.Equals("Standard")); Layout layout = lay
阅读全文
摘要:1.如何执行ExecuteSQL 2.获得一个文件夹的所有gdb 3.删除公里网 4.设置切割打印 5.获得arcgis pro的版本 6.获得所有按钮的ID 7.怎么创建注记要素
阅读全文
摘要:IWorkspaceFactory pwf = new ShapefileWorkspaceFactory(); //关闭资源锁定 IWorkspaceFactoryLockControl ipWsFactoryLock = IWorkspaceFactoryLockControl)pwf; if
阅读全文
摘要:private FeatureLayer GetFeatureLayerByName(Map map, string layerName) { var featureLayers = map.GetLayersAsFlattenedList().OfType<FeatureLayer>(); for
阅读全文
摘要: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
阅读全文
摘要:/Subscribe to eventArcGIS.Desktop.Framework.Events.ActivePaneChangedEvent.Subscribe(OnActivePaneChanged);private void OnActivePaneChanged(PaneEventArg
阅读全文
摘要:var rasterLayer = MapView.Active.Map.GetLayersAsFlattenedList().OfType<RasterLayer>().FirstOrDefault(); QueuedTask.Run(async () => { using (Geodatabas
阅读全文
摘要:来自: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"
阅读全文
摘要: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
阅读全文
摘要:MapSeriesExportOptions MSExport_custom = new MapSeriesExportOptions() { ExportPages = ExportPages.Custom, CustomPages = "1-3, 5", ExportFileOptions =
阅读全文