TransDEM Forum
https://forum.transdem.de/

Nice DEMs for Austria, but cannot open them in TransDEM
https://forum.transdem.de/viewtopic.php?f=7&t=489
Page 1 of 1

Author:  Tobi79AT [ 06 Mar 2017 16:07 ]
Post subject:  Nice DEMs for Austria, but cannot open them in TransDEM

Hi everyone,

there is a great collection of DEMs available for Austria for free on http://www.data.gv.at - simply search for "DGM" ("Digitales GeländeModell") or use direct link
https://www.data.gv.at/suche/?search-term=dgm&searchIn=catalog&nr=0

Unfortunately, although available as geotiff, I seem to be unable to open the DEMs in TransDEM - I always get the message "PCSCitationGeoKey tag not found". Is there a way round this? Maybe changing/inserting this tag into the tif file, and if yes - how and what value to be chosen?

Thanks and all the best,
Tobi

Author:  geophil [ 06 Mar 2017 17:08 ]
Post subject:  Re: Nice DEMs for Austria, but cannot open them in TransDEM

Tobi79AT wrote:
Is there a way round this? Maybe changing/inserting this tag into the tif file
Possibly. But I have to investigate. I already downloaded the data yesterday (pure coincidence) and will run TransDEM in debug mode to analyse.

Author:  geophil [ 12 Mar 2017 12:32 ]
Post subject:  Re: Nice DEMs for Austria, but cannot open them in TransDEM

Strange thing. GeoTIFF has many options to encode meta data. One of them is "custom". And in custom mode you can do whatever you want. Unfortunately, a data reader application has to cope with this. Now, in this case, the projection appears to be "MGI Austria Lambert", one of the two classic projections in use in Austria. And because it's classic and well-known, it has a standard numeric encoding. Why they are not using that, I do not know. Instead they define all the projection parameters manually. The only other case where I have seen this customized approach before was the 25m DEM for New Zealand. I have to find out how I managed to decode that and then do something similar for the Austrian DEM.

Author:  geophil [ 15 Mar 2017 21:17 ]
Post subject:  Re: Nice DEMs for Austria, but cannot open them in TransDEM

Some progress. In my lab environment, I have managed to extract data:

Image

After the initial confusion with the custom definition for a well-known projection, the remaining meta information all made sense. Unfortunately, it points to a branch in TIFF encoding which TransDEM had not encountered before. Some additional code is required, that will also imply some refactoring in the existing GeoTIFF handling. It will take a bit of time.

In any way, the overall amount of data in that tif file is far too big to be opened in one go. But TransDEM already has an option to only extract a subset of the data and that will be obligatory when using the 10m source. But from the results in my lab test, that subset dialog also needs some adjustment.

Page 1 of 1 All times are UTC + 1 hour
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/