摘要:private async void BatchAddField() { MapView mapView = MapView.Active; if (mapView == null) { return; } FeatureLayer featureLayer = mapView.Map.Layers
阅读全文
摘要: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
阅读全文
摘要:ArcGIS Pro 屏幕画框矩形打印含四周注记
阅读全文
摘要:MapView.Active.Redraw(true); await QueuedTask.Run(() => layoutView.Refresh());
阅读全文
摘要:string str = Enum.GetName(typeof(FontStyle), fontDialog1.Font.Style); MessageBox.Show(str);
阅读全文
摘要:原文地址:https://bbs.csdn.net/topics/392562434 Visual Studio 2019 Enterprise 企业版:BF8Y8-GN2QH-T84XB-QVY3B-RC4DF Visual Studio 2019 Professional 专业版:NYWVH-H
阅读全文
摘要:await QueuedTask.Run(() => { layout.SaveAsFile(filePath); }); IProjectItem pagx = ItemFactory.Instance.Create(@"C:\Temp\gisoracle.pagx") as IProjectIt
阅读全文
摘要:<?xml version="1.0" encoding="UTF-8"?> <ArcGIS defaultAssembly="ArcGIS.Desktop.Layouts.dll" defaultNamespace="ArcGIS.Desktop.Layouts" xmlns="http://sc
阅读全文
摘要:No, annotations cannot be created or edited in ArcGIS Pro. Furthermore, the Convert Annotation to Text function in ArcMap is not currently available i
阅读全文
摘要:CreateProjectSettings projectSettings = new CreateProjectSettings() { //Sets the project's name Name = "New Project", //Path where new project will be
阅读全文
摘要:await Project.Current.SaveAsAsync(@"C:\Data\MyProject1\MyNewProject1.aprx"); bool saveResult = await Project.Current.SaveEditsAsync();
阅读全文
摘要:using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using ArcGIS.Core.CIM; using ArcGI
阅读全文
摘要:protected override Task<bool> OnSketchCompleteAsync(Geometry geometry) { QueuedTask.Run(() => { var deleteFeatures = new EditOperation(); deleteFeatur
阅读全文
摘要:ArcGIS Pro NearestVertex和NearestPoint
阅读全文
摘要:#region AddFolderConnectionProjectItem /// Add a folder connection to a project Item folderToAdd = ItemFactory.Instance.Create(@"C:\gisoracle\Oregon\C
阅读全文
摘要:学习加微信公众号 我的微信公众号 private Task<string> methodAsync() { Thread.Sleep(10000); return "Hello"; //Error: Cannot implicitly convert type 'string' to 'System
阅读全文
摘要:public async Task WriteBlobField(Table table, string blobFieldName, string imageFileName) { await ArcGIS.Desktop.Framework.Threading.Tasks.QueuedTask.
阅读全文
摘要:if (MapView.Active == null) return; Map map = MapView.Active.Map; if (map == null) return; try { string Layerurl = @"E:\ff\G48G082023.gdb\jfb10000注记";
阅读全文
摘要:} public void myStaticThreadMethod(int n) { for (int i = 0; i < n; i++) { this.Invoke((EventHandler)delegate { this.label1.Text ="gisoracle"+ n.ToStri
阅读全文
摘要:ArcGIS Pro-二次开发,屏幕任意范围矩形打印
阅读全文
摘要:// get the current mapview and point var mapView = MapView.Active; if (mapView == null) return; var pictureGraphic = new CIMPictureGraphic(); pictureG
阅读全文
摘要:aprx = arcpy.mp.ArcGISProject("CURRENT")m = aprx.activeMaplyrs = m.listLayers()for lyr in lyrs: if lyr.getSelectionSet(): print("{}: {}".format(lyr.na
阅读全文
摘要:public static Polyline gettwoLine(double x1, double y1, double x2, double y2) { Coordinate2D p1 = new Coordinate2D(x1, y1); Coordinate2D p2 = new Coor
阅读全文
摘要:FrameworkApplication.SetCurrentToolAsync("esri_mapping_selectByRectangleTool"); // or use ICommand.Execute ICommand cmd = FrameworkApplication.GetPlug
阅读全文
摘要:/* Copyright 2018 Esri Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License
阅读全文
摘要:ESRIwiki文档:https://github.com/esri/arcgis-pro-sdk/wiki#requirements ArcGIS Pro帮助文档:http://pro.arcgis.com/zh-cn/pro-app/sdk/ ArcGIS Pro API参考:http://pr
阅读全文
摘要:获得一个的要素的数据库: Geodatabase gdb = featureLayer.GetFeatureClass().GetDatastore() as Geodatabase; 表 var id = row.GetTable().GetID(); 打开数据库 Geodatabase file
阅读全文
摘要:// Add text for title Coordinate2D titleTxt_ll = new Coordinate2D(4.5, 9.5); CIMTextSymbol arial36bold = SymbolFactory.Instance.ConstructTextSymbol(Co
阅读全文
摘要:/* 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
阅读全文
摘要:var oidName = featureClass.GetDefinition().GetObjectIDField();
阅读全文
摘要:var in_table = main_lyr; var out_table = Path.Combine(Project.Current.DefaultGeodatabasePath, GVar.FtrLyr + " Results"); var statistics_fields = [["Sh
阅读全文
摘要:if (MapView.Active.GetSelectedLayers().Count != 1) { ArcGIS.Desktop.Framework.Dialogs.MessageBox.Show("One feature layer must be selected in the Conte
阅读全文
摘要:var featLayer = MapView.Active.GetSelectedLayers().First() as FeatureLayer; QueuedTask.Run(() => { List<FieldDescription> pFieldList = featLayer.GetFi
阅读全文
摘要:public static void ApplySymbol(string symbolChoice) { QueuedTask.Run(() => { // Check for an active 2D mapview, if not, then prompt and exit. if (MapV
阅读全文
摘要:var styles = Project.Current.GetItems<StyleProjectItem>(); foreach (StyleProjectItem pitem in styles) { MessageBox.Show(pitem.Name + ":" + pitem.ID +
阅读全文
摘要:Notification notification = new Notification(); protected override void OnClick() { //ApplySymbol("graduated color"); try { if (Project.Current == nul
阅读全文
摘要:foreach (DockPane Pane in FrameworkApplication.DockPaneManager.DockPanes) { MessageBox.Show(Pane.Caption+":"+Pane.TabText+":"+Pane.Tooltip+":"+Pane.To
阅读全文
摘要:<toolPalette refID="esri_mapping_newMapPalette" /> 新建地图和 <button refID="esri_core_saveProjectButton" /> 保存工程 <button refID="esri_core_saveProjectAsBut
阅读全文
摘要:using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using ArcGIS.Core.CIM; using ArcGI
阅读全文
摘要:https://developers.arcgis.com/labs/pro/build-a-map-layout/ using System; using System.Collections.Generic; using System.Linq; using System.Text; using
阅读全文
摘要:ProConcepts Editing Annotation Jump to bottom uma2526 edited this page on 6 Feb · 8 revisions This concepts document covers special considerations for
阅读全文
摘要:1 string customStyleToAdd = @"F:\2020book\toolforpro\MyProject3\ed-fh.stylx"; 2 //AsyncMethod(customStyleToAdd); 3 4 5 StyleProjectItem style = Projec
阅读全文
摘要:ArcGIS Pro学习加微信公众号 我的微信公众号 //searching and returning number of features where value in 'Class' field in 'city' QueryFilter qf = new QueryFilter() { Wh
阅读全文
摘要:Map map = MapView.Active.Map; IEnumerable<Layer> layers = map.GetLayersAsFlattenedList(); //.Where(l => l.Name.Contains("world")) foreach (Layer lyr i
阅读全文
摘要:// create custom basemap in your current project Map basemap = null; Task task = QueuedTask.Run(() => { basemap =MapFactory.Instance.CreateMap("gisora
阅读全文
摘要:// open an existing map var mapProjectItems = Project.Current.GetItems<MapProjectItem>(); var mapProjectItem = mapProjectItems.FirstOrDefault(mpi => m
阅读全文
摘要:Map map = MapView.Active.Map; QueuedTask.Run(() => { map.SetBasemapLayers(Basemap.Gray); });
阅读全文
摘要:public void UpdateValues() { // This sample is intended for use with a featureclass with a default text field named "Description". // You can replace
阅读全文
摘要:SpatialReference spatialReference = MapView.Active.Map.Layers[0].GetSpatialReference(); MapView.Active.Map.SetSpatialReference(spatialReference);
阅读全文
摘要:print(2/3) 在python3是0.666666666666,python2是0 print(2//3) 在python3是0,python2是0
阅读全文
摘要:using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using ArcGIS.Core.CIM; using ArcGI
阅读全文
摘要:using System; using System.Collections.Generic; using System.Linq; //using System.Windows; //using System.Windows.Forms; using System.Text; using Syst
阅读全文
摘要:/// <summary> /// Open a Raster Dataset given a folder and a dataset name. /// </summary> /// <param name="folder">Full path to the folder containing
阅读全文
摘要:using System;using System.Collections.Generic;using System.Linq;//using System.Windows;//using System.Windows.Forms; using System.Text; using System.T
阅读全文
摘要:using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using ArcGIS.Core.CIM; using ArcGI
阅读全文
摘要:/// <summary> /// Create a circular polygon around a mappoint for with a radius in pixels. /// </summary> /// <param name="mapPoint">Center of the cir
阅读全文
摘要:public static RowCursor Search(this BasicFeatureLayer searchLayer, Geometry searchGeometry, SpatialRelationship spatialRelationship) { RowCursor rowCu
阅读全文
摘要:public static bool IsNullOrEmpty(this Geometry geometry) { if (geometry == null) return true; return geometry.IsEmpty; }
阅读全文
摘要:using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using ArcGIS.Core.CIM; using ArcGI
阅读全文
摘要:using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using ArcGIS.Core.CIM; using ArcGI
阅读全文
摘要:using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using ArcGIS.Core.CIM; using ArcGI
阅读全文
摘要:来自:https://github.com/Esri/arcgis-pro-sdk-community-samples internal void ZoomToFeature(long oid) { if (oid == -1) return; var mapView = MapView.Activ
阅读全文
摘要:// Must be called within QueuedTask.Run9) public static bool FeatureClassExists(string tableName, string FileName) { List<string> pList = new List<str
阅读全文
摘要:ListContentDockpaneViewModel.cs using System; using System; using System.Collections.Generic; using System.Collections.ObjectModel; using System.Linq;
阅读全文
摘要:using System; using System.Collections.Generic; using System.Linq; //using System.Windows; //using System.Windows.Forms; using System; using System.Co
阅读全文
摘要:using System; using System.Collections.Generic; using System.Linq; //using System.Windows; //using System.Windows.Forms; using System; using System.Co
阅读全文
摘要:using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using ArcGIS.Core.CIM; using ArcGI
阅读全文
摘要:using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using ArcGIS.Core.CIM; using ArcGI
阅读全文
摘要:var mv = MapView.Active; var lyrs = mv.Map.Layers; var sb = new StringBuilder(); foreach (var lyr in lyrs) { sb.AppendLine(lyr.Name); } MessageBox.Sho
阅读全文
摘要:using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using ArcGIS.Core.CIM; using ArcGI
阅读全文
摘要:using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using ArcGIS.Core.CIM; using ArcGI
阅读全文
摘要:多边形选择 using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using ArcGIS.Core.CIM; using
阅读全文
摘要:using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows; using System
阅读全文
摘要:ArcGIS Pro二次开发,版本是2.5,Vs2019,.net4.8 using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Task
阅读全文
摘要:import arcpy, os aprx = arcpy.mp.ArcGISProject('current')mv = aprx.activeView # Change the extent of the map viewext = mv.camera.getExtent()ext.XMin =
阅读全文
摘要:rem SDE drop user SDE CASCADE;drop user SDE CASCADE;rem gisoracle 用于存放用户数据 密码为landCREATE USER SDE PROFILE "DEFAULT" IDENTIFIED BY SDE DEFAULT TABLESPA
阅读全文
摘要:本次案例是通过ArcGIS Pro提供的时空立方体展示地理位置相关的事件。利用时空立方体的工具把空间和时间维度展示不同数据在不同的角度展示热点信息。 第一步,加载ViolentCrime2014到ArcGIS Pro中,然后在分析面板中调出工具箱—在时空模式挖掘工具箱下 通过聚合点创建时空立方体 利
阅读全文
摘要:arcgis pro从0到1入门培训视频完成
阅读全文
摘要:ArcGIS Pro学习加微信公众号 我的微信公众号 异常错误导致工具失败,并且未进行异常处理以提供特定错误消息。在某些情况下,此错误可能包含其他消息,这些消息有助于您了解问题。 解决方案 由于工具中缺少异常处理,因此该错误将视为漏洞。请联系 Esri 技术支持 (http://esriurl.co
阅读全文