QGIS API Documentation
3.14.0-Pi (9f7028fd23)
|
Go to the documentation of this file.
19 #include "qgis_core.h"
36 QgsTileXYZ(
int tc = -1,
int tr = -1,
int tz = -1 )
37 : mColumn( tc ), mRow( tr ), mZoomLevel( tz )
42 int column()
const {
return mColumn; }
44 int row()
const {
return mRow; }
46 int zoomLevel()
const {
return mZoomLevel; }
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;
int zoomLevel() const
Returns zoom level of the tile matrix.
int endRow() const
Returns index of the last row in the range.
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.
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 startRow() const
Returns index of the first row in the range.
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.