Re: lasduplicate => abnormal program termination

63 views
Skip to first unread message

Martin Isenburg

unread,
Apr 18, 2013, 10:56:06 PM4/18/13
to LAStools - efficient tools for LiDAR processing
Hello Ben and all,

in the original off-line tech support message Ben sent along the
lasinfo report on that particular LAZ file (remember to always do so
when reporting errors to make it to give us at least some idea about
your input file). It contained about 160 million points which
overwhelms lasduplicate (at least in '-unique_xyz' mode). But the
program should certainly exit a bit more graceful ... (-:

To today's 130418 release of LAStools (which fixes another TIF writer
bug) I have added a batch script called
"delete_duplicates_in_huge_las_file.bat" into the example_batch_script
directory.

Regards,

Martin @rapidlasso

========================================

::
:: an example batch script for removing xyz duplicate
:: points in a single huge LAS/LAZ file
::

echo off

set PATH=%PATH%;C:\lastools\bin;

:: create temporary tile directory

mkdir temp_tiles

:: create a temporary, reversible tiling with tile size 500

lastile -i %1 ^
-reversible -tile_size 500 ^
-o temp_tiles\tile.laz -olaz

:: create another temporary tile directory

mkdir temp_tiles_duplicate

:: remove unique xyz duplicates in all temporary
:: tiles on 3 cores

lasduplicate -i temp_tiles\tile*.laz ^
-unique_xyz ^
-odir temp_tiles_duplicate -olaz ^
-cores 3

:: delete temporary tile directory

rmdir temp_tiles /s /q

:: recreate huge LAS / LAZ file without duplicates

lastile -i temp_tiles_duplicate\tile*.laz ^
-reverse_tiling ^
-o %1 -odix _no_dup

:: delete other temporary tile directory

rmdir temp_tiles_duplicate /s /q

========================================

On Apr 18, 2:39 am, Ben <benjamin.hal...@panolife.de> wrote:
> Hi Martin,
>
> got another one for you:
>
> C:\Program Files (x86)\lastools\bin>lasduplicate.exe -i
> F:\data\Teil3\mergedRaw_009.laz -unique_xyz -o F:\data\Teil3\merged_009.laz
>
> abnormal program termination
Reply all
Reply to author
Forward
0 new messages