From 3805a2289e150423622eb3f7781e194319c7e283 Mon Sep 17 00:00:00 2001 From: Daniel Baston Date: Tue, 19 Nov 2024 11:43:45 -0500 Subject: [PATCH] Doc: Simplify paths in gdalinfo examples --- doc/source/programs/gdalinfo.rst | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/doc/source/programs/gdalinfo.rst b/doc/source/programs/gdalinfo.rst index 66b7a6b6106e..405801a4d2d2 100644 --- a/doc/source/programs/gdalinfo.rst +++ b/doc/source/programs/gdalinfo.rst @@ -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