Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
ivn951 opened this issue Dec 5, 2022 · 6 comments
Open

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

ivn951 opened this issue Dec 5, 2022 · 6 comments
Labels

Comments

@ivn951
Copy link

ivn951 commented Dec 5, 2022

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.

@ivn951 ivn951 added the question label Dec 5, 2022
@gillins
Copy link
Contributor

gillins commented Dec 6, 2022

@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
Copy link
Author

ivn951 commented Dec 6, 2022

@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
Copy link
Contributor

rouault commented Dec 8, 2022

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
Copy link
Contributor

gillins commented Dec 8, 2022

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
Copy link
Contributor

rouault commented Dec 8, 2022

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
Copy link

wkrill commented Jan 19, 2023

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants