[GRASS-user] How to import .img format file?

Rei Hayashi rei.grass at gmail.com
Wed Dec 19 09:28:11 EST 2007


Ardi and Hamish, thank you for your advice.

I checked gdal using "$ gdalinfo --formats | grep -i erdas".  Then, I
saw only "LAN (ro): Erdas .LAN/.GIS", but not "HFA (rw+): Erdas
Imagine Images (.img)".

The computer I am using now used to belong to my coworker who left our
company a year ago.  GRASS is new software to me.  Do I need to
re-install GDAL feature into this computer?

Thank you,
Rei Hayashi


On Dec 18, 2007 1:39 AM, Hamish <hamish_b at yahoo.com> wrote:
> Rei Hayashi wrote:
> > I have a problem in importing raster files that are ".img" format.  I
> > though r.in.gdal does work for this task, but I have failed so far.
> >
> > Does anyone know how to import raster files in .img format?  Please
> > give me some advice.
>
>
> check if your copy of GDAL was built with support for Erdas Imagine.
>
> $ gdalinfo --formats | grep -i erdas
>   HFA (rw+): Erdas Imagine Images (.img)
>   LAN (ro): Erdas .LAN/.GIS
>
> If that's there, then r.in.gdal should be able to load it.
>
> also try
>
> $ gdalinfo filename.img
>
>
>
> I successfully imported a .img file with r.in.gdal last week.
> What are the command line options and exact error message you get?
>
>
> Hamish
>
>
>
>       ____________________________________________________________________________________
> Be a better friend, newshound, and
> know-it-all with Yahoo! Mobile.  Try it now.  http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ
>
>
>


More information about the grass-user mailing list