lasthin: cannot realloc point_buffer error

47 views
Skip to first unread message

Tom Gostlow

unread,
Mar 8, 2018, 8:09:00 AM3/8/18
to LAStools - efficient tools for LiDAR processing
Hello,

I've been attempting to flag key points using only class 2 and 13 in a data set of las using lasthin.exe but get the error "cannot realloc point_buffer from [x] down to 0 points".

The [x] value obviously changes with each different file where the process fail.

There is another topic here with a similar error in relation to using shp files classify buildings in the las. Martin Isenburg explains that it was errors due to the process hitting the 2GB memory limit of 32bit versions of the software and so smaller subsets of the shp files were used which solved the problems.

https://groups.google.com/forum/#!msg/lastools/msjl37YBxns/SBYTtRp6AwAJ

In an attempt to reduce memory usage I tiled the las data down from 1km tiles to 500m tiles but hasn't appeared to make any difference. The process is failing at random file sizes. It successfully processed files in the +200mb size but fails on others as well as some down as small as +20mb.

The command I'm using is below;

lasthin -lof file_list.8056.txt -ignore_class 0 1 7 9 10 14 16 17 18 -step 10 -adaptive 0.25 -flag_as_keypoint -odir "D:\S - LADS Survey\2017\1630 (PR105466) - NSW Coastal ALB -Recce\NSW_LAS_DELIVERY_INVESTIGATION\01_Final_Merged_Data\Riegl_sensor\jd2017_313\03_RDN2008-TM32_KeyPoints" -odix "_KP" -olas

I could include header info for the files which have failed, but seeing as it isn't affected by file size or point count and all files including the sucessful ones have come from the same source I'm not sure how the header would help.

Any info or hint would be great,

Thanks

Tom


Martin Isenburg

unread,
Mar 10, 2018, 12:38:07 PM3/10/18
to LAStools - efficient command line tools for LIDAR processing
Hello,

my first guess would be that the particular files that fail have zero points with classification 2 and 13. And - indeed - I can recreate this error:

C:\LAStools\bin>lasthin -i ..\data\fusa.laz -ignore_class 1 2 5 6 -step 10 -adaptive 0.25 -flag_as_keypoint -odix _nopoints -olaz
ERROR: cannot realloc point_buffer from 277573 down to 0 points.
       contact martin....@rapidlasso.com for help on what to do.

How would you like this situation to be handled? Should those files be skipped (-> produce no output) or be copied (-> without modification)?

Regards.

Martin @rapidlasso

Reply all
Reply to author
Forward
0 new messages