Home > Develop > Documentation > API > Output Formats

Output Formats

Requests provide output as image or in vector, and the Sentinel-2 WMS/WMTS/WCS services can generate these outputs in different 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.

Example requests for image formats:

To generate the output as jpeg, use the following example. 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

 

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 for vector formats:

To generate the output as GeoJSON file, follow the example below. 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=application/json


To generate the output as x-esri-shape, replace the FORMAT with application/x-esri-shape, which will enable you to get the zip containing shape files.