Hi Guilherme,
it's done - here's a test release of lasclip.
The output is not really binary identical to your sample -
I hope you did some more during processing the files.
Otherwise please tell whats wrong with my output.
What lasclip is now able to do now:
The program keeps open all files and just append to the suitable file.
This is very performant. On the other hand: If you have more than
many 1000 shapes (~10k) your operating sytem may can't handle
all the file handles anymore. This is the only limitation.
I extended the very-verbose output, so we can do more transparent tests.
Using -vv option on your sample
lasclip -i .\input\*.laz -merged -poly SPLIT_TEST_clip.shp -split PC -olaz -odir out -vv
produces an output like this:
WARNING: first file is a buffered tile. maybe remove buffers first?
open merged input file [.\input\NP_7757000_650000.laz...] containing 8 files
creating first clip polygon took 0.004 sec.
define split filename [PC_7760-650_FP-041] by attrib name.
** create output file [out\PC_7760-650_FP-041.laz]
removed points 16568 (244). outputting 429 points took 0.008 sec.
creating clip polygon 1 took 0.001 sec.
define split filename [PC_7760-651_FP-041] by attrib name.
** create output file [out\PC_7760-651_FP-041.laz]
removed points 16948 (51). outputting 49 points took 0.004 sec.
creating clip polygon 2 took 0 sec.
define split filename [PC_7759-649_FP-041] by attrib name.
** create output file [out\PC_7759-649_FP-041.laz]
removed points 16889 (53). outputting 108 points took 0.005 sec.
creating clip polygon 3 took 0 sec.
define split filename [PC_7759-649_FP-041] by attrib name.
++ append output file [out\PC_7759-649_FP-041.laz]
removed points 16777 (31). outputting 220 points took 0.005 sec.
creating clip polygon 4 took 0.001 sec.
define split filename [PC_7759-650_FP-041] by attrib name.
** create output file [out\PC_7759-650_FP-041.laz]
removed points 16963 (14). outputting 34 points took 0.019 sec.
creating clip polygon 5 took 0.003 sec.
define split filename [PC_7759-650_FP-041] by attrib name.
++ append output file [out\PC_7759-650_FP-041.laz]
removed points 9168 (1680). outputting 7829 points took 0.057 sec.
creating clip polygon 6 took 0.001 sec.
define split filename [PC_7759-651_FP-041] by attrib name.
** create output file [out\PC_7759-651_FP-041.laz]
removed points 16995 (1). outputting 2 points took 0.007 sec.
creating clip polygon 7 took 0 sec.
define split filename [PC_7759-651_FP-041] by attrib name.
++ append output file [out\PC_7759-651_FP-041.laz]
removed points 16990 (5). outputting 7 points took 0.004 sec.
creating clip polygon 8 took 0.001 sec.
define split filename [PC_7759-651_FP-041] by attrib name.
++ append output file [out\PC_7759-651_FP-041.laz]
removed points 16638 (232). outputting 359 points took 0.008 sec.
creating clip polygon 9 took 0.002 sec.
define split filename [PC_7758-650_FP-041] by attrib name.
** create output file [out\PC_7758-650_FP-041.laz]
removed points 15324 (1077). outputting 1673 points took 0.02 sec.
done with 'out\PC_7758-650_FP-041.laz'. total time 0.159 sec.
closing 6 writers
file 'out\PC_7760-650_FP-041.laz' used 1 times
file 'out\PC_7760-651_FP-041.laz' used 1 times
file 'out\PC_7759-649_FP-041.laz' used 2 times
file 'out\PC_7759-650_FP-041.laz' used 2 times
file 'out\PC_7759-651_FP-041.laz' used 3 times
file 'out\PC_7758-650_FP-041.laz' used 1 times
destroy TIN
destroy point buffers
close reader
Everyone is welcome to test this release.
Best regards,
Jochen