Skip to content

Commit

Permalink
COG creation option spec: add min/max to a number of integer options
Browse files Browse the repository at this point in the history
  • Loading branch information
rouault committed Jan 1, 2025
1 parent d0a945c commit 9335401
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions frmts/gtiff/cogdriver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1481,10 +1481,12 @@ void GDALCOGDriver::InitializeCreationOptionList()
osOptions += " <Option name='QUALITY' type='int' "
"description='" +
osJPEG_WEBP +
" quality 1-100' default='75'/>"
" quality 1-100' min='1' max='100' default='75'/>"
" <Option name='OVERVIEW_QUALITY' type='int' "
"description='Overview " +
osJPEG_WEBP + " quality 1-100' default='75'/>";
osJPEG_WEBP +
" quality 1-100' min='1' max='100' "
"default='75'/>";
}
if (bHasLERC)
{
Expand All @@ -1502,7 +1504,7 @@ void GDALCOGDriver::InitializeCreationOptionList()
" <Option name='JXL_LOSSLESS' type='boolean' description='Whether "
"JPEGXL compression should be lossless' default='YES'/>"
" <Option name='JXL_EFFORT' type='int' description='Level of effort "
"1(fast)-9(slow)' default='5'/>"
"1(fast)-9(slow)' min='1' max='9' default='5'/>"
" <Option name='JXL_DISTANCE' type='float' description='Distance "
"level for lossy compression (0=mathematically lossless, 1.0=visually "
"lossless, usual range [0.5,3])' default='1.0' min='0.01' max='25.0'/>";
Expand Down

0 comments on commit 9335401

Please sign in to comment.