摘要:var mapView = MapView.Active; if (mapView == null) return; //Create custom popup content var popups = new List<PopupContent>(); popups.Add(new PopupCo
阅读全文
摘要:// 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
阅读全文
摘要:public MapTool1() { IsSketchTool = true; SketchType = SketchGeometryType.Line; SketchOutputMode = SketchOutputMode.Map; } protected override Task OnTo
阅读全文
摘要:private Task<bool> ConstructSamplePolygon(FeatureLayer polygonLayer, FeatureLayer lineLayer) { // execute the fine grained API calls on the CIM main t
阅读全文
摘要:public static class RandomExtension { /// <summary> /// Generate a random double number between the min and max values. /// </summary> /// <param name
阅读全文
摘要:private async void ChangeDatasource(FeatureLayer featLayer, string newGDB) { await QueuedTask.Run(() => { // provide a replacement data connection obj
阅读全文
摘要:private async Task<bool> ExecuteAddFieldTool(BasicFeatureLayer theLayer, KeyValuePair<string, string> field, string fieldType, int? fieldLength = null
阅读全文
摘要:private async Task<bool> ExecuteDeleteFieldTool(BasicFeatureLayer theLayer, string fieldName) { try { return await ArcGIS.Desktop.Framework.Threading.
阅读全文
摘要:private async Task<string> GetDataSource(BasicFeatureLayer theLayer) { try { return await ArcGIS.Desktop.Framework.Threading.Tasks.QueuedTask.Run(() =
阅读全文
摘要:#region Business Logic // Create instances of the edit boxes for use in the UpdateValues method public AttributeNameToUseEditBox AttributeNameToUseEdi
阅读全文
摘要:SpatialReference previousSR = densifyPolygon.SpatialReference; //Need to get to WebMercator in order to get the circle the same densifyPolygon = Geome
阅读全文
摘要:protected override void OnClick() { QueuedTask.Run(() => { Table table = MapView.Active.Map.GetLayersAsFlattenedList().OfType<FeatureLayer>().FirstOrD
阅读全文
摘要:ublic async Task<List<string>> LookupMukey() { var mukeys = new List<string>(); var MV = MapView.Active; int mukeyCount = 0; var SelectionLayer = MV.M
阅读全文
摘要:创建图层从lyrx文件 Create layer from a lyrx file var lyrDocFromLyrxFile = new LayerDocument(@"d:\data\cities.lyrx"); var cimLyrDoc = lyrDocFromLyrxFile.GetCI
阅读全文
摘要:public void GetExteriorRings(Polygon inputPolygon) { if (inputPolygon == null || inputPolygon.IsEmpty) return; // polygon part count int partCount = i
阅读全文
摘要:SpatialQueryFilter filter = new SpatialQueryFilter(); filter.FilterGeometry = geometry; filter.SpatialRelationship = SpatialRelationship.Intersects; v
阅读全文
摘要:internal class Module1 : Module { private static Module1 _this = null; //Capture the checkbox here public CheckBox CheckBox { get; set; } = null; //Eg
阅读全文
摘要:// Works : protected async Task MemDB_Geoprocessing() { string gdbPath = "memory"; //string gdbPath = CoreModule.CurrentProject.DefaultGeodatabasePath
阅读全文
摘要:var allFeatLayers = map.GetLayersAsFlattenedList().OfType<FeatureLayer>().ToList(); foreach (var layer in allFeatLayers) { // Do something with layer
阅读全文
摘要:var progDlg = new ProgressDialog("Running Table to Table", "Cancel", 100, true); progDlg.Show(); var progsrc=new CancelableProgressorSource(progDlg);
阅读全文
摘要:layer.SetName("New layer name gisoracle");
阅读全文
摘要: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
阅读全文
摘要:总之,64位系统下.NET访问Access 数据库,最彻底的方法是安装64位的Access数据访问驱动安装程序 并使用新的Access提供程序 Microsoft.ACE.OLEDB.12.0 下载64位:64bit(下载)地址:https://download.microsoft.com/down
阅读全文
摘要:unit utGISPub; interface uses esriControls_TLB, esriCarto_TLB, esriDisplay_TLB, esriGeometry_TLB, esriGeoDatabase_TLB, esriSystem_TLB, esriDataSources
阅读全文
摘要://判断IFeatureClass图形是否含有Z值信息 IFeatureClass featureClass = this.pLayer.FeatureClass; string shapeFieldName = featureClass.ShapeFieldName; if (featureCla
阅读全文
摘要:在ArcEngine中创建带高程Z值的点和线图层 管线和其附属物的坐标数据都是带有Z值的 而且有些情况下,一个管段的两个端点的x,y值一模一样(垂直的管段) 这样的线,在直接生成shape图层的时候,就会产生问题,特别是 使用ArcSDE的C API直接创建到表中的时候你会发现,这样的数据是生成不了
阅读全文
摘要:// // <auto-generated>// This code was generated by a tool.//// Changes to this file may cause incorrect behavior and will be lost if// the code is re
阅读全文