Skip to main content
Solved

How to use NeighborFinder when pointcloud(*.las) is Candidate?


Hi, I've a got point layer in shp format and a pointcloud file in las format and I'd like to find the nearest point in the las file for every point in shp file. I tried to use PointCloudCoercer to change las file into mutipoint, but z value of points won't be merged. Then I tried to change las file into individual points, but it was too slow, I got thousands of las files and each of them contains over 1 million points.

Can anyone provide a right and fast solution to this matter? Thank you!

@takashi @jdh @danatsafe @mark2atsafe

Best answer by erik_jan

If you have a limited amount of points in the shape file, you could buffer them using a Bufferer and then clip the pointcloud using the Clipper.

This will limit the pointcloud data to only use those points near a shape point.

Then use your approach with the PointCloudCoercer and NeighborFinder to find the exact closest point.

Hope this helps.

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

4 replies

erik_jan
Contributor
Forum|alt.badge.img+17
  • Contributor
  • Best Answer
  • June 12, 2019

If you have a limited amount of points in the shape file, you could buffer them using a Bufferer and then clip the pointcloud using the Clipper.

This will limit the pointcloud data to only use those points near a shape point.

Then use your approach with the PointCloudCoercer and NeighborFinder to find the exact closest point.

Hope this helps.


fmelizard
Contributor
Forum|alt.badge.img+17
  • Contributor
  • June 13, 2019

@bobo Keep in mind that the NeighborFinder returns distances in only 2D.


  • Author
  • June 13, 2019
fmelizard wrote:

@bobo Keep in mind that the NeighborFinder returns distances in only 2D.

Yeah, the points in the shp file are 2D, I only need to find the nearest point in the las file at projection position. But since you brought it up, is there a transformer could perform like NeighborFinder in 3D?


  • Author
  • June 13, 2019
erik_jan wrote:

If you have a limited amount of points in the shape file, you could buffer them using a Bufferer and then clip the pointcloud using the Clipper.

This will limit the pointcloud data to only use those points near a shape point.

Then use your approach with the PointCloudCoercer and NeighborFinder to find the exact closest point.

Hope this helps.

Thank you, got it work. How silly am I, I thought that Clipper can only used for vector or raster files.


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