[gdal-dev] Open BIL, BIP, and BSQ raster files without header

Gabriel Fusca gabrielfusca at suremptec.com.ar
Tue Oct 22 11:16:07 PDT 2013


I will try first the EHdr driver option.

Thanks a lot Even and Kyle,




2013/10/22 Even Rouault <even.rouault at mines-paris.org>

> Le mardi 22 octobre 2013 19:43:50, Gabriel Fusca a écrit :
> > I'm thinking to configure the header file (.hdr) following the
> > especification of the header (
> >
> http://webhelp.esri.com/arcgisdesktop/9.2/index.cfm?TopicName=BIL,_BIP,_and
> > _BSQ_raster_files )
> >
> > skipbytes: file offset
> > bandrowbytes: band offset
> > totalrowbytes: row offset
> >
> > I don't know if GDAL can handle this configuration.
>
> This is handled by the GDAL EHdr driver.
>
> Looking at the code :
> * skipbytes: yes, taken into account
> * bandrowbytes: only taken into account if nbits < 8
> * totalrowbytes : only taken into account if nbits < 8
>
> Not sure why the last 2 fields are only taken into account conditionnaly.
>
> If that doesn't work for you, as suggested by Kyle, you could use
> VRTRawRasterBand specification.
>
> Even
>
> --
> Geospatial professional services
> http://even.rouault.free.fr/services.html
>



-- 
Gabriel Fusca
SUR Emprendimientos Tecnológicos

Perú 345  Piso 5to Oficina "B" (C1067AAG)
Ciudad de Buenos Aires, Argentina
Tel. +54 (11) 4342-2976/84
gabrielfusca at suremptec.com.ar
http://www.suremptec.com/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20131022/c1c78f48/attachment.html>


More information about the gdal-dev mailing list