ossim-viewshed(1) ossim-viewshed


ossim-viewshed [,options/] ,<obs_lat> <obs_lon> <output-image>/


--dem <filename>
Specifies the input DEM filename. If none provided, the elevation database is referenced as specified in prefs file
Will disable the elevation
Takes an argument. Arguments are ALL, WARN, NOTICE, INFO, FATAL, DEBUG. If you want multiple disables then just do multiple --disable-notify on the command line. All argument are case insensitive. Default is all are enabled.
Will disable the plugin loader
--fov <start> <end>
Optional arguments specifying the field-of-view boundary azimuths (in degrees). By default, a 360 deg FOV is computed. The arc is taken clockwise from start to end, so for a FOV of 225 deg from W, through N to SE, start=270 and end=135
--gsd <meters>
Specifies output GSD in meters. Defaults to the same resolution as input DEM.
--hgt-of-eye <meters>
Specifies the observers height-of-eye above the terrain in meters. Defaults to 1.5 m.
--horizon <filename>
Experimental. Outputs the max elevation angles for all azimuths to <filename>, for horizon profiling.
--lut <filename>
Specifies the optional lookup table filename for mapping the single-band output image to an RGB. The LUT provided must be in the ossimIndexToRgbLutFilter format and must handle the three output viewshed values (see --values option).
takes a logfile as an argument. All output messages are redirected to the specified log file. By default there is no log file and all messages are enabled.
--radius <meters>
Specifies max visibility in meters. Required unless --size is specified. This option constrains output to a circle, similar to a radar display
Causes applications API to be output as JSON to stdout. Accepts optional filename to store JSON output.
--reticle <int>
Specifies the size of the reticle at the observerlocation in pixels from the center (i.e., the radius of the reticle). Defaults to 2. A value of 0 hides the reticle. See --values option for setting reticle color.
For engineering/debug purposes
--size <int>
Instead of a visibility radius, directly specifies the dimensions of the output product in pixels (output is square). Required unless --radius is specified.
Causes a product summary to be output to the console.
"Thread By Sector". For engineering/debug purposes
--threads <n>
Number of threads. Defaults to use all available cores. For engineering/debug purposes
--values <int int int>
Specifies the pixel values (0-255) for the visible, hidden and reticle pixels, respectively. Defaults to visible=null (0), hidden=128, and observer position reticle is highlighted with 255.
specify individual keywords to add to the preferences keyword list: name=value
specify a preference file to load
specify the classes to trace, ex: ossimInit|ossimImage.* will trace ossimInit and all ossimImage classes

Computes the viewshed for the given viewpt coordinates. The output is a binary image with 0 representing hidden points, and 1 representing visible points.


ossim-viewshed --radius 50
28.0 -80.5 output-hlz.tif
ossim-viewshed --size 1024
28.0 -80.5 output-hlz.tif

An alternate command line provides switch for observer lat and lon:

ossim-viewshed --rlz 25 --observer 28.0 -80.5