Skip To Content ArcGIS for Developers Sign In Dashboard

WmtsTileMatrixSet Class

(Esri::ArcGISRuntime::WmtsTileMatrixSet)

A WMTS tile matrix set. More...

Header: #include <WmtsTileMatrixSet>
Since: Esri::ArcGISRuntime 100.1

Public Functions

WmtsTileMatrixSet()
WmtsTileMatrixSet(const WmtsTileMatrixSet &other)
WmtsTileMatrixSet(WmtsTileMatrixSet &&other)
~WmtsTileMatrixSet()
QString description() const
Envelope extent() const
QString id() const
bool isEmpty() const
QStringList keywords() const
SpatialReference spatialReference() const
QList<WmtsTileMatrix> tileMatrices() const
QString title() const
QString wellKnownScaleSetId() const
WmtsTileMatrixSet &operator=(const WmtsTileMatrixSet &other)
WmtsTileMatrixSet &operator=(WmtsTileMatrixSet &&other)

Detailed Description

A WMTS tile matrix set.

A tile matrix set is a set of tile matrices and some common parameters of a layer in an Open Geospatial Consortium (OGC) Web Map Tile Service (WMTS).

A WmtsTileMatrixSet (also referred to as a "tiling scheme") may be obtained from the service info of a loaded wmts service.

A WmtsTileMatrixSet is composed of one or more predefined tile matrices for a series of fixed scales. As the scale descreases (see WmtsTileMatrix::scaleDenominator), the number of tiles in the matrix increases - each tile being of a smaller geographic area and of a higher resolution.

A WmtsTileMatrixSet is defined in a specific spatialReference and covers a defined extent.

Example: List the tile matrix sets for a service:

QList<WmtsLayer*> lyrs;
// enumerate the WmtsTileMatrixSet for each WmtsLayerInfo in the WmtsServiceInfo
WmtsServiceInfo serviceInfo = wmtsService->serviceInfo();
QList<WmtsLayerInfo> layerInfos = serviceInfo.layerInfos();
for (const WmtsLayerInfo& layerInfo : layerInfos)
{
  qDebug() << layerInfo.wmtsLayerId();
  QList<WmtsTileMatrixSet> tileMatrixSets = layerInfo.tileMatrixSets();
  for (const WmtsTileMatrixSet& tileMatrixSet : tileMatrixSets)
  {
    qDebug() << tileMatrixSet.title();

    // create the WmtsLayer for this tile matrix set
    WmtsLayer* lyr = new WmtsLayer(serviceUrl, layerInfo.wmtsLayerId(), tileMatrixSet.id(), parent);
    lyrs.append(lyr);

    // List the tile matrices available at each scale
    QList<WmtsTileMatrix> matrices = tileMatrixSet.tileMatrices();
    for (const WmtsTileMatrix& matrix : matrices)
    {
      qDebug() << matrix.id() << matrix.scaleDenominator();
    }
  }
}

See also WmtsServiceInfo, WmtsTileMatrix, WmtsLayerInfo, and WmtsLayer.

Member Function Documentation

WmtsTileMatrixSet::WmtsTileMatrixSet()

Default constructor.

This constructor is provided for convenience only.

WmtsTileMatrixSet::WmtsTileMatrixSet(const WmtsTileMatrixSet &other)

Copy constructor from other WmtsTileMatrixSet.

WmtsTileMatrixSet::WmtsTileMatrixSet(WmtsTileMatrixSet &&other)

Move constructor from other WmtsTileMatrixSet.

WmtsTileMatrixSet::~WmtsTileMatrixSet()

Destructor.

QString WmtsTileMatrixSet::description() const

Returns the description of this tile matrix set.

Envelope WmtsTileMatrixSet::extent() const

Returns the minimum bounding rectangle surrounding this tile matrix set.

QString WmtsTileMatrixSet::id() const

Returns the ID of this tile matrix set.

bool WmtsTileMatrixSet::isEmpty() const

Returns whether the object is empty.

QStringList WmtsTileMatrixSet::keywords() const

Returns the list of zero or more commonly used or formalized words or phrases used to describe this tile matrix set.

SpatialReference WmtsTileMatrixSet::spatialReference() const

Returns the SpatialReference of this tile matrix set.

QList<WmtsTileMatrix> WmtsTileMatrixSet::tileMatrices() const

Returns the list of tile matrices in this tile matrix set.

QString WmtsTileMatrixSet::title() const

Returns the the title of this tile matrix set.

QString WmtsTileMatrixSet::wellKnownScaleSetId() const

Returns the ID of the well known scale set of this tile matrix set.

WmtsTileMatrixSet &WmtsTileMatrixSet::operator=(const WmtsTileMatrixSet &other)

Assignment operator from other WmtsTileMatrixSet.

WmtsTileMatrixSet &WmtsTileMatrixSet::operator=(WmtsTileMatrixSet &&other)

Move operator from other WmtsTileMatrixSet.


Feedback on this topic?