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.


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

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

4 replies

virtualcitymatt
Celebrity
Forum|alt.badge.img+34
  • Celebrity
  • 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
  • October 21, 2020
virtualcitymatt wrote:

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+34
devs_ wrote:

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
  • October 21, 2020
devs_ wrote:

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


Reply


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