QGIS API Documentation
3.16.0-Hannover (43b64b13f3)
|
Go to the documentation of this file.
19 #include "qgis_core.h"
37 : mColumn( tc ), mRow( tr ), mZoomLevel( tz )
42 int column()
const {
return mColumn; }
44 int row()
const {
return mRow; }
49 QString
toString()
const {
return QStringLiteral(
"X=%1 Y=%2 Z=%3" ).arg( mColumn ).arg( mRow ).arg( mZoomLevel ); }
70 : mStartColumn( c1 ), mEndColumn( c2 ), mStartRow( r1 ), mEndRow( r2 ) {}
73 bool isValid()
const {
return mStartColumn >= 0 && mEndColumn >= 0 && mStartRow >= 0 && mEndRow >= 0; }
82 int endRow()
const {
return mEndRow; }
122 double scale()
const {
return mScaleDenom; }
134 QPointF mapToTileCoordinates(
const QgsPointXY &mapPoint )
const;
Stores coordinates of a tile in a tile matrix set.
Range of tiles in a tile matrix to be rendered.
QgsTileXYZ(int tc=-1, int tr=-1, int tz=-1)
Constructs a tile identifier from given column, row and zoom level indices.
A rectangle specified with double values.
int zoomLevel() const
Returns zoom level of the tile matrix.
int endRow() const
Returns index of the last row in the range.
Defines a matrix of tiles for a single zoom level: it is defined by its size (width * height) and map...
int matrixHeight() const
Returns number of rows of the tile matrix.
QgsRectangle extent() const
Returns extent of the tile matrix.
QgsTileRange(int c1=-1, int c2=-1, int r1=-1, int r2=-1)
Constructs a range of tiles from given span of columns and rows.
QString toString() const
Returns tile coordinates in a formatted string.
bool isValid() const
Returns whether the range is valid (when all row/column numbers are not negative)
int endColumn() const
Returns index of the last column in the range.
int zoomLevel() const
Returns tile's zoom level (Z)
A class to represent a 2D point.
int startRow() const
Returns index of the first row in the range.
int row() const
Returns tile's row index (Y)
int matrixWidth() const
Returns number of columns of the tile matrix.
double scale() const
Returns scale denominator of the tile matrix.
int startColumn() const
Returns index of the first column in the range.
int column() const
Returns tile's column index (X)