riesgos/dlr-riesgos-frontend

wms tiff downloads are not georeferenced.

Closed this issue · 7 comments

What do you want to do with the downloaded image?
The format you specified is png here are output formats you can use with geoserver.

Them maybe try the format=image/geotiff.

Maybe one thing that goes a little bit inside of this topic: As long as we have a geoserver with WCS support, we should not download the tiffs via WMS, but instead using WCS here. (After some tries to download the tsunami data, with I got with the help of @MichaelLangbein).

@boeckMt : Indeed, image/geotiff did the trick - thank you!
@nbrinckm : Yeah, WCS would be a lot more flexible in this. Unfortunately not every server we reference actually has a WCS. We're a little stuck with WMS as the default solution. (But this behavior can be overwritten if the programmer knows that a WCS is indeed present)

Well, maybe we can just check automatically if the server supports the WCS or WFS.

The point is that downloading a WMS layer is not really useful to work with. (I mean I tried, but at the end those just contain integer values for applying styles to. You can't extract any real data from that anymore.)
The whole usecase of downloading the data to work with it yourself (in GIS or a jupyter notebook) only make sense with real data.

True that! This is indeed not useful at all. Alright, we should indeed check for a WCS and probably not offer the option of downloading if no WCS exists. Good point!