Hi Joaquim,

FYI your curl command will work if you update the URL to what is in the HTML file message (looks like it was moved to HTTPS instead of HTTP).

I understand it's not what you want in the end, just thought I'd point it out in case it's useful for troubleshooting.

Quoting [email protected]:

Tanks again Momtchil. Your example works indeed … but not with my layer

curl http://svs.gsfc.nasa.gov/cgi-bin/wms?SERVICE=WMS&LAYERS=3140_21200&CRS=CRS:84&FORMAT=image/png&TRANSPARENT=FALSE&HEIGHT=512&BGCOLOR=&REQUEST=GetMap&WIDTH=2048&BBOX=-50.2,69.11,-49.6,69.26> &STYLES=&VERSION=1.3.0 --output raw.png

the output is an html file saying

<p>The document has moved <a href=https://svs.gsfc.nasa.gov/cgi-bin/wms?SERVICE=WMS&amp;LAYERS=3140_21200&amp;CRS=CRS:84&amp;FORMAT=image/png&amp;TRANSPARENT=FALSE&amp;HEIGHT=512&amp;BGCOLOR=&amp;REQUEST=GetMap&amp;WIDTH=2048&amp;BBOX=-50.2,69.11,-49.6,69.26&amp;STYLES=&amp;VERSION=1.3.0>here</a>.</p>
</body></html>

Anyway, the curl solution is of little interest for me because I don’t know how to programmatically select it instead of using gdal_translate."



_______________________________________________
gdal-dev mailing list
[email protected]
https://lists.osgeo.org/mailman/listinfo/gdal-dev

Reply via email to