1

Reading the documentation for gdalinfo describes the option of formatting the output as JSON.

-json

Display the output in json format.

However, when I use the -json tag it appears not to be implemented.

> gdalinfo -json translated_image_overlay.png
Usage: gdalinfo [--help-general] [-mm] [-stats] [-hist] [-nogcp] [-nomd]
[-norat] [-noct] [-nofl] [-checksum] [-proj4]
[-listmdd] [-mdd domain|all]*
[-sd subdataset] datasetname

FAILURE: Unknown option name '-json'

I have GDAL 1.11.1 installed.

Can someone explain why this is happening?

asked Oct 8, 2015 at 21:39

1 Answer 1

3

-json was implemented in GDAL 2.0+. 1.11.1 does not have this feature.

see here: http://gdal.org/1.11/gdalinfo.html

answered Oct 8, 2015 at 21:55
3
  • Thanks @Thomas-horner, great answer. Do you(,or someone else,) happen to know where I can download GDAL 2.0+ core and Python bindings for Windows x86_64? Commented Oct 8, 2015 at 22:07
  • Easiest way is to just download the OSGeo4W network installer. You can install a variety of FOSS4G, including the latest gdal versions. trac.osgeo.org/osgeo4w Commented Oct 8, 2015 at 22:13
  • 2
    Another source for Windows builds is gisinternals.com/development.php. Just select your processor and a MSVC version. The benefit of gisinternals is that it does not interfere with running QGIS/GDAL versions if you use the zipped versions. Start the SDK shell, and run commands at the console inside. Commented Oct 9, 2015 at 5:12

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.