Skip to main content

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

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.


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