[gdal-dev] gdal Info Options Python

Even Rouault even.rouault at spatialys.com
Wed Mar 29 07:17:50 PDT 2017


On mercredi 29 mars 2017 06:51:11 CEST Johan de Braak wrote:
> Hi all,
> 
> Using gdal.Info in Python, I would like to have my result as a dictionary
> instead of a string. I found that in gdal.InfoOptions I am able to specify
> 'format'. By default, this is set to 'text', however changing this to 'dict'
> (or anything really) does still result in a string.
> 
> Is there a way to get the gdal.Info result as something else than a string?

Yes: format = 'json'

> 
> Johan
> 
> 
> 
> --
> View this message in context:
> http://osgeo-org.1560.x6.nabble.com/gdal-Info-Options-Python-tp5314816.html
> Sent from the GDAL - Dev mailing list archive at Nabble.com.
> _______________________________________________
> gdal-dev mailing list
> gdal-dev at lists.osgeo.org
> https://lists.osgeo.org/mailman/listinfo/gdal-dev


-- 
Spatialys - Geospatial professional services
http://www.spatialys.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20170329/21884026/attachment.html>


More information about the gdal-dev mailing list