ArcGISTiledElevationSource Class
A tile based elevation source. More...
Header: | #include <ArcGISTiledElevationSource> |
Since: | Esri::ArcGISRuntime 100.0 |
Inherits: | Esri::ArcGISRuntime::ElevationSource and Esri::ArcGISRuntime::RemoteResource |
This class was introduced in Esri::ArcGISRuntime 100.0.
Public Functions
ArcGISTiledElevationSource(Esri::ArcGISRuntime::TileCache *tileCache, QObject *parent = nullptr) | |
ArcGISTiledElevationSource(Esri::ArcGISRuntime::Item *item, QObject *parent = nullptr) | |
ArcGISTiledElevationSource(const QUrl &url, Esri::ArcGISRuntime::Credential *credential, QObject *parent = nullptr) | |
ArcGISTiledElevationSource(const QUrl &url, 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.
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(Esri::ArcGISRuntime::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(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.
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:
- an online service that has the elevation source data.
- the path to a local tile cache such as a
.tpk
file with LERC (Limited Error Raster Compression) encoded tiles. See the ArcGIS Pro Tile Package documentation (since Esri::ArcGISRuntime 100.1).
ArcGISTiledElevationSource::ArcGISTiledElevationSource(const QUrl &url, QObject *parent = nullptr)
Constructor that accepts a URL (url) and an optional parent.
The URL can be:
- an online service that has the elevation source data.
- the path to a local tile cache such as a
.tpk
file with LERC (Limited Error Raster Compression) encoded tiles. See the ArcGIS Pro Tile Package documentation (since Esri::ArcGISRuntime 100.1).
[override virtual]
ArcGISTiledElevationSource::~ArcGISTiledElevationSource()
Destructor
[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]
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]
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().
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:
- an online service that has the elevation source data.
- the path to a local tile cache such as a
.tpk
file with LERC (Limited Error Raster Compression) encoded tiles. See the ArcGIS Pro Tile Package documentation (since Esri::ArcGISRuntime 100.1).