Skip to content

Commit

Permalink
Doc: Simplify paths in gdalinfo examples
Browse files Browse the repository at this point in the history
  • Loading branch information
dbaston committed Nov 19, 2024
1 parent 27fce71 commit 3805a22
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions doc/source/programs/gdalinfo.rst
Original file line number Diff line number Diff line change
Expand Up @@ -184,11 +184,13 @@ This utility is also callable from C with :cpp:func:`GDALInfo`.
Example
-------

.. command-output:: gdalinfo ../../autotest/gcore/data/utmsmall.tif
.. command-output:: gdalinfo utmsmall.tif
:cwd: ../../../autotest/gcore/data

For corner coordinates formatted as decimal degree instead of the above degree, minute, second, inspect the ``wgs84Extent`` member of gdalinfo -json:

Example of JSON output with `gdalinfo -json ../../autotest/gcore/data/utmsmall.tif`:
Example of JSON output with ``gdalinfo -json utmsmall.tif``:

.. program-output:: gdalinfo -json ../../autotest/gcore/data/utmsmall.tif
:language: json
.. program-output:: gdalinfo -json utmsmall.tif
:cwd: ../../../autotest/gcore/data
:language: json

0 comments on commit 3805a22

Please sign in to comment.