TileInfo Class

  • TileInfo
  • class Esri::ArcGISRuntime::TileInfo

    Represents the tiling scheme used by a cached map service. More...

    Header: #include <TileInfo.h>
    Since: Esri::ArcGISRuntime 100.0

    Public Functions

    TileInfo()
    TileInfo(int dpi, Esri::ArcGISRuntime::TileImageFormat format, const QList<Esri::ArcGISRuntime::LevelOfDetail> &levelsOfDetail, const Esri::ArcGISRuntime::SpatialReference &spatialReference, const Esri::ArcGISRuntime::Point &origin, int tileHeight, int tileWidth)
    TileInfo(const Esri::ArcGISRuntime::TileInfo &other)
    TileInfo(Esri::ArcGISRuntime::TileInfo &&other)
    ~TileInfo()
    float compressionQuality() const
    int dpi() const
    Esri::ArcGISRuntime::TileImageFormat format() const
    bool isEmpty() const
    QList<Esri::ArcGISRuntime::LevelOfDetail> levelsOfDetail() const
    Esri::ArcGISRuntime::Point origin() const
    Esri::ArcGISRuntime::SpatialReference spatialReference() const
    int tileHeight() const
    int tileWidth() const
    Esri::ArcGISRuntime::TileInfo &operator=(const Esri::ArcGISRuntime::TileInfo &other)
    Esri::ArcGISRuntime::TileInfo &operator=(Esri::ArcGISRuntime::TileInfo &&other)

    Detailed Description

    For example, ArcGIS Server cached map service, Bing Maps, etc. The tiling scheme contains information about how a map is broken up into tiles of images and how a client can use these tiles to display a map.

    Member Function Documentation

    TileInfo::TileInfo()

    Default constructor.

    TileInfo::TileInfo(int dpi, Esri::ArcGISRuntime::TileImageFormat format, const QList<Esri::ArcGISRuntime::LevelOfDetail> &levelsOfDetail, const Esri::ArcGISRuntime::SpatialReference &spatialReference, const Esri::ArcGISRuntime::Point &origin, int tileHeight, int tileWidth)

    Create tile information.

    • dpi - The DPI of each tile.
    • format - The format of each tile.
    • levelsOfDetail - A QList of LevelOfDetail. Contents of the QList are copied.
    • origin - The origin of the tiles.
    • spatialReference - The spatial reference of the tiles.
    • tileHeight - Height of a tile, in pixels.
    • tileWidth - Width of a tile, in pixels.

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

    Copy constructor from other TileInfo.

    TileInfo::TileInfo(Esri::ArcGISRuntime::TileInfo &&other)

    Move constructor from other TileInfo.

    TileInfo::~TileInfo()

    Destructor.

    float TileInfo::compressionQuality() const

    Returns the compression quality of the tile images.

    The compression quality controls how much loss the image will be subjected to by the compression algorithm. The values of the pixels of an image compressed with a higher compression quality will be closer to those of the original image. The valid range of compression quality values is from 0 to 100.

    If an error occurs or if the compression quality is not defined, NaN is returned.

    int TileInfo::dpi() const

    Returns the DPI (dots per inch) of the tiles.

    Esri::ArcGISRuntime::TileImageFormat TileInfo::format() const

    Returns the format of the images.

    If there's an error the return value is TileImageFormat::Unknown.

    bool TileInfo::isEmpty() const

    Gets whether the object is empty.

    Returns true if empty.

    QList<Esri::ArcGISRuntime::LevelOfDetail> TileInfo::levelsOfDetail() const

    Returns a list of LevelOfDetail instances. Each one has properties for its particular resolution and scale.

    A QList with LevelOfDetail.

    Esri::ArcGISRuntime::Point TileInfo::origin() const

    Returns the origin of the tile info within the spatial reference.

    The origin is the upper left corner of the tiling scheme grid.

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

    Returns the spatial reference for the tile info.

    int TileInfo::tileHeight() const

    Returns the height of each tile in pixels.

    int TileInfo::tileWidth() const

    Returns the width of each tile in pixels.

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

    Assignment operator from other TileInfo.

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

    Move operator from other TileInfo.

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