Top
Menu

Services

Tile API

The following sections present the tile API, from the principles of tiling to the use-cases.

Principle

The tile API allows requests of raster data at any scale, following the WMTS grid standard (see specification here).

This EPSG:4326 raster grid is divided into different levels. Each grid level has a fixed spatial resolution, and is subdivided into tiles of 256 per 256 pixels horizontally and vertically. Any raster product supported by the VtWeb Framework can be requested using this service.

The tiles of each product are organized into a tile-pyramid. This tile-pyramid ensures a fast access to any level of the grid, which allows on-the-fly processing of raster products at any scale (see figure below).

quadtree

Figure 1 – Tile-pyramid organization.

Specifications

The resolution and number of tiles per level is summarized by the following table.

LevelX tile numberY tile numberResolution (°)*Resolution (m)*
0210.70312578271.51696
1420.351562539135.75848
2840.1757812519567.87924
31680.0878906259783.939621
432160.0439453134891.96981
564320.0219726562445.984905
6128640.0109863281222.992453
72561280.005493164611.4962263
85122560.002746582305.7481131
910245120.001373291152.8740566
10204810240.00068664676.43702829
11409620480.00034332338.21851414
12819240960.00017166119.10925707
131638481928.58307E-059.554628536
1432768163844.29153E-054.777314268
1565536327682.14577E-052.388657134
16131072655361.07288E-051.194328567
172621441310725.36442E-060.597164283
185242882621442.68221E-060.298582142
1910485765242881.3411E-060.149291071
20209715210485766.70552E-070.074645535
21419430420971523.35276E-070.037322768
22838860841943041.67638E-070.018661384
Table 1 – WMTS grid levels.

Request

Base URL

The base URL of the tile API is the following.

https://visioterra.org/VtWeb/servlet/TileServlet

Parameters

This service requires the following parameters.

ParameterDescriptionExample of value
MODULEIDName of the module of interest.VtSentinelMSI
DATASETIDName of the dataset of interest.Sentinel2A/MSIL2A
GRANULEIDName of the granule/product of interest.S2A_MSIL2A_20210902T154911_N0301_R054_T18TWL_20210902T215738
STYLEA POF-ML script to be applied to the data.rgb(sta(QT_B04,HT_B04,0.02,0.02),sta(QT_B03,HT_B03,0.02,0.02),sta(QT_B02,HT_B02,0.02,0.02))
XThe horizontal coordinate of the requested tile.2412
YThe vertical coordinate of the requested tile.1119
ZThe level of the requested tile.12
Table 2 – Parameters of the tile service.

Example

In the request section, the following parameters are given as example:

MODULEID = VtSentinelMSI
DATASETID = Sentinel2A/MSIL2A
GRANULEID = S2A_MSIL2A_20210902T154911_N0301_R054_T18TWL_20210902T215738
STYLE = rgb(sta(QT_B04,HT_B04,0.02,0.02),sta(QT_B03,HT_B03,0.02,0.02),sta(QT_B02,HT_B02,0.02,0.02))
X = 2412
Y = 1119
Z = 12

By using the base URL of the tile API and these parameters, the following request can be built:

https://visioterra.org/VtWeb/servlet/TileServlet?MODULEID=VtSentinelMsi&DATASETID=Sentinel2A/MSIL2A&GRANULEID=S2A_MSIL2A_20210902T154911_N0301_R054_T18TWL_20210902T215738&STYLE=rgb(sta(QT_B04,HT_B04,0.02,0.02),sta(QT_B03,HT_B03,0.02,0.02),sta(QT_B02,HT_B02,0.02,0.02))&Z=12&X=2412&Y=1119

This request returns the following Sentinel2A tile:

tile example

Figure 2 – Example of S2A_MSIL2A tile request.