WmtsTileMatrixSet Class

  • WmtsTileMatrixSet
  • class Esri::ArcGISRuntime::WmtsTileMatrixSet

    A WMTS tile matrix set. More...

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

    This class was introduced in Esri::ArcGISRuntime 100.1.

    Public Functions

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

    Detailed Description

    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(Esri::ArcGISRuntime::WmtsTileMatrixSet &&other)

    Move constructor from other WmtsTileMatrixSet.

    WmtsTileMatrixSet::WmtsTileMatrixSet(const Esri::ArcGISRuntime::WmtsTileMatrixSet &other)

    Copy constructor from other WmtsTileMatrixSet.

    WmtsTileMatrixSet::WmtsTileMatrixSet()

    Default constructor.

    This constructor is provided for convenience only.

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

    Move operator from other WmtsTileMatrixSet.

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

    Assignment operator from other WmtsTileMatrixSet.

    WmtsTileMatrixSet::~WmtsTileMatrixSet()

    Destructor.

    QString WmtsTileMatrixSet::description() const

    Returns the description of this tile matrix set.

    Esri::ArcGISRuntime::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.

    Esri::ArcGISRuntime::SpatialReference WmtsTileMatrixSet::spatialReference() const

    Returns the SpatialReference of this tile matrix set.

    QList<Esri::ArcGISRuntime::WmtsTileMatrix> WmtsTileMatrixSet::tileMatrices() const

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

    QString WmtsTileMatrixSet::title() const

    Returns 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.

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