[pdal] Corrupt file for empty PointView?

Peder Axensten Peder.Axensten at slu.se
Thu Dec 10 04:40:32 PST 2020


Hej,

I am rewriting my filtering tools into pdal filters. On the whole it works ok, but if I have files where all points are “removed” by the filter, the resulting [empty] file is corrupt. All other cases seem to work as expected. Is this a known issue? Do I need to handle empty files in a specific way in pdal?

In my original filtering tools I used liblas for reading/writing the files and I did have to save empty point clouds in a specific way or they would be corrupt. It was not difficult, mainly I had to specify the header information – setting all bounding box coordinates to zero, for example.

A real life case would be a scan of water and a filter that do not let points classified as water pass. When processing very large areas divided into tens of thousands of files, such cases occur and it is not feasible to handle them all by hand.

Best regards,

Peder Axensten
Research engineer

Remote Sensing
Department of Forest Resource Management
Swedish University of Agricultural Sciences
SE-901 83 Umeå
Visiting address: Skogsmarksgränd
Phone: +46 90 786 85 00
peder.axensten at slu.se, www.slu.se/srh

The Department of Forest Resource Management is environmentally certified in accordance with ISO 14001.

---
När du skickar e-post till SLU så innebär detta att SLU behandlar dina personuppgifter. För att läsa mer om hur detta går till, klicka här <https://www.slu.se/om-slu/kontakta-slu/personuppgifter/>
E-mailing SLU will result in SLU processing your personal data. For more information on how this is done, click here <https://www.slu.se/en/about-slu/contact-slu/personal-data/>


More information about the pdal mailing list