Skip to main content
Solved

pointcloud to DSM based on Z

  • April 2, 2021
  • 3 replies
  • 173 views

koenvdw
Contributor
Forum|alt.badge.img+6

Hi

 

I want to make a DSM from a pointcloud.

I have used the rasterDEMgenerator and the imagerasterize.

 

They both work and I get a good result, but only visual. When I load the DSM in Qgis and start to sample it, I get the color codes or something instead of the height.

 

I can't seem to find a way to change that.

 

This is how I I would like it:

 

1This is the result I get with:

1a 

This is how I would like it:

2 

this is my result:

2a 

This is my workbench:3I did change the rasterinterpretationcoercer to gray8, so now I also get one band, but it's still not the height.

The imagerasterizer has only color or intensity as input component...

I think the rasterdemgenerator is based on the imagerasterizer I think so now I don't know if it's possible with one of these transformers.

 

I also tried to replace the intensity with the Z value, but that didn't work.

 

Does anybody know how to do it?

 

 

 

Best answer by takashi

Hi @koenvdw​ ,

According to the help, the RasterDEMGenerator should create a numeric raster with a single Real64 band always. I don't think you need to use RasterMosaicker and RasterInetepretationCoercer at all.

If you load the resulting raster with FME Data Inspector, how are its properties shown in the Feature Information window?

This post is closed to further activity.
It may be an old question, an answered question, an implemented idea, or a notification-only post.
Please check post dates before relying on any information in a question or answer.
For follow-up or related questions, please post a new question or idea.
If there is a genuine update to be made, please contact us and request that the post is reopened.

3 replies

takashi
Celebrity
  • Best Answer
  • April 4, 2021

Hi @koenvdw​ ,

According to the help, the RasterDEMGenerator should create a numeric raster with a single Real64 band always. I don't think you need to use RasterMosaicker and RasterInetepretationCoercer at all.

If you load the resulting raster with FME Data Inspector, how are its properties shown in the Feature Information window?


takashi
Celebrity
  • April 4, 2021

> I have used the rasterDEMgenerator and the imagerasterize.

 

Did you use the ImageRasterizer?​ The resulting raster created with the ImageRasterizer could be RGB or RGBA color image.

You can just use a RasterDEMGenerator to create a DMS raster. No need to any other transformers.


koenvdw
Contributor
Forum|alt.badge.img+6
  • Author
  • Contributor
  • April 7, 2021

Hi Takashi

 

Thanks for the help. I changed the workbench to this:

 

4 

You were right. There is no need to use other transformers.

 

I thought I tried this first and I didn't get the result I'm getting now. I cleared fme cache and rebooted pc. Now it works... Maybe I did something else wrong the first time.

 

The only thing is I'm getting a bit of noise around the wall's of buildings. Is there a way to clean that up?

 

Example:

5