[gdal-dev] ogrinfo vs gdal vector info equivalent command

Scott public at postholer.com
Wed Apr 1 17:58:26 PDT 2026


Greetings!

What is the equivalent 'gdal vector info' (or other CLI) command to the 
older ogrinfo syntax?

ogrinfo -dialect sqlite -sql "create index if not exists mytable_col_idx 
on mytable(col)" source.gpkg

The above works fine, the following errors out:

gdal vector info --dialect sqlite --sql "create index mytable_col_idx on 
mytable(col)" source.gpkg

ERROR 1: In ExecuteSQL(): sqlite3_step(create index mytable_col_idx on 
mytable(col)):
   attempt to write a readonly database


I'm struggling with this and have continued to use the old ogrinfo.

Thanks!
Scott

-- 
www.postholer.com



More information about the gdal-dev mailing list