Skip to main content

Viewshed analysis with FME

  • Dec 2, 2026 6:59 PM UTC
  • 2 replies
  • 13 views

dmitribagh
Safer
Forum|alt.badge.img+20

Hello everyone,

I just published RasterViewshedCalculator, a custom transformer for viewshed analysis.

Back in 2016, I built a workflow for this. It worked, but it was hard to set up and even harder to understand. I used point clouds for everything, including the visibility rays. During the process, the workflow had two-dimensional, one-dimensional, and even pointless point clouds (all for a good reason, I promise!). I rarely shared it or even used it myself.

Now it’s just a custom transformer. Send in a numeric elevation raster and your observer points, and you’ll get back a raster (or series of rasters for multiple observer points )showing which cells are visible.

I’ll talk about how I make my transformers these days at the Peak of Data and AI in London, but if you guessed AI was involved, you’re absolutely right.

Green shows the terrain visible from the observer, marked in yellow.

The animated GIF is over the 5 MB limit here. You can see how the viewshed changes as the observer gets taller in my LinkedIn post.

I rendered this right inside my demo workspace. I used 3DModelRenderer to render the frames with Blender and AnimatedGIFWriter to assemble them with ImageMagick. I made both custom transformers a while ago, and I have a feeling I’ll soon be replacing them with something that works without any extra installs. Stay tuned :)

Dmitri

2 replies

hkingsbury
Celebrity
Forum|alt.badge.img+73
  • Celebrity
  • Dec 2, 2026 7:14 PM UTC

I’m trying it out now as we speak! Will update we findings

 


hkingsbury
Celebrity
Forum|alt.badge.img+73
  • Celebrity
  • Dec 2, 2026 9:19 PM UTC

That's really cool thanks ​@dmitribagh.

Two possible ‘extensions’ I thought of (probably classified as ‘advanced’ use cases)

  1. Support for lines and polygons, with the ability to specify how dense the observer points are. For example, visibility of a forestry block or road cutting. You could do this manually by passing through multiple observer points then combining the outputs - but it would be cool to have one input and one output.
  2. For the output, have the option to output as it currently is, or just the visible areas, or just the non visible areas