Re: SRTM1 data only avail. from Seamless, not in tiles; how to process in TG?
Paul Surgeon <[email protected]> Sun, 19 Mar 2006 11:41:43 +0200
| Newsgroups | gmane.games.flightgear.terragear.devel |
|---|---|
| Message-ID | <[email protected]> |
On Sunday 19 March 2006 10:41, Paul Surgeon wrote: > On Sunday 19 March 2006 02:15, Chris Metzler wrote: > > Thanks. But which format(s) of these can TerraGear digest? None of the > > files within the archives so produced look like anything David refers to > > in the docs. > > > > Cheers, > > > > -c > > I took a very brief look at the TerraGear source code and it seems > hardwired to GTOPO DEMs. I could only find raw2ascii for converting DEMs to > the proprietry TG format. Maybe Curt could tell us how he uses other > formats. > > It would be really easy to write a converter for something like BIL. (plain > jane binary interleaved line format) > The ultimate solution would be to use the gdal library for the import and > then write the data out in our proprietry ascii format. Then nearly any DEM > format could be used. > > Paul Chris, Norman Vine pointed out to me that the README file in TerraGear's base directory lists the supported formats. I took a look and one of the tools you could use it hgtchop. From what I've read hgt and bil are the same format (unless there was an endian swap). They're both raw binary files. So theoretically what you could do is : 1. Download from Seamless in BIL format. 2. Change the extension from .bil file to .hgt 3. Rename the file so that it conforms to the hgt file name format. This is because the geographical origin/location of the dem file is determined from the file name in TerraGear/src/Lib/HGT/hgt.cxx (line 118) I haven't tested it but it should work. Paul _______________________________________________ Terragear-devel mailing list [email protected] http://mail.flightgear.org/mailman/listinfo/terragear-devel 2f585eeea02e2c79d7b1d8c4963bae2d