ArcGISTiledElevationSource Class

  • ArcGISTiledElevationSource
  • class Esri::ArcGISRuntime::ArcGISTiledElevationSource

    A tile based elevation source. More...

    Header: #include <ArcGISTiledElevationSource.h>
    Since: Esri::ArcGISRuntime 100.0
    Inherits: Esri::ArcGISRuntime::ElevationSource and Esri::ArcGISRuntime::RemoteResource

    Public Functions

    ArcGISTiledElevationSource(const QUrl &url, QObject *parent = nullptr)
    ArcGISTiledElevationSource(const QUrl &url, Esri::ArcGISRuntime::Credential *credential, QObject *parent = nullptr)
    ArcGISTiledElevationSource(Esri::ArcGISRuntime::Item *item, QObject *parent = nullptr)
    ArcGISTiledElevationSource(Esri::ArcGISRuntime::TileCache *tileCache, QObject *parent = nullptr)
    virtual ~ArcGISTiledElevationSource() override
    Esri::ArcGISRuntime::Item *item() const
    Esri::ArcGISRuntime::TileCache *tileCache() const

    Reimplemented Public Functions

    virtual Esri::ArcGISRuntime::Credential *credential() const override
    virtual Esri::ArcGISRuntime::RequestConfiguration requestConfiguration() const override
    virtual void setRequestConfiguration(const Esri::ArcGISRuntime::RequestConfiguration &requestConfiguration) override
    virtual QUrl url() const override

    Detailed Description

    An ArcGISTiledElevationSource layer helps visualize maps and layers in 3D by making use of the elevation data.


    Create an ArcGISTiledElevationSource from an online URL:

    // create a new elevation source from Terrain3D REST service
    ArcGISTiledElevationSource* elevationSource = new ArcGISTiledElevationSource(
          QUrl(""), this);
    // add the elevation source to the scene to display elevation

    Member Function Documentation

    [explicit] ArcGISTiledElevationSource::ArcGISTiledElevationSource(const QUrl &url, QObject *parent = nullptr)

    Constructor that accepts a URL (url) and an optional parent.

    The URL can be:

    ArcGISTiledElevationSource::ArcGISTiledElevationSource(const QUrl &url, Esri::ArcGISRuntime::Credential *credential, QObject *parent = nullptr)

    Constructor that accepts a URL (url), a credential, and an optional parent.

    Credential are applied if the provided URL is to a secured service.

    The URL can be:

    [explicit] ArcGISTiledElevationSource::ArcGISTiledElevationSource(Esri::ArcGISRuntime::Item *item, QObject *parent = nullptr)

    Constructor that accepts an Item (item) and an optional parent.

    The Item represents an elevation service on ArcGIS Online or ArcGIS Enterprise portal.

    [explicit, since Esri::ArcGISRuntime 100.1] ArcGISTiledElevationSource::ArcGISTiledElevationSource(Esri::ArcGISRuntime::TileCache *tileCache, QObject *parent = nullptr)

    Constructor that accepts a TileCache (tileCache) and an optional parent.

    • tileCache - Metadata for a local cache of elevation tiles that can be used to create an elevation source.
    • parent - The optional parent QObject.

    An ArcGIS tiled elevation source is added to a Surface and provides elevation data that layers may be draped or offset from. The ArcGIS tiled elevation source uses a tile cache to provide the elevation data. Only tile caches that contain LERC tiles are supported. Use an ExportTileCacheTask to create an offline tile cache from an elevation image service.

    This function was introduced in Esri::ArcGISRuntime 100.1.

    [override virtual] ArcGISTiledElevationSource::~ArcGISTiledElevationSource()


    [override virtual] Esri::ArcGISRuntime::Credential *ArcGISTiledElevationSource::credential() const

    Reimplements: RemoteResource::credential() const.

    Returns the security credential used to access the elevation source service.

    The credential is available if the service is secured.

    Esri::ArcGISRuntime::Item *ArcGISTiledElevationSource::item() const

    Gets the item being used by the elevation source.

    The Item represents an elevation service on ArcGIS Online or ArcGIS Enterprise portal.

    [override virtual, since Esri::ArcGISRuntime 100.1] Esri::ArcGISRuntime::RequestConfiguration ArcGISTiledElevationSource::requestConfiguration() const

    Reimplements: RemoteResource::requestConfiguration() const.

    Returns the RequestConfiguration in use by this object.

    This function was introduced in Esri::ArcGISRuntime 100.1.

    See also setRequestConfiguration().

    [override virtual, since Esri::ArcGISRuntime 100.1] void ArcGISTiledElevationSource::setRequestConfiguration(const Esri::ArcGISRuntime::RequestConfiguration &requestConfiguration)

    Reimplements: RemoteResource::setRequestConfiguration(const Esri::ArcGISRuntime::RequestConfiguration &requestConfiguration).

    Sets configuration parameters used for network requests sent by this object to requestConfiguration.

    This function was introduced in Esri::ArcGISRuntime 100.1.

    See also requestConfiguration().

    [since Esri::ArcGISRuntime 100.1] Esri::ArcGISRuntime::TileCache *ArcGISTiledElevationSource::tileCache() const

    Gets the local tile cache.

    Returns the TileCache, but only if this ArcGISTiledElevationSource was created from a local tile cache.

    The tile cache should be loaded from a .tpk file with LERC (Limited Error Raster Compression) encoded tiles. See the ArcGIS Pro Tile Package documentation (since Esri::ArcGISRuntime 100.1).

    This function was introduced in Esri::ArcGISRuntime 100.1.

    [override virtual] QUrl ArcGISTiledElevationSource::url() const

    Reimplements: RemoteResource::url() const.

    Gets the URL of the elevation source.

    The URL can be:

    Your browser is no longer supported. Please upgrade your browser for the best experience. See our browser deprecation post for more details.