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

No driver registered on load_gdal #171

Open
jerome-colin opened this issue Dec 7, 2021 · 0 comments
Open

No driver registered on load_gdal #171

jerome-colin opened this issue Dec 7, 2021 · 0 comments

Comments

@jerome-colin
Copy link

Hi,
I'm new to xtensor and xtensor-io, and felt into the following error while trying to load a geotiff image with load_gdal:

ERROR 4: No driver registered.
terminate called after throwing an instance of 'std::runtime_error'
what(): load_gdal(): error opening GDAL dataset '/data/SENTINEL2A_20210614-105859-131_L2A_T31TCJ_C_V2-2_FRE_B3.tif'.

I couldn't see where drivers are registered in load_gdal, but found that adding a GDALAllRegister(); at line 384 of xgdal.hpp fixed this.
That said, I probably did something wrong and I'd be glad to have your feedback on how I should do without tweaking your code.

Thanks !
Jerome

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

No branches or pull requests

1 participant