1

I have ground LiDAR point cloud with some noise points. I would like to use filter.statistics in PDAL (in Python 3.6) using JSON pipeline to filter the noise out.

json = """
{
  "pipeline":[
    "/9A-1B_subset15m.las",
    {
      "type":"filters.outlier",
      "method":"statistical",
      "mean_k":12,
      "multiplier":2.2
    },
    "/9A-1B_subset15m_c.las"
  ]
} """ 

import pdal
pipeline = pdal.Pipeline(json)
pipeline.validate() 

The code runs without error but doesn't create any file. I wonder if anyone can help solving this?

  • 1
    Thanks @AndreSilva, the same problem. The code is running, but no output file. – Sher Jun 20 '18 at 4:00
  • I am using OSGeo Shell (pdal.io/workshop/osgeo4w.html) to run pdal and pipeline without problem. But, I am curious about why I cannot run the code above in Python. – Sher Jun 20 '18 at 4:16
  • @AndreSilva, PDAL 1.7.2 version – Sher Jun 21 '18 at 2:33
  • That absolute path is unlikely to work in windows. – Howard Butler Jun 21 '18 at 3:07
  • 1
    PDAL uses the path given to try to open the file. There is no / path on windows AFAIK (which is where the pipeline tries to both read and write). – Howard Butler Jun 21 '18 at 16:05
1

I got answer here. After adding pipeline.execute(), now the code is running and creating exactly the same output as original one (not filtering out the noise). As this code is for airborne lidar, now I think I need to try different parameters to make a code remove the noise in ground lidar.

  • You can accept your own answer with the checkbox – BERA Sep 6 '18 at 5:37

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.