/************************************************************************ * This file has been generated automatically from * * * * src/core/qgstiles.h * * * * Do not edit manually ! Edit header and run scripts/sipify.pl again * ************************************************************************/ class QgsTileXYZ { %Docstring Stores coordinates of a tile in a tile matrix set. Tile matrix is identified by the zoomLevel(), and the position within tile matrix is given by column() and row(). .. versionadded:: 3.14 %End %TypeHeaderCode #include "qgstiles.h" %End public: QgsTileXYZ( int tc = -1, int tr = -1, int tz = -1 ); %Docstring Constructs a tile identifier from given column, row and zoom level indices %End int column() const; %Docstring Returns tile's column index (X) %End int row() const; %Docstring Returns tile's row index (Y) %End int zoomLevel() const; %Docstring Returns tile's zoom level (Z) %End }; class QgsTileRange { %Docstring Range of tiles in a tile matrix to be rendered. The selection is rectangular, given by start/end row and column numbers. .. versionadded:: 3.14 %End %TypeHeaderCode #include "qgstiles.h" %End public: QgsTileRange( int c1 = -1, int c2 = -1, int r1 = -1, int r2 = -1 ); %Docstring Constructs a range of tiles from given span of columns and rows %End bool isValid() const; %Docstring Returns whether the range is valid (when all row/column numbers are not negative) %End int startColumn() const; int endColumn() const; int startRow() const; int endRow() const; }; struct QgsTileMatrix { public: static QgsTileMatrix fromWebMercator( int mZoomLevel ); %Docstring Returns a tile matrix for the usual web mercator %End QgsRectangle tileExtent( QgsTileXYZ id ) const; %Docstring Returns extent of the given tile in this matrix %End QgsPointXY tileCenter( QgsTileXYZ id ) const; %Docstring Returns center of the given tile in this matrix %End QgsTileRange tileRangeFromExtent( const QgsRectangle &mExtent ); %Docstring Returns tile range that fully covers the given extent %End QPointF mapToTileCoordinates( const QgsPointXY &mapPoint ) const; %Docstring Returns row/column coordinates (floating point number) from the given point in map coordinates %End }; /************************************************************************ * This file has been generated automatically from * * * * src/core/qgstiles.h * * * * Do not edit manually ! Edit header and run scripts/sipify.pl again * ************************************************************************/