[gdal-dev] Fw: Building GDAL with ECW support
pteroglossus at pm.me
pteroglossus at pm.me
Mon Feb 8 03:46:59 PST 2021
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)"
However:
"(Sun Feb 7 22:52:28 2021)
r.import input=/media/k/Data/Data/Perso/Carto/SCAN50_2012.ecw output=SCAN50_2012 -o
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. 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?
Best,
Kevin
‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐
On Saturday, February 6, 2021 8:58 AM, Markus Neteler neteler at osgeo.org wrote:
> On Sat, Feb 6, 2021 at 2:38 AM Pteroglossus via gdal-dev
> gdal-dev at lists.osgeo.org wrote:
>
>> Regarding the compilation of GRASS: pointing to my existing install of GDAL prior the compiling process did not work.
>
> That's unexpected. Perhaps the resulting binary still picks the wrong
> GDAL library?
> Please check if you still have multiple GDAL versions installed in
> parallel (I'd avoid that).
>
>> So I followed Richard's advice and restarted the whole process of compiling GDAL, without the --prefix, then configured and compiled GRASS, and it worked!
>> I mean I was able to start GRASS GIS, but it won't import my .ecw:
>> "r.import input=/media/k/Data/Data/Perso/Carto/SCAN50_2012.ecw output=SCAN50_2012
>> ERROR: Unable to open datasource </media/k/Data/Data/Perso/Carto/SCAN50_2012.ecw>
>> ERROR: Unable to open datasource </media/k/Data/Data/Perso/Carto/SCAN50_2012.ecw>
>> ERROR: Unable to read GDAL dataset </media/k/Data/Data/Perso/Carto/SCAN50_2012.ecw>"
>
> Is ECW reported?
> https://grass.osgeo.org/grass-stable/manuals/r.in.gdal.html
> --> flag: -f List supported formats and exit
>
>> - an additional Dialog Box :"Unable to determine number of raster bands"
>
> GRASS GIS simply uses GDAL, so perhaps it still uses the wrong GDAL library?
>
>> Gdalinfo is however able to get info from the file and gdal_translate to convert it, which necessarily means my installation has worked!
>
> You need to be sure that the installed GRASS GIS binaries use the same
> GDAL library as e.g. gdalinfo.
> Best
> Markus
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20210208/5253f3a9/attachment.html>
More information about the gdal-dev
mailing list