[gdal-dev] Open BIL, BIP, and BSQ raster files without header
Dear all, I'm using GDAL 1.9.1 and I would like to load binary raster files especifying manually header information such number of lines, number of pixels, pixel data type, byte order, bits per pixel. Also I would like to specify file offset, band offset and line offset for the file. Can someone please help me figure this out. Thanks in advance, Regards -- Gabriel Fusca SUR Emprendimientos Tecnológicos Perú 345 Piso 5to Oficina B (C1067AAG) Ciudad de Buenos Aires, Argentina Tel. +54 (11) 4342-2976/84 gabrielfu...@suremptec.com.ar http://www.suremptec.com/ ___ gdal-dev mailing list gdal-dev@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/gdal-dev
Re: [gdal-dev] Open BIL, BIP, and BSQ raster files without header
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. 2013/10/22 Kyle Shannon k...@pobox.com Gabriel, Did you look at the VRT dataset? http://www.gdal.org/gdal_vrttut.html I suspect that is what you are looking for. kss On Tue, Oct 22, 2013 at 7:27 AM, Gabriel Fusca gabrielfu...@suremptec.com.ar wrote: Dear all, I'm using GDAL 1.9.1 and I would like to load binary raster files especifying manually header information such number of lines, number of pixels, pixel data type, byte order, bits per pixel. Also I would like to specify file offset, band offset and line offset for the file. Can someone please help me figure this out. Thanks in advance, Regards -- Gabriel Fusca SUR Emprendimientos Tecnológicos Perú 345 Piso 5to Oficina B (C1067AAG) Ciudad de Buenos Aires, Argentina Tel. +54 (11) 4342-2976/84 gabrielfu...@suremptec.com.ar http://www.suremptec.com/ ___ gdal-dev mailing list gdal-dev@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/gdal-dev -- Kyle -- Gabriel Fusca SUR Emprendimientos Tecnológicos Perú 345 Piso 5to Oficina B (C1067AAG) Ciudad de Buenos Aires, Argentina Tel. +54 (11) 4342-2976/84 gabrielfu...@suremptec.com.ar http://www.suremptec.com/ ___ gdal-dev mailing list gdal-dev@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/gdal-dev
Re: [gdal-dev] Open BIL, BIP, and BSQ raster files without header
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 ___ gdal-dev mailing list gdal-dev@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/gdal-dev
Re: [gdal-dev] Open BIL, BIP, and BSQ raster files without header
I will try first the EHdr driver option. Thanks a lot Even and Kyle, 2013/10/22 Even Rouault even.roua...@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 gabrielfu...@suremptec.com.ar http://www.suremptec.com/ ___ gdal-dev mailing list gdal-dev@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/gdal-dev