[pdal] Bad allocation error

Krasovec, Nina Nina.Krasovec at zi-mannheim.de
Wed Jun 22 04:50:07 PDT 2022


Hello everyone,

I would like to assign a value from polygons (stored in a column "class") to a Classification attribute in a point cloud. Both, point cloud and geopackage are split into tiles, which means that the point clouds usually contain ~15 million points and geopackages contain ~35,000 polygons or less. I tried to process multiple point clouds and one of them worked, while the other ones always throw an error "PDAL: bad allocation". All the files have approximately the same size and I also tested it with a lot smaller area and smaller gpkg and it still did not work. The only thing that worked was splitting geopackages to very small files. The LAZ file that was successfully processed used around 15 GB of RAM, while the other files went up to 256 GB and it still wasn't sufficient. Do you have a suggestion what could be the reason for such an enormous use of memory?
Here is an example of a pipeline:

[
      {
            "type":"readers.las",
            "use_eb_vlr":"true",
            "filename":"D:/User/Nina/460000_5477000.laz"
      },
    {
        "type":"filters.overlay",
        "dimension":"Classification",
        "datasource":" D:/User/Nina/460000_5477000.gpkg",
            "column": "class",
            "where": "Classification == 8"
    },
      {
        "type":"writers.las",
            "compression": "true",
            "a_srs": "EPSG:25832",
            "extra_dims":"all",
        "filename":" D:/User/Nina/460000_5477000.laz"
    }
]

Thank you and best regards,
Nina

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/pdal/attachments/20220622/b8c56a91/attachment.htm>


More information about the pdal mailing list