[gdal-dev] Unknown base item type : 4+error occurs when open a *.img file

Frank Warmerdam warmerdam at pobox.com
Tue May 18 10:06:39 EDT 2010


mail2vajram wrote:
> When i am using the fillowing code i got the    error:Unknown base item type
> : 4
> 
> 
> DataSet ds=GDal.Open(".....\File1.IMG",Access.GA_ReadOnly);
> 
> why this error ocuurs.........
> thank you.....

Vajram,

It means a node in the .img file has a BASEDATA object with an unknown data
type.  If things seem to be working ok anyways, then just ignore it and
continue on.  If not, you should consider filing a ticket and providing
the data with the ticket in some fashion.

Most likely the data is non-critical, but in at least some circumstances
the Python bindings are over sensitive to non-fatal errors issued down
deep in functions.

Best regards,
-- 
---------------------------------------+--------------------------------------
I set the clouds in motion - turn up   | Frank Warmerdam, warmerdam at pobox.com
light and sound - activate the windows | http://pobox.com/~warmerdam
and watch the world go round - Rush    | Geospatial Programmer for Rent



More information about the gdal-dev mailing list