[gdal-dev] (no subject)

Rahkonen Jukka jukka.rahkonen at maanmittauslaitos.fi
Mon Sep 19 07:31:53 PDT 2022


I have, it does not help if the journal mode is WAL. 

ogrinfo /vsicurl/"http://localhost:8060/SuomenHallinnollisetKuntajakopohjaisetAluejaot_2022_10k.gpkg" -ro
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.

-Jukka Rahkonen-

-----Alkuperäinen viesti-----
Lähettäjä: gdal-dev <gdal-dev-bounces at lists.osgeo.org> Puolesta Andrew C Aitchison
Lähetetty: maanantai 19. syyskuuta 2022 17.18
Vastaanottaja: Moises Calzado <mcalzado at carto.com>
Kopio: gdal-dev at lists.osgeo.org
Aihe: Re: [gdal-dev] (no subject)

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 _______________________________________________
gdal-dev mailing list
gdal-dev at lists.osgeo.org
https://eur06.safelinks.protection.outlook.com/?url=https%3A%2F%2Flists.osgeo.org%2Fmailman%2Flistinfo%2Fgdal-dev&data=05%7C01%7Cjukka.rahkonen%40maanmittauslaitos.fi%7C19520984e6db45c9348708da9a4b1be2%7Cc4f8a63255804a1c92371d5a571b71fa%7C0%7C0%7C637991944628587871%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=vUEpaIT8yFEr%2Bc77371qb2NVR1K1YQNGbBcTBHU70P8%3D&reserved=0


More information about the gdal-dev mailing list