[GRASS-user] BIN raster import

Daniel Victoria daniel.victoria at gmail.com
Mon Sep 8 07:53:07 EDT 2008


Another way for gdal to recognize bin files is to write a header file.
The bad news is that you mus know the number of collumns, rows, bands etc etc

http://www.gdal.org/frmt_various.html#EHdr

Daniel

On Sun, Sep 7, 2008 at 5:12 AM, Markus Neteler <neteler at osgeo.org> wrote:
> 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
> _______________________________________________
> grass-user mailing list
> grass-user at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/grass-user
>


More information about the grass-user mailing list