remicres / otbtf

Deep learning with otb (mirror of https://forgemia.inra.fr/orfeo-toolbox/otbtf)
Apache License 2.0
161 stars 39 forks source link

ERROR: Failed to open GDALDataset file *.gpkg #73

Closed HardRock4Life closed 2 years ago

HardRock4Life commented 2 years ago

Hello! I’m trying to do an image segmentation using OTBTF.

Configuration setup:

When I’m rasterizing a *.gpkg vector layer, it says: Rasterization: itk::ERROR: Failed to open GDALDataset file buildings_.gpkg : disk I/O error: this file is a WAL-enabled database. It cannot be opened because it is presumably read-only or in a read-only directory.

What might be causing the problem?

remicres commented 2 years ago

Hi @HardRock4Life ,

Looks GDAL/OGR related. Maybe that is because the .gpkg must not be opened elsewhere. I believe that you have to remove it from the QGIS layers before trying to play with it.

Hope that helps.

HardRock4Life commented 2 years ago

True, that really worked! Thank you 👍