Black Friday

November 23 – 27

50% off unlimited runs

Get a subscription

BLACK FRIDAY

−50% off unlimited runs

Run NextGIS Toolbox tools without limits. Maximum capability at half the price!

Get a subscriptionUntil November 27
Toolbox

Count TMS tiles for polygon

Vector
Calculate count of TMS tiles for given a vector polygon. Tiles are calculated exactly within boundary.
Demo
Sign in to upload file
File with polygons or multipolygons. Only first feature of layer is used.
Optional. Max zoom until with tiles are calculated. Default is 19.
Tile layer will be created.

Docs

Calculates the number of TMS tiles for a given vector polygon.

Inputs:

  • Boundary polygon vector file in OGR format or ZIP-archive with single layer. Geometry: polygon or multipolygon. Only the frist feature of the layer is used;

  • Max zoom - optional. Max zoom until with tiles are calculated. Default is 19;

  • Create tile boundaries layer - optional, check if you want a GeoJSON layer with the hightest zoom tile boundaries.

Outputs:

  • Text output listing the number of tiles for each zoom layer and the total tile count.

  • GeoJSON with tile boundaries, if selected.

Example:

_images/count_tiles_input_en.png

Example input

Example output:

0: 1
1: 1
2: 1
3: 1
4: 1
5: 1
6: 1
7: 1
8: 1
9: 2
10: 2
11: 2
12: 2
13: 3
14: 3
15: 5
16: 14
17: 47
18: 148
19: 491
Total: 728
_images/count_tiles_output_en.png

Tile boundaries

Try the tool in action

  1. Click on the Demo button above the tool form. The fields are filled in with demo values.

  2. Click on the Run button.

Vector