Parameters
- uri
- A System.Uri represents the path or url to a dataset or .lyrx or .lpkx file.
Some sample paths to:
A Terrain in a FileGeodatabase | C:\Data\MyFileGDB.gdb\HurricaneTerrain |
//Must be on the QueuedTask.Run() string terrainPath = @"d:\Data\Terrain\filegdb_Containing_A_Terrain.gdb"; var terrainURI = new Uri(terrainPath); var terrainCP = new TerrainLayerCreationParams(terrainURI); terrainCP.Name = "My Terrain Layer"; terrainCP.IsVisible = false; //Create the layer to the terrain var terrainLayer = LayerFactory.Instance.CreateLayer<TerrainLayer>(terrainCP, map);
Target Platforms: Windows 11, Windows 10