Skip to main content
Question

How to delete duplicates in LAS file


Forum|alt.badge.img

Hi all,

I have a LAS file containing duplicated points (same time, same X, same Y, same Z...). I want to remove duplicates and keep only one point.

What is the best way to do this?

Thanks

2 replies

takashi
Contributor
Forum|alt.badge.img+21
  • Contributor
  • January 31, 2018

Hi @arka, a possible way I can think of is:

  1. PointCloudCoercer: Convert the point cloud to individual points with preserving all the required components (including posix_time) as attributes.
  2. CoordinateExtractor: Extract x, y, and z coordinates of the points.
  3. DuplicateFilter: Filter out duplicate points on x, y, z, and posix_time.
  4. PointCloudCombiner: Rebuild a point cloud from the points.

Optionally you can sort the original point cloud by x, y, z, and posix_time with the PointCloudSorter at first and set "Yes" to the "Input is Ordered" parameter in the DuplicateFilter, so that the efficiency could be increased a little.

However, just be aware that the PointCloudCoercer is not so efficient process. It could take a long time if the size of the source point cloud was large.

Even though the method above is inefficient, I cannot think of a better solution in the current FME framework.


Forum|alt.badge.img
  • Author
  • February 2, 2018

Hi @takashi, thank you for your help.This solution works.

I only have a problem with the header (the resolution change...) but it is not a big problem.


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