Skip to main content

I am trying to get en PNG image using the WMS Service



https://services-uswest2.sentinel-hub.com/ogc/wms/{INSTANCE_ID}?SERVICE=WMS&REQUEST=GetMap&BBOX=-64.4310568374647,-34.64561313631068,-64.37560818116789,-34.60052426477408&LAYERS=TRUE-COLOR&MAXCC=100&RESX=30m&RESY=30m&FORMAT=image/png&TIME=2007-01-01/2007-12-31&CRS=EPSG:4326



I am using wget as follows


wget "https://services-uswest2.sentinel-hub.com/ogc/wms/{INSTANCE_ID}?SERVICE=WMS&REQUEST=GetMap&BBOX=-64.4310568374647,-34.64561313631068,-64.37560818116789,-34.60052426477408&LAYERS=TRUE-COLOR&MAXCC=100&RESX=30m&RESY=30m&FORMAT=image/png&TIME=2007-01-01/2007-12-31&CRS=EPSG:4326" -O test2007.png


It prints:
HTTP request sent, awaiting response... 200 OK

but the download is empty. The file is only 138 bytes.


The instance and the layer are configured to use Landsat 4-5 TM - L2


Any help would be appreciated!

Hi @Uriel,


could the problem be the order of coordinates?


When requesting CRS=EPSG:4326 in OGC requests, coordinates must be latitude, longitude. Try reversing the order of coordinates or simply request CRS=CRS:84, e.g.:


https://services-uswest2.sentinel-hub.com/ogc/wms/{INSTANCE_ID}?SERVICE=WMS&REQUEST=GetMap&BBOX=-64.4310568374647,-34.64561313631068,-64.37560818116789,-34.60052426477408&LAYERS=TRUE-COLOR&MAXCC=100&RESX=30m&RESY=30m&FORMAT=image/png&TIME=2007-01-01/2007-12-31&CRS=CRS:84


Reply