Skip to main content

Hi,

I am trying to download the Pleiades data using the WmsRequest() function from sentinelhub Python library.

I followed the instructions at point 17 of the documentation: Custom (BYOC) data adapting it to use my Pleiades collection:


collection_id = <'my_id'>
layer = '2_TRUE-COLOR-PANSHARPENED'
config = SHConfig()
config.instance_id = collection_id

byoc_request = WmsRequest(
data_source=DataSource(collection_id),
layer=layer,
bbox=rome_coords_wgs84,
width=512,
config=config
)


but I got the following error:


DownloadFailedException: Failed to download from:
https://services.sentinel-hub.com/ogc/wfs/<my_id>?SERVICE=wfs&amp;WARNINGS=False&amp;REQUEST=GetFeature&amp;TYPENAMES=DSS10-<my_id>&amp;BBOX=11.573303%2C40.897678%2C13.573303%2C42.897678&amp;OUTPUTFORMAT=application%2Fjson&amp;SRSNAME=EPSG%3A4326&amp;TIME=1985-01-01T00%3A00%3A00%2F2020-05-19T23%3A59%3A59&amp;MAXCC=100.0&amp;MAXFEATURES=1&amp;FEATURE_OFFSET=0
with HTTPError:
400 Client Error: Bad Request for url: https://services.sentinel-hub.com/ogc/wfs/<my_id>?SERVICE=wfs&amp;WARNINGS=False&amp;REQUEST=GetFeature&amp;TYPENAMES=DSS10-<my_id>&amp;BBOX=11.573303%2C40.897678%2C13.573303%2C42.897678&amp;OUTPUTFORMAT=application%2Fjson&amp;SRSNAME=EPSG%3A4326&amp;TIME=1985-01-01T00%3A00%3A00%2F2020-05-19T23%3A59%3A59&amp;MAXCC=100.0&amp;MAXFEATURES=1&amp;FEATURE_OFFSET=0
Server response: "TYPENAME=DSS10-<my_id> not found!"


Clearly <my_id> is a placeholder for the Collection id that I have copyed from the dashboard.

Can somebody give me a hint on how to solve the problem?

Thank you.

First <my_id> should be your instance id (e.g. da9a30c7-MASKED), the second <my_id> your collection id (e.g. 3c4daecf-MASKED)


I hope this helps?


Problem solved, thank you very much.

I didn’t notice that there where two different IDs.


Reply