public class TopologyLayerCreationParams : LayerCreationParams
Public Class TopologyLayerCreationParams Inherits LayerCreationParams
public class TopologyLayerCreationParams : LayerCreationParams
Public Class TopologyLayerCreationParams Inherits LayerCreationParams
var path = @"D:\Data\CommunitySamplesData\Topology\GrandTeton.gdb\BackCountry\Backcountry_Topology"; var lcp = new TopologyLayerCreationParams(new Uri(path)); lcp.Name = "GrandTeton_Backcountry"; lcp.AddAssociatedLayers = true; var topoLayer = LayerFactory.Instance.CreateLayer<ArcGIS.Desktop.Mapping.TopologyLayer>(lcp, MapView.Active.Map);
//Note: Call within QueuedTask.Run() //Get the Topology of another Topology layer var existingTopology = MapView.Active.Map.GetLayersAsFlattenedList().OfType<TopologyLayer>().FirstOrDefault(); if (existingTopology != null) { var topology = existingTopology.GetTopology(); //Configure the settings for a new Catalog layer using the CatalogDataset of an existing layer var topologyLyrParams = new TopologyLayerCreationParams(topology); topologyLyrParams.Name = "NewTopologyLayerFromAnotherTopologyLayer"; topologyLyrParams.AddAssociatedLayers = true; LayerFactory.Instance.CreateLayer<TopologyLayer>(topologyLyrParams, MapView.Active.Map); }
System.Object
ArcGIS.Desktop.Mapping.BaseCreationParams
ArcGIS.Desktop.Mapping.MapMemberCreationParams
ArcGIS.Desktop.Mapping.LayerCreationParams
ArcGIS.Desktop.Mapping.TopologyLayerCreationParams
Target Platforms: Windows 11, Windows 10