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 > [email protected] > https://lists.osgeo.org/mailman/listinfo/gdal-dev -- Spatialys - Geospatial professional services http://www.spatialys.com
_______________________________________________ gdal-dev mailing list [email protected] https://lists.osgeo.org/mailman/listinfo/gdal-dev
