ArcGIS Pro 3.8 API Reference Guide
ArcGIS.Desktop.Mapping Namespace / Map Class / GetGroundElevationSurfaceLayer Method
Example

In This Topic
    GetGroundElevationSurfaceLayer Method
    In This Topic
    Gets the ground elevation surface layer from the map.
    Syntax
    public ElevationSurfaceLayer GetGroundElevationSurfaceLayer()
    Public Function GetGroundElevationSurfaceLayer() As ElevationSurfaceLayer

    Return Value

    Example
    Get the elevation surface layers and elevation source layers from a map
    {
      // retrieve the elevation surface layers in the map including the Ground
      var surfaceLayers = map.GetElevationSurfaceLayers();
    
      // retrieve the single ground elevation surface layer in the map
      var groundSurfaceLayer = map.GetGroundElevationSurfaceLayer();
    
      // determine the number of elevation sources in the ground elevation surface layer
      int numberGroundSources = groundSurfaceLayer.Layers.Count;
      // get the first elevation source layer from the ground elevation surface layer
      var groundSourceLayer = groundSurfaceLayer.Layers.FirstOrDefault();
    }
    Requirements

    Target Platforms: Windows 11 Home, Pro, Enterprise (64 bit)

    ArcGIS Pro version: 3.0 or higher.
    See Also