GDAL_VIEWSHED(1) GDAL GDAL_VIEWSHED(1) (NAME) gdal_viewshed - (viewshed) DEM (SYNOPSIS) Usage: gdal_viewshed [--help] [--long-usage] [--help-general] [-of ] [-ox ] [-oy ] [-oz ] [-vv ] [-iv ] [-ov ] [-co =]... [-a_nodata ] [-tz ] [-md ] [-j ] [-cc ] [-b ] [-om NORMAL|DEM|GROUND|ACCUM] [-os ] [-sd ] [--quiet] (DESCRIPTION) gdal_viewshed () (DEM) . Byte . -mode Float64 . : (georeferencing) (projected coordinate reference system) . : "gdal": gdal raster viewshed . --help --help-general GDAL . -q, --quiet . -co = . GeoTIFF (tiled) . . --format . Raster drivers . -b band DEM. 1 . . . -a_nodata (nodata) . : nodata ( ). -ox X ( SRS). . ( .) -oy Y ( SRS). . ( .) -oz DEM DEM. : 2 -tz DEM DEM. : 0 -md . (extent) . ( ) -cc . ( ) . : (Refraction Coefficient) (Curvature Coefficient) (Sphere Diameter Factor). gdal_viewshed (Curvature Coefficient) . {CurvCoeff}=1-{RefractionCoeff} () . : {SphereDiameterFactor}=1/{CurvCoeff}=1/(1-{RefractionCoeff}) 1/7 . ( GDAL 3.4 ) CurvCoeff gdal_viewshed CRS 0.85714 (~= 1-1/7) . GDAL 3.6 CRS ( WGS 84 ) CurvCoeff 1.0 . DEM : Height_{Corrected}=Height_{DEM}-{CurvCoeff}\frac{{TargetDistance}^2}{SphereDiameter} ( Curvature Coeff cc ): +----------------------+--------------+-----------------+----------------+ | | | | | | | | | | | | | | | +----------------------+--------------+-----------------+----------------+ | | 0 | 1 | 1 | | | | | | +----------------------+--------------+-----------------+----------------+ | | 1/7 | 6/7 (=~0.85714) | 7/6 (=~1.1666) | | | | | | +----------------------+--------------+-----------------+----------------+ | | 0.25 ~ 0.325 | 0.75 ~ 0.675 | 1.33 ~ 1.48 | | | | | | +----------------------+--------------+-----------------+----------------+ | | 1 | 0 | inf | | | | | | +----------------------+--------------+-----------------+----------------+ -iv . ( ) : 0 -ov . ( ) : 0 -vv . ( ) : 255 -om . : NORMAL DEM GROUND ACCUM NORMAL Byte . DEM GROUND Float64 DEM . h E DEM E + h . ground h . -tz -iv -vv . (ACCUM) . -os . NORMAL -os ( ) : 10 -j . ( ) : 3 (RETURN STATUS CODE) 0 ( ). C (C API) C GDALViewshedGenerate() . (EXAMPLES) ( ) . [image] (-10147017, 5108065) : gdal_viewshed -md 500 -ox -10147017 -oy 5108065 source.tif destination.tif (REFERENCES) [Wang2000] Generating Viewsheds without Using Sightlines. Wang, Jianjun, Robinson, Gary J., and White, Kevin. Photogrammetric Engineering and Remote Sensing. p81. https://www.asprs.org/wp-content/uploads/pers/2000journal/january/2000_jan_87-90.pdf (AUTHOR) Tamas Szekeres (COPYRIGHT) 1998-2026 August 18, 2026 GDAL_VIEWSHED(1)