Skip To Content ArcGIS for Developers Sign In Dashboard

ArcGISTiledElevationSource Class

(Esri::ArcGISRuntime::ArcGISTiledElevationSource)

A tile based elevation source. More...

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

Public Functions

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

Reimplemented Public Functions

virtual Credential *credential() const
virtual RequestConfiguration requestConfiguration() const
virtual void setRequestConfiguration(const RequestConfiguration &requestConfiguration)
virtual QUrl url() const

Additional Inherited Members

Detailed Description

A tile based elevation source.

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

Example:

Create an ArcGISTiledElevationSource from an online URL:

ArcGISTiledElevationSource* elevationSource = new ArcGISTiledElevationSource(QUrl("https://elevation3d.arcgis.com/arcgis/rest/services/WorldElevation3D/Terrain3D/ImageServer"), this);
// add the elevation source to the scene to display elevation
m_scene->baseSurface()->elevationSources()->append(elevationSource);

Member Function Documentation

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, 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:

ArcGISTiledElevationSource::ArcGISTiledElevationSource(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.

ArcGISTiledElevationSource::ArcGISTiledElevationSource(TileCache *tileCache, QObject *parent = nullptr)

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

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.

ArcGISTiledElevationSource::~ArcGISTiledElevationSource()

Destructor

[virtual] Credential *ArcGISTiledElevationSource::credential() const

Reimplemented from RemoteResource::credential().

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

The credential is available if the service is secured.

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.

[virtual] RequestConfiguration ArcGISTiledElevationSource::requestConfiguration() const

Reimplemented from RemoteResource::requestConfiguration().

Returns the RequestConfiguration in use by this object.

This function was introduced in Esri::ArcGISRuntime 100.1.

See also setRequestConfiguration().

[virtual] void ArcGISTiledElevationSource::setRequestConfiguration(const RequestConfiguration &requestConfiguration)

Reimplemented from RemoteResource::setRequestConfiguration().

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().

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.

[virtual] QUrl ArcGISTiledElevationSource::url() const

Reimplemented from RemoteResource::url().

Gets the URL of the elevation source.

The URL can be:


Feedback on this topic?