Skip to main content

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.

 

 

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


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.


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


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