Question

How to delete duplicates in LAS file

  • 30 January 2018
  • 2 replies
  • 8 views

Badge

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

Userlevel 2
Badge +17

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.

Badge

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