Skip to main content
Solved

There is a single bug I am not able to solve. This bug arises when working with Point clouds and Raster overlays. I was wondering if there was a method for the Point cloud to add the raster cell values to the z component instead of rewriting them.

  • October 20, 2020
  • 4 replies
  • 15 views

Picture 1There is a single bug I am not able to solve since well over two days. This bug arises when working with Point clouds and Raster overlays. Below is Picture 1 showing a point cloud of the buildings of an area. Picture 2 is the same area of focus after setting a PointCloudOnRasterComponentSetter. The Transformer resets all of the z points and replaces them with the value on the Raster file. When I disallow overwrite, the z values are not altered at all. 

 

 

1. Building Point cloud

Picture 22. Point cloud with raster overlay

I was wondering if there was a method for the Point cloud to add the raster cell values to the z component instead of rewriting them. Any help would be greatly appreciated.

 

 

Best answer by virtualcitymatt

You can rename (or copy) the z component (to something like _z) before performing the overlay. After the overlay you can then Add the _z to the z to give you the result you want.

Tools you want to use are the PintCloudComponentCopier and PointCloudComponentAdder

 

EDIT - PointCloudExpressionEvaluator should be used - not the PointCloudComponentAdder

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.

4 replies

virtualcitymatt
Celebrity
Forum|alt.badge.img+47
  • Celebrity
  • 2000 replies
  • Best Answer
  • October 20, 2020

You can rename (or copy) the z component (to something like _z) before performing the overlay. After the overlay you can then Add the _z to the z to give you the result you want.

Tools you want to use are the PintCloudComponentCopier and PointCloudComponentAdder

 

EDIT - PointCloudExpressionEvaluator should be used - not the PointCloudComponentAdder


  • Author
  • 2 replies
  • October 21, 2020

You can rename (or copy) the z component (to something like _z) before performing the overlay. After the overlay you can then Add the _z to the z to give you the result you want.

Tools you want to use are the PintCloudComponentCopier and PointCloudComponentAdder

 

EDIT - PointCloudExpressionEvaluator should be used - not the PointCloudComponentAdder

Well I first renamed existing z component to _z and overlay to normal_z. Last, I added a Point cloud component adder with z component value as @Component(_z)+@Component(normal_z). No matter what type I used, this kept showing an error that the "+" is not viable for this type.


virtualcitymatt
Celebrity
Forum|alt.badge.img+47
  • Celebrity
  • 2000 replies
  • October 21, 2020

Well I first renamed existing z component to _z and overlay to normal_z. Last, I added a Point cloud component adder with z component value as @Component(_z)+@Component(normal_z). No matter what type I used, this kept showing an error that the "+" is not viable for this type.

Ok I think the PointCloudComponentAdder is not right - I was wrong there. Try using the PointCloudExporessionEvaluator instead


  • Author
  • 2 replies
  • October 21, 2020

Well I first renamed existing z component to _z and overlay to normal_z. Last, I added a Point cloud component adder with z component value as @Component(_z)+@Component(normal_z). No matter what type I used, this kept showing an error that the "+" is not viable for this type.

It worked beautifully. Thank you so much