Skip to content

Commit

Permalink
Fix defaults for options
Browse files Browse the repository at this point in the history
  • Loading branch information
elpaso committed Apr 17, 2024
1 parent e6a2470 commit bfb5631
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions apps/gdal_utils_priv.h
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,8 @@ struct GDALInfoOptionsForBinary
/* Open options. */
CPLStringList aosOpenOptions{};

/* > for reporting on a particular subdataset */
int nSubdataset;
/* For reporting on a particular subdataset */
int nSubdataset = 0;

/* Allowed input drivers. */
CPLStringList aosAllowedInputDrivers{};
Expand Down
4 changes: 2 additions & 2 deletions apps/gdalinfo_lib.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -115,10 +115,10 @@ struct GDALInfoOptions
bool bShowMetadata = true;

/*! allow or suppress printing of raster attribute table */
bool bShowRAT = false;
bool bShowRAT = true;

/*! allow or suppress printing of color table */
bool bShowColorTable = false;
bool bShowColorTable = true;

/*! list all metadata domains available for the dataset */
bool bListMDD = false;
Expand Down
4 changes: 2 additions & 2 deletions autotest/utilities/test_gdalinfo.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ def test_gdalinfo_1(gdalinfo_path):
gdalinfo_path + " ../gcore/data/byte.tif",
encoding="UTF-8",
)
assert err is None or err == "", "got error/warning"
assert err is None or err == "", f"got error/warning {err}"
assert ret.find("Driver: GTiff/GeoTIFF") != -1


Expand Down Expand Up @@ -460,7 +460,7 @@ def test_gdalinfo_28(gdalinfo_path):
encoding="UTF-8",
)
ret = json.loads(ret)
assert err is None or err == "", "got error/warning"
assert err is None or err == "", f"got error/warning {err}"
assert ret["driverShortName"] == "GTiff"


Expand Down

0 comments on commit bfb5631

Please sign in to comment.