Skip to content

Commit 5ab358f

Browse files
committed
Add option for the potentially visible value.
Add doc.
1 parent 54fac32 commit 5ab358f

File tree

2 files changed

+17
-0
lines changed

2 files changed

+17
-0
lines changed

apps/gdalalg_raster_viewshed.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,12 @@ GDALRasterViewshedAlgorithm::GDALRasterViewshedAlgorithm(bool standaloneStep)
120120
.SetDefault(m_opts.invisibleVal)
121121
.SetMinValueIncluded(0)
122122
.SetMaxValueIncluded(255);
123+
AddArg("maybe-visible-value", 0,
124+
_("Pixel value to set for potentially visible areas"),
125+
&m_opts.maybeVisibleVal)
126+
.SetDefault(m_opts.maybeVisibleVal)
127+
.SetMinValueIncluded(0)
128+
.SetMaxValueIncluded(255);
123129
AddArg("out-of-range-value", 0,
124130
_("Pixel value to set for the cells that fall outside of the range "
125131
"specified by the observer location and the maximum distance"),

doc/source/programs/gdal_raster_viewshed.rst

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -203,6 +203,17 @@ Program-Specific Options
203203

204204
Pixel value to set for visible areas. (Not supported in cumulative mode) Default: 255
205205

206+
.. versionadded:: 3.13
207+
208+
.. option:: --sd-filename <value>
209+
210+
Filename of raster containting standard deviations of the input raster values. The raster
211+
always comes from band 1 and the size must match that of the input raster.
212+
213+
.. option:: --maybe-visible-value <value>
214+
215+
Pixel value to set for visible areas. (Not supported in cumulative mode) Default: 255
216+
206217

207218
Standard Options
208219
----------------

0 commit comments

Comments
 (0)