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 |
{
// Note: Needs QueuedTask to run
{
string terrainPath = @"d:\Data\Terrain\filegdb_Containing_A_Terrain.gdb\FeatureDataset\Terrain_name";
var terrainURI = new Uri(terrainPath);
var terrainCP = new TerrainLayerCreationParams(terrainURI);
terrainCP.Name = "My Terrain Layer";
terrainCP.IsVisible = false;
// Note: Needs QueuedTask to run
{
//Create the layer to the terrain
terrainLayer = LayerFactory.Instance.CreateLayer<TerrainLayer>(terrainCP, map);
}
}
}
Target Platforms: Windows 11 Home, Pro, Enterprise (64 bit)