Skip to main content

Hi all.

I’m using WCS api to grab some images from sentinel hub. For the request presented below, I’m getting the ‘invalid request’ error message.

Our request:
https://services.sentinel-hub.com/ogc/wcs/{our_identifier}?service=WCS&version=1.1.2&request=GetCoverage&resX=20m&resY=20m&crs=CRS%3A84&maxcc=100&bbox=-52.53083833%2C-11.860425139758%2C-51.9418712619422%2C-11.5621764149744&time=2022-01-18&coverage=TRUE-COLOR

The error message:

<ServiceExceptionReport xmlns="http://www.opengis.net/ogc" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="1.2.0" xsi:schemaLocation="http://www.opengis.net/ogc http://schemas.opengis.net/wcs/1.0.0/OGC-exception.xsd">
<ServiceException>
<! CDATA; Invalid request ]]>
</ServiceException>
</ServiceExceptionReport>

I don’t know if it helps, but when I ask for WFS, this request

https://services.sentinel-hub.com/ogc/wfs/db030b77-7cc5-4777-99ea-93eb313108fe?service=WFS&request=GetFeature&outputformat=application%2Fjson&srsname=CRS%3A84&maxcc=100&typenames=DSS1&bbox=-52.53083833%2C-11.860425139758%2C-51.9418712619422%2C-11.5621764149744&time=2022-01-18%2F2022-01-18%2FP1D

returns two scenes covering the desired area.

If need more information, please ask me.

Regards.

Hi,

The output width of your request is approx. 3200, which exceeds the upper limit of the service. The output height and width must be less than or equal to 2500.

You can either decrease the resolution or request for a smaller area.

Try this:

https://services.sentinel-hub.com/ogc/wcs/{our_identifier}?service=WCS&version=1.1.2&request=GetCoverage&resX=30m&resY=30m&crs=CRS%3A84&maxcc=100&bbox=-52.53083833%2C-11.860425139758%2C-51.9418712619422%2C-11.5621764149744&time=2022-01-18&coverage=TRUE-COLOR

Reply