16 #ifndef QGSVECTORTILEUTILS_H
17 #define QGSVECTORTILEUTILS_H
19 #include "qgis_core.h"
50 static QVector<QgsTileXYZ> tilesInRange(
QgsTileRange range,
int zoomLevel );
52 static void sortTilesByDistanceFromCenter( QVector<QgsTileXYZ> &tiles, QPointF center );
62 static QgsFields makeQgisFields(
const QSet<QString> &flds );
72 static double scaleToZoom(
double mapScale,
double z0Scale = 559082264.0287178 );
80 static int scaleToZoomLevel(
double mapScale,
int sourceMinZoom,
int sourceMaxZoom,
double z0Scale = 559082264.0287178 );
86 static bool checkXYZUrlTemplate(
const QString &url );
Container of fields for a vector layer.
Perform transforms between map coordinates and device coordinates.
A rectangle specified with double values.
Defines a matrix of tiles for a single zoom level: it is defined by its size (width *.
Range of tiles in a tile matrix to be rendered.
Stores coordinates of a tile in a tile matrix set.
Represents a vector layer which manages a vector based data sets.
Implements a map layer that is dedicated to rendering of vector tiles.
Random utility functions for working with vector tiles.