Skip to main content
Solved

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

  • June 12, 2019
  • 4 replies
  • 66 views

bobo
Contributor
Forum|alt.badge.img+3
  • Contributor
  • 46 replies
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.

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

erik_jan
Contributor
Forum|alt.badge.img+22
  • Contributor
  • 2179 replies
  • 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
Safer
Forum|alt.badge.img+20
  • Safer
  • 3719 replies
  • June 13, 2019

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


bobo
Contributor
Forum|alt.badge.img+3
  • Author
  • Contributor
  • 46 replies
  • June 13, 2019

@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?


bobo
Contributor
Forum|alt.badge.img+3
  • Author
  • Contributor
  • 46 replies
  • June 13, 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.

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