[gdal-dev] (no subject)

Andrew C Aitchison andrew at aitchison.me.uk
Mon Sep 19 07:17:31 PDT 2022


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
                    andrew at aitchison.me.uk


More information about the gdal-dev mailing list