#ogrinfo finally gets an option for JSON output 🎉
before it was a custom output which was laborious to postprocess
from @gdal 3.7 on the output will play well with everything that understands JSON

thanks to @EvenRouault 👍
#gdal #ogr #osgeo #foss4g
https://github.com/OSGeo/gdal/pull/6812

ogrinfo: make it available as a library function, and add JSON output by rouault · Pull Request #6812 · OSGeo/gdal

Example of JSON output with ogrinfo autotest/ogr/data/poly.shp -json { "description":"autotest/ogr/data/poly.shp", "driverShortName":"ESRI Shapefile", "driverLongName":"ESRI Shapefile", "la...

GitHub
Obtain CRS compliant WKT from GeoPackage with ogrinfo

I would like to obtain the WKT for a few geometries stored in a GeoPackage file with orginfo. That is the function of the -al parameter. However, when applied directly to the file in question it cr...

Geographic Information Systems Stack Exchange