[GRASS-user] BIN raster import

Markus Neteler neteler at osgeo.org
Sun Sep 7 04:12:23 EDT 2008


On Fri, Sep 5, 2008 at 11:42 PM, Richard Chirgwin
<rchirgwin at ozemail.com.au> wrote:
> Hamish wrote:
>>
>> Richard Chirgwin wrote:
>>
>>>
>>> Returning to my original problem: is there a program for
>>> Linux that will read a BIN DEM, and let me save it in something
>>> like GeoTIFF, because I cannot beat the two-byte file size
>>> error detected by r.in.bin.
>>>
>>
>> You can try gdal_translate, but I think if the numbers don't
>> add up in r.in.bin then as a fundamental matter they won't add
>> up anywhere else either. Unless GDAL's autodetect magic finds
>> something special about the file format.
>>
>>
>> Can you provide all the known info you can about the file?
>> Exact filesize, expected dimensions, given bounds, endianness,
>> bytes per cell, data type (floating point, integer, ..),
>> expected data range, etc.? Maybe we can figure it out with a
>> hand calculator.
>>
>
> I'll have to pick it up on Monday - the documentation is back at the office!
> gdal_translate and gdalinfo don't recognise the file format ...

You'll need to write a VRT file:
http://www.gdal.org/gdal_vrttut.html
and use that as input to gdalinfo etc.

Markus


More information about the grass-user mailing list