Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am looking to perform a simple (one observer location) viewshed analysis on a standard DEM using GDAL (either python or .NET bindings).

I have searched, but haven't found any readily available implementation. Can anyone point me in the right direction?

share|improve this question
Is GRASS an acceptable candidate for your solution? It typically includes tools for these things: r.los and r.viewshed – Peter Smith Jul 12 '12 at 21:45
up vote 5 down vote accepted

I've used python scripts to run both the r.los and r.viewshed grass commands that Peter mentioned.

The advantage with r.los is that it works straight out-of-the-box with grass6, but is slightly slower to run over large raster DEMs. r.viewshed is a bit of a pain to get running, but is a vast speed improvement on very large rasters. See if the times for your DEM are acceptable using r.los, then give r.viewshed a go if it's taking too long. Here's a quick python example using grass64 r.viewshed, but you'll need to get the python grass bindings working first (see

import grass.script as grass

        coordinate=[observer_x, observer_y],

with a better description of the parameters available at

share|improve this answer

There is also SAGA-GIS which provides visibility analysis. It has Python bindings.

share|improve this answer

There is also a QGIS plugin that does this. I can not remember the name of the plugin at the moment, it works, but I find it a little slow.

share|improve this answer
It's been a while since you sort of answered this question without a real answer? Do you have an update or maybe just delete the answer? – RyanDalton Dec 5 '12 at 6:54
Thank you for the reminder Ryan, and sorry for forgetting. Here is a link to a description about the plugin. I did a search for the plugin in for QGIS 1.8.0 and it is not coming up in the Plugin Search.… – Ryan Garnett Dec 5 '12 at 19:56
Here is another description of the plugin… – Ryan Garnett Dec 5 '12 at 19:56

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.