[GRASS-dev] Can't Read NLCD 2001 Erdas imagine files

I tried to read a 2001 NLCD .img files located at
http://edcftp.cr.usgs.gov/pub/data/landcover/nlcd2001/superzones/

Here's what happened:

r.in.gdal in=landcover13_011007_0fix.img out=zn13
ERROR 4: `landcover13_011007_0fix.img' not recognised as a supported file format

I thought gdal supported this format?

Never mind. I answered my own question. I am using Fedora Core 6 and the standard gdal rpm.
Apparently the rpm was not compiled with the Erdas imagine format. I downloaded the source
code from the gdal home page, compiled it, and now I can read the 2001 nlcd files.

Posssibly, its left out of the standard FC6 rpm because the Erdas Imagine format is considered to be proprietary.
This begs the question as to why a Federal agency is making data available in a proprietary format.

Paul Van Deusen wrote:

I tried to read a 2001 NLCD .img files located at
http://edcftp.cr.usgs.gov/pub/data/landcover/nlcd2001/superzones/

Here's what happened:

r.in.gdal in=landcover13_011007_0fix.img out=zn13
ERROR 4: `landcover13_011007_0fix.img' not recognised as a supported file format

I thought gdal supported this format?

Paul Van Deusen wrote:

Never mind. I answered my own question. I am using Fedora Core 6 and the standard gdal rpm.
Apparently the rpm was not compiled with the Erdas imagine format. I downloaded the source
code from the gdal home page, compiled it, and now I can read the 2001 nlcd files.

Posssibly, its left out of the standard FC6 rpm because the Erdas Imagine format is considered to be proprietary.
This begs the question as to why a Federal agency is making data available in a proprietary format.

Paul,

Could you email me a "gdalinfo --formats" listing from the FC6 rpm version
of GDAL? I understand that it is being distributed without EPSG support
files, geotiff and possible other things depending on this coordinate
system support. If this is true I consider these rpms badly broken, and
best ignored. No doubt they will bring great disrepute on GDAL in the
months and years to come.

Best regards,
--
---------------------------------------+--------------------------------------
I set the clouds in motion - turn up | Frank Warmerdam, warmerdam@pobox.com
light and sound - activate the windows | http://pobox.com/~warmerdam
and watch the world go round - Rush | President OSGeo, http://osgeo.org

Paul Van Deusen wrote:

I tried to read a 2001 NLCD .img files located at
http://edcftp.cr.usgs.gov/pub/data/landcover/nlcd2001/superzones/

Here's what happened:

r.in.gdal in=landcover13_011007_0fix.img out=zn13
ERROR 4: `landcover13_011007_0fix.img' not recognised as a supported
file format

I tried the smallest one,
http://edcftp.cr.usgs.gov/pub/data/landcover/nlcd2001/superzones/impervious_zips/area_17_impervious.zip

gdalinfo says:

ERROR 1: Unable to open impervious17_012506.img, it has zero usable bands.
GDALOpen failed - 1
Unable to open impervious17_012506.img, it has zero usable bands.

Please ask further question on GDAL dev list.

Maciek