[gdal-dev] gdal CLI issues

Scott public at postholer.com
Tue Jun 3 22:00:35 PDT 2025


GDAL 3.11.0 built from source. Debian 12, bash version: 5.2.15(1)-release:

For every gdal cli command I use, it ends with this message:

Unexpected exception: std::get: wrong index for variant

Also, I cannot get --format=json to work with any vector format. It 
works with raster. It's also the default and doesn't work when omitted. 
Here are some commands I've been using that DON'T work:

gdal info --format=json -i file.gpkg
gdal vector info --format=json -i file.gpkg
gdal info --format=json --input=file.fgb
gdal vector info --format=json --input=file.fgb

If I change the format to 'text' or use 'raster' with a raster file, it 
works fine. ogrinfo works fine also:

ogrinfo -json file.gpkg


Thank you!!!


More information about the gdal-dev mailing list