Skip to main content
Question

How to delete duplicates in LAS file

  • January 30, 2018
  • 2 replies
  • 68 views

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

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.

2 replies

takashi
Celebrity
  • 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.