[GRASS-user] Importing ECW file into GRASS 6.3

Hi,

I am having trouble importing ECW files into grass6.3

I compiled gdal 1.5.2 with ECW support (built ECW 3.3 files).

$gdalinfo --version
GDAL 1.5.2, released 2008/05/09

When i do --formats it lists .ers and .ecw. However when i try and import either of the file types i get the following error

not recognised as a supported file format

I already had grass installed when i built gdal 1.5.2. I built it with grass 5.7+ support. After i checked out the latest svn 6.3 and reinstalled grass with gdal support
–with-gdal=/usr/local/bin/gdal_config
(still not sure what should be built with what support…)

Can anyone give me some ideas as to why i cannot import .ecw or .ers files??

Thank you for your help,

Cheers.
Ed

On Fri, Oct 3, 2008 at 5:33 PM, Edward Tomlinson <e.j.tommo@gmail.com> wrote:

Hi,

I am having trouble importing ECW files into grass6.3

I compiled gdal 1.5.2 with ECW support (built ECW 3.3 files).

$gdalinfo --version
GDAL 1.5.2, released 2008/05/09

When i do --formats it lists .ers and .ecw. However when i try and import
either of the file types i get the following error

not recognised as a supported file format

I suspect that you have two GDAL libraries in parallel on your system.

GRASS support in GDAL is best done via plugin mode,
see
http://grass.osgeo.org/wiki/Compile_and_install_GRASS_and_QGIS_with_GDAL/OGR_Plugin

If you use Linux, you can use
ldd `which r.in.gdal`
to see where the GDAL lib is located.

Markus