[gdal-dev] Reading contents of Erdas Block File

Even Rouault even.rouault at mines-paris.org
Fri May 30 00:51:40 PDT 2014


On Thursday 29 May 2014 16:42:35 Ryan wrote:
> There is a set of images (a handful of .img) and only one block file. I can
> open any of the images but that doesn't seem to access the metadata that's
> stored on the block file.

Access to the .blk and one of the .img could be useful for investigation.

> 
> -Ryan
> 
> 
> On Thu, May 29, 2014 at 3:24 PM, Even Rouault <even.rouault at mines-paris.org>
> wrote:
> >  On Thursday 29 May 2014 12:41:17 Ryan wrote:
> > > I have some imagery that has metadata stored in Erdas Block Files (.blk)
> > > 
> > > that I am having a hard time reading.
> > > 
> > > 
> > > 
> > > It likes the data is stored in an HFA Header, when viewing the file (cat
> > 
> > or
> > 
> > > less) it begins with "EHFA_HEADER_TAG".
> > > 
> > > 
> > > 
> > > However, there are no raster bands so using gdalinfo or GDALOpen errors
> > 
> > out
> > 
> > > with:
> > > 
> > > ERROR 1: Unable to open image_name_file.blk, it has zero usable bands.
> > 
> > Did you try opening the main file, the .img ?
> > 
> > > Any ideas on reading this kind of file?
> > > 
> > > 
> > > 
> > > -Ryan
> > 
> > --
> > 
> > Geospatial professional services
> > 
> > http://even.rouault.free.fr/services.html
-- 
Geospatial professional services
http://even.rouault.free.fr/services.html
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20140530/63658834/attachment-0001.html>


More information about the gdal-dev mailing list