On Mon, 19 Sep 2022, Moises Calzado via gdal-dev wrote:

Hello everyone,

We're performing some tests with ogrinfo trying to read GPKG files, and
we're facing some issues executing the command with remote GPKG files in
WAL mode. As can be checked in the following command output, ogr fails
while reading the file content:

ERROR: Error: Command failed: ogrinfo /vsicurl/MY_FILE_URL has GPKG
application_id, but non conformant file extension ERROR 1: unable to open
database file: this file is a WAL-enabled database. It cannot be opened
because it is presumably read-only or in a read-only directory. ERROR 1:
Only read-only mode is supported for /vsicurl


What is strange here is that the same file works correctly if we execute
the command using the downloaded file.

Is there any way we can execute the command using a remote file?

'man ogrinfo' includes the option:
       -ro    Open the data source in read-only mode.

So, have you tried
        ogrinfo -ro /vsicurl/MY_FILE_URL
?


--
Andrew C. Aitchison                      Kendal, UK
                   and...@aitchison.me.uk
_______________________________________________
gdal-dev mailing list
gdal-dev@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/gdal-dev

Reply via email to