Home > Develop > Documentation > API > Output formats

Output formats

Output image formats

For the requests that provide image output, Sentinel-2 WMS/WMTS/WCS services can generate these output formats:

  • image/png - lossless image format for 1 (grayscale) or 3 (RGB) components, with optional alpha channel (when TRANSPARENT=1)
  • image/jpeg - lossy image format for 1 (grayscale) or 3 (RGB) components, without alpha channel. The quality can be controlled via the "QUALITY" URL parameter.
  • image/tiff - lossless image format for any number of the components, with optional alpha channel (when TRANSPARENT=1). The precision can be selected:
    • image/tiff;depth=8 - force 8-bit output
    • image/tiff;depth=16 - force 16-bit output
    • image/tiff;depth=32f - force 32-bit float output

Check this article to find out more on how the values are reflected in the output.

Output vector formats

 

For the requests that provide vector output, Sentinel-2 WMS/WMTS/WCS services can generate these output formats:

  • application/x-esri-shape - zip containing shape files
  • application/json - GeoJSON file

Both formats are returning polygons in vector format only in case when the image does not consists of more than 10 different values. Therefore, this formats only work with custom script layers.

Example requests

Please replace <INSTANCE_ID> with your own:
http://services.sentinel-hub.com/ogc/wms/<INSTANCE_ID>?SERVICE=WMS&REQUEST=GetMap&SHOWLOGO=false&VERSION=1.3.0&LAYERS=NDVI&MAXCC=20&WIDTH=640&HEIGHT=640&CRS=EPSG:4326&BBOX=46.697956,16.223885,46.699840,16.2276628&FORMAT=image/jpeg


http://services.sentinel-hub.com/ogc/wms/<INSTANCE_ID>?SERVICE=WMS&REQUEST=GetMap&SHOWLOGO=false&VERSION=1.3.0&LAYERS=NDVI&MAXCC=20&WIDTH=640&HEIGHT=640&CRS=EPSG:4326&BBOX=46.697956,16.223885,46.699840,16.2276628&FORMAT=application/json


application/x-esri-shape is also possible output