[gdal-dev] Reading the TerrainBase 1995 dataset (.BIN + .HDR) with gdal?
Nikos Alexandris
nik at nikosalexandris.net
Thu May 14 21:02:26 PDT 2015
Nikos Alexandris:
> > Hi gdalers,
> > has anyone read the TerrainBase data set (NOOA, 1995) using gdal tools?
> > The link to the relevant CD is:
> > http://webapp1.dlib.indiana.edu/virtual_disk_library/index.cgi/6081153/FID3260
> > (see for example inside the DATA directory)
Even Rouault:
> Nikos,
>
> The .HDR file contains the same information as in the ESRI .HDR format, but with
> a different format, so it is not automatically recognized.
>
> From the info in the .HDR you can build a VRT file (
> http://gdal.org/gdal_vrttut.html ) referencing the .BIN. For example
> for AFRICA.BIN :
>
> <VRTDataset rasterXSize="984" rasterYSize="900">
> <SRS>WGS84</SRS>
>
> <GeoTransform>-26.041666666,0.08333333,0,40.041666666,0,-0.08333333</GeoTransform>
> <VRTRasterBand dataType="Int16" band="1" subClass="VRTRawRasterBand">
> <SourceFilename relativeToVRT="1">AFRICA.BIN</SourceFilename>
> </VRTRasterBand>
> </VRTDataset>
Where do the fine digits +0.041666666 (for x and y) come from, as the reference corner coordinates are -26.0, 40.0?
Then, for EUROPE:
<VRTDataset rasterXSize="1140" rasterYSize="540">
<SRS>WGS84</SRS>
<GeoTransform>-25.041666666,0.08333333,0,75.041666666,0,-0.08333333</GeoTransform>
<VRTRasterBand dataType="Int16" band="1" subClass="VRTRawRasterBand">
<SourceFilename relativeToVRT="1">EUROPE.BIN</SourceFilename>
</VRTRasterBand>
</VRTDataset>
Imported normally in GRASS GIS :-)
Nikos
More information about the gdal-dev
mailing list