摘要:// 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");
阅读全文