Mrsid and/or ecw support in qgis or gdal

I am trying to open some raster images from here but they are only available in sid (mrsid) or ecw formats and qgis cannot open them despite on-line resources suggesting they can be loaded out of the box. qdalinfo --formats does not list either of these formats, though, nor is a plugin I saw mentioned available for installation. Is there an easy way to do this? Do I need to somehow build gdal with support for these formats?

Thanks in advance

Looks like neither are supported out of the box in nixpkgs (nixpkgs/pkgs/development/libraries/gdal/default.nix at 9aa6aef6677e352bed16add36e524364c67986da · NixOS/nixpkgs · GitHub) — but ecw seems reasonably easy to add: https://trac.osgeo.org/gdal/wiki/ECW#BuildingGDALwithECWsupportonUnix

I did not check ecw’s dependencies though.

Thanks for confirming. That’s what I thought. I was hoping not to have to recompile, but oh well. (Tried the flatpak version too, no luck.)

Cheers

ECW can’t be provided by gdal due to licensing constraints. You need to accept Hexagon EULA, download it and build it by yourself as mentioned by @motiejus .

At geospatial-nix, we are working on EULA compliant packaging and integration with the rest of geospatial software stack (see packaging PR: pkgs: add ecw-sdk package by imincik · Pull Request #507 · imincik/geospatial-nix · GitHub ).

BTW, there’s also geospatial Matrix room .

Thanks for the info.

PR containing GDAL with ECW support can be tested now:

$ nix build --impure --expr "(builtins.getFlake "github:imincik/geospatial-nix/ecw-sdk").packages.x86_64-linux.gdal.override { useECW = true; }"

$ ./result/bin/gdalinfo --formats | grep -i ecw
  ECW -raster- (rw+): ERDAS Compressed Wavelets (SDK 5.5) (*.ecw)
  JP2ECW -raster,vector- (rw+v): ERDAS JPEG2000 (SDK 5.5) (*.jp2)

First attempt to build will fail with error message containing instructions how to download ecw-sdk and add it to nix store. Feedback very much appreciated.

I haven’t been able to build qgis since the recent kernel bump. I’m getting “configure: error: *** Unable to locate suitable (>=1.7.1) PDAL library.”. I’ll try this when I’m able to build it again (using flathub version of qgis for now).

This error is fixed now in Nixpkgs master.

I have created example project containing QGIS built with GDAL with ECW support. See REAMDE for instructions how to use it.

Indeed it is, thank you. :grinning:

Cool. I look forward to checking it out this weekend.I really appreciate your help, thank you.