19 #include "qgis_core.h"
38 : mColumn( tc ), mRow( tr ), mZoomLevel( tz )
43 int column()
const {
return mColumn; }
45 int row()
const {
return mRow; }
50 QString
toString()
const {
return QStringLiteral(
"X=%1 Y=%2 Z=%3" ).arg( mColumn ).arg( mRow ).arg( mZoomLevel ); }
71 : mStartColumn( c1 ), mEndColumn( c2 ), mStartRow( r1 ), mEndRow( r2 ) {}
74 bool isValid()
const {
return mStartColumn >= 0 && mEndColumn >= 0 && mStartRow >= 0 && mEndRow >= 0; }
83 int endRow()
const {
return mEndRow; }
112 const QgsPointXY &z0TopLeftPoint,
double z0Dimension,
113 int z0MatrixWidth = 1,
int z0MatrixHeight = 1 );
134 double scale()
const {
return mScaleDenom; }
146 QPointF mapToTileCoordinates(
const QgsPointXY &mapPoint )
const;
This class represents a coordinate reference system (CRS).
A class to represent a 2D point.
A rectangle specified with double values.
Defines a matrix of tiles for a single zoom level: it is defined by its size (width *.
QgsRectangle extent() const
Returns extent of the tile matrix.
int matrixWidth() const
Returns number of columns of the tile matrix.
QgsCoordinateReferenceSystem crs() const
Returns the authority identifier for the CRS of the tile matrix.
bool isRootTileMatrix() const
Returns the root status of the tile matrix (zoom level == 0)
double scale() const
Returns scale denominator of the tile matrix.
int matrixHeight() const
Returns number of rows of the tile matrix.
int zoomLevel() const
Returns zoom level of the tile matrix.
Range of tiles in a tile matrix to be rendered.
int endColumn() const
Returns index of the last column in the range.
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.
int endRow() const
Returns index of the last row in the range.
int startRow() const
Returns index of the first row in the range.
int startColumn() const
Returns index of the first column in the range.
bool isValid() const
Returns whether the range is valid (when all row/column numbers are not negative)
Stores coordinates of a tile in a tile matrix set.
QString toString() const
Returns tile coordinates in a formatted string.
int zoomLevel() const
Returns tile's zoom level (Z)
QgsTileXYZ(int tc=-1, int tr=-1, int tz=-1)
Constructs a tile identifier from given column, row and zoom level indices.
int column() const
Returns tile's column index (X)
int row() const
Returns tile's row index (Y)
const QgsCoordinateReferenceSystem & crs