[gdal-dev] Fw: Building GDAL with ECW support

Markus Neteler neteler at osgeo.org
Mon Feb 8 11:22:35 PST 2021


On Mon, Feb 8, 2021 at 12:47 PM Pteroglossus via gdal-dev
<gdal-dev at lists.osgeo.org> wrote:
>
> Thank you Markus for the explanation, you were right, I had conflicting libraries. I "located" every "gdal" files, deleted them all, started over from scratch and...
>
> "(Sun Feb 7 22:51:56 2021)
> r.in.gdal -f
>
> ECW (rw+): ERDAS Compressed Wavelets (SDK 5.5)
> JP2ECW (rw+): ERDAS JPEG2000 (SDK 5.5)"

Great, GDAL-GRASS problem solved.

> However:
>
> "(Sun Feb 7 22:52:28 2021)
> r.import input=/media/k/Data/Data/Perso/Carto/SCAN50_2012.ecw output=SCAN50_2012 -o

--> run this on command line, to get the import done

... because:

> No projection information available
> Over-riding projection check
> Importing 3 raster bands...
> Importing raster map <SCAN50_2012.1>...
> Importing raster map <SCAN50_2012.2>...
> Importing raster map <SCAN50_2012.3>...
> (Sun Feb 7 23:51:01 2021) Command finished (58 min 33 sec)
> Traceback (most recent call last):
> File "/usr/local/grass79/gui/wxpython/core/gconsole.py",
> line 691, in OnCmdDone
>
> event.onDone(event)
> File
> "/usr/local/grass79/gui/wxpython/modules/import_export.py",
> line 518, in OnCmdDone
>
> self.AddLayers(event.returncode, event.cmd, event.userData)
> File
> "/usr/local/grass79/gui/wxpython/modules/import_export.py",
> line 276, in AddLayers
>
> if not self.add.IsChecked() or returncode != 0:
> RuntimeError
> :
> wrapped C/C++ object of type CheckBox has been deleted"
>
> I do not have the slightest idea what could have caused that.

You are hit by a current GUI bug:
https://github.com/OSGeo/grass/issues/648

which is unrelated to GDAL.

FYI I did not encounter any issue during the compilation and
installation processes.
>
> I've never been closer to importing my .ecw into GRASS GIS, could you nudge me in the right direction one last time?

Yes:

Best is: run the import on command line for now.

For the unrelated GUI bug:
- either switch to GRASS GIS 7.8, or
- wait for the bugfix in G 7.9 (which is a dev version anyway). For
this you can subscribe to the bug to see the related updates.

HTH,
Markus


More information about the gdal-dev mailing list