Skip to main content
Solved

Resampling a raster using the minimum value


olivier
Contributor
Forum|alt.badge.img+7

Hi,

 

I make an attempt at removing the effects of building heights on a DSM (Digital Surface Model) in order to obtain a result looking more like a DTM (Digital Terrain Model), in other words something closer to the bare soil elevation. My thought was to use a RasterResampler transformer and define a cell size a bit larger than the buildings, and also assigning the minimum elevation value to the new pixel. However I don't see a minimum value method for RasterResampler. I looked at the RasterConvolver but there is no way to define the kernel size in terms of distance instead of pixels. Correct me if I'm wrong. In other words I need to find the minimum over a great number of neighboring pixels (much more than the traditional kernel sizes).

How would you achieve such a raster operation using FME Desktop?

 

Thanks in advance!

 

Best regards,

Olivier

Best answer by caracadrian

I recommend transforming your raster to pointcloud via PointCloudCombiner, classify the ground via LAStools.lasground (from the FMEHub), then recreate your raster from the filtered data if you need to.

View original
Did this help you find an answer to your question?

5 replies

caracadrian
Contributor
Forum|alt.badge.img+23
  • Contributor
  • Best Answer
  • April 27, 2021

I recommend transforming your raster to pointcloud via PointCloudCombiner, classify the ground via LAStools.lasground (from the FMEHub), then recreate your raster from the filtered data if you need to.


virtualcitymatt
Celebrity
Forum|alt.badge.img+35
caracadrian wrote:

I recommend transforming your raster to pointcloud via PointCloudCombiner, classify the ground via LAStools.lasground (from the FMEHub), then recreate your raster from the filtered data if you need to.

Just keep in mind that lastools should be licensed unless for non-profit or educational purposes.


olivier
Contributor
Forum|alt.badge.img+7
  • Author
  • Contributor
  • April 27, 2021

Thank you @caracadrian​ !

Following your recommendation, I am now evaluating LAStools solution. I am trying to figure out why I am getting errors in the log when running the LAStools.lasground in the FME workspace:

ERROR: cannot alloc tile

ERROR: cannot get tile (3000/4363)

ERROR: cannot alloc LASrasterTile

 

I have of course transformed the GeoTiff raster DEM into a point cloud using the PointCloudCombiner and I also reprojected it to a coordinate system in meters before submitting it to the LAStools.lasground (pointing to the correct exe).

As LAStools is a tool which is not free, can you think of any alternative method?

 


caracadrian
Contributor
Forum|alt.badge.img+23
  • Contributor
  • April 27, 2021

LAStools is the simplest and most memory efficient way of processing this particular issue via FME.

To workaround your errors you should play with the transformer parameters (IE tile size, number of points).

An FME only solution would be using RasterSlopeCalculator, building buildings footprints polygons from a range of pixel slope values (maybe add a palette), clipping the raster by the buildings footprints (maybe add a buffer to them), creating a new DEM from the clipped raster with the holes filled with the minimum value of the surrounding area (the buffers come in handy here).

The memory usage of this workflow is greater then the LAStools one so use precaution on processing large DSM's.


olivier
Contributor
Forum|alt.badge.img+7
  • Author
  • Contributor
  • April 27, 2021
caracadrian wrote:

LAStools is the simplest and most memory efficient way of processing this particular issue via FME.

To workaround your errors you should play with the transformer parameters (IE tile size, number of points).

An FME only solution would be using RasterSlopeCalculator, building buildings footprints polygons from a range of pixel slope values (maybe add a palette), clipping the raster by the buildings footprints (maybe add a buffer to them), creating a new DEM from the clipped raster with the holes filled with the minimum value of the surrounding area (the buffers come in handy here).

The memory usage of this workflow is greater then the LAStools one so use precaution on processing large DSM's.

Yes I will play some more with LAStools parameters. I am new to 3D data but the tool seems promising when looking at what it leads to when using sample data. If it meets our requirements we will contact rapidlasso for buying a license. I also read it adds some noise to the evaluation results, so maybe results with the license will look even better.

The FME-only solution is a good B-plan. The trickiest part though is the extraction of building footprints. But I think we can do some magic there. Furthermore we have polygons of built-up areas, so removing these larger parts from the DEM is an option (quick and dirty), followed by refilling the holes with the neighboring values.


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings