conda-forge / gdal-feedstock

A conda-smithy repository for gdal.
BSD 3-Clause "New" or "Revised" License
30 stars 62 forks source link

Unsupported Data Source: ecw is not a supported raster data source #697

Open ivn951 opened 1 year ago

ivn951 commented 1 year ago

Comment:

Is it possible to make QGIS able to read ECW files (despite being under commercial license) after installation from conda-forge in a dedicated environment? The GDAL libraries have been installed correctly. Thank you.

gillins commented 1 year ago

@ivn951 There is some information here about building drivers as plugins here: https://gdal.org/development/building_from_source.html#build-drivers-as-plugins. I'd see if you can get that working, but you'd have to be comfortable building from source. ECW doesn't appear to be one of the drivers listed by cmake as supporting being built as a driver, but the CMakeLists.txt does set "PLUGIN_CAPABLE", whatever that means, probably worth digging into. Let us know how you get on, would be worth documenting this so other people who need proprietary drivers can do the same.

ivn951 commented 1 year ago

@gillins Thank you very much. I will try to investigate if I can find a documentable solution, also hoping someone else can help me solve the problem. I would like to avoid making installations of QGIS macOS from dmg and be able to install from conda-forge, multiple full versions in different independent environments, each with its own plugins, considering that there are no versions OSGeo4W for this OS.

rouault commented 1 year ago

ECW doesn't appear to be one of the drivers listed by cmake as supporting being built as a driver,

what makes you think so ? It can definitely been built as a plugin. Support of drivers requiring proprietary SDK is actually one of the main motivation for the plugin capability.

gillins commented 1 year ago

For some reason running cmake .. -L | grep -e "_ENABLE.*PLUGIN" on GDAL master didn't show ECW for me. Glad to hear it can be done though - this is a regular request from users (Kakadu being the other one).

rouault commented 1 year ago

For some reason running cmake .. -L | grep -e "_ENABLE.*PLUGIN" on GDAL master didn't show ECW for me

Probably that the variable is set only if you have the ECW SDK detected

wkrill commented 1 year ago

If anyone is here looking for a GDAL installation with ECW support, there is a Docker recipe here: https://github.com/DHI-GRAS/ecw2tiff/blob/main/Dockerfile