bobbysmob...@gmail.com
unread,Mar 15, 2023, 3:00:42 AM3/15/23Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Sign in to report message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to LAStools - efficient tools for LiDAR processing
Jochen,
I need to clip out classes 4 and 5 that reside within a polygon SHP. I have a SHP containing ~120K polygons to work through.
My command is:
C:\LAStools\bin\lasclip64 -v -i *.laz -merged -poly G:\DATA_FOR_PROCESSING\C6_AOI.shp -split RAND -keep_class 4 5 -odir %DELIVERY_DIRECTORY%\STEP-6_SPECIFIC_CLASSES\VEG_INSIDE_BLDG -olaz
Version of LAStools was downloaded on January 24, 2023.
The clip operation works fine until clip polygon 507 is encountered, then the script crashes, see below.
.
.
.
creating clip polygon 501 took 0.001 sec.
** create output file [X:\Projects_2022\AREA_GG\20230310_DEL1\STEP-6_SPECIFIC_CLASSES\VEG_INSIDE_BLDG\7482020.laz]
removed points 56970911667 (445). outputting 57 points took 0.177 sec.
creating clip polygon 502 took 0.001 sec.
** create output file [X:\Projects_2022\AREA_GG\20230310_DEL1\STEP-6_SPECIFIC_CLASSES\VEG_INSIDE_BLDG\139277.laz]
removed points 56970911573 (273). outputting 151 points took 0.17 sec.
creating clip polygon 503 took 0.001 sec.
** create output file [X:\Projects_2022\AREA_GG\20230310_DEL1\STEP-6_SPECIFIC_CLASSES\VEG_INSIDE_BLDG\4527452.laz]
removed points 56970911724 (41). outputting 0 points took 0.388 sec.
creating clip polygon 504 took 0.002 sec.
** create output file [X:\Projects_2022\AREA_GG\20230310_DEL1\STEP-6_SPECIFIC_CLASSES\VEG_INSIDE_BLDG\4963274.laz]
removed points 56970911690 (138). outputting 34 points took 0.163 sec.
creating clip polygon 505 took 0.001 sec.
** create output file [X:\Projects_2022\AREA_GG\20230310_DEL1\STEP-6_SPECIFIC_CLASSES\VEG_INSIDE_BLDG\8412267.laz]
removed points 56970911722 (219). outputting 2 points took 0.176 sec.
creating clip polygon 506 took 0.002 sec.
** create output file [X:\Projects_2022\AREA_GG\20230310_DEL1\STEP-6_SPECIFIC_CLASSES\VEG_INSIDE_BLDG\9059566.laz]
ERROR: cannot open file '755255.laz' for read
ERROR: cannot open file '755255.laz' for read
ERROR: could not open lasreaderlas for file '755255.laz'
removed points 56970911724 (0). outputting 0 points took 0.062 sec.
creating clip polygon 507 took 0.002 sec.
** create output file [X:\Projects_2022\AREA_GG\20230310_DEL1\STEP-6_SPECIFIC_CLASSES\VEG_INSIDE_BLDG\8671774.laz]
ERROR: cannot open file 'X:\Projects_2022\AREA_GG\20230310_DEL1\STEP-6_SPECIFIC_CLASSES\VEG_INSIDE_BLDG\8671774.laz' for write
ERROR: cannot open file 'X:\Projects_2022\AREA_GG\20230310_DEL1\STEP-6_SPECIFIC_CLASSES\VEG_INSIDE_BLDG\8671774.laz' for write
ERROR: cannot open laswriterlas with file name 'X:\Projects_2022\AREA_GG\20230310_DEL1\STEP-6_SPECIFIC_CLASSES\VEG_INSIDE_BLDG\8671774.laz'
ERROR: could not open laswriter
The issue is not tile 755255.laz. I have rearranged the order of the polygons processed by manipulating the order of the polygons encountered via the SHP attribute (i.e. RAND).
The script fails once it reaches clip polygon 507 every time, regardless of the tile being processed.
Interested in our thoughts regarding this issue.
Thank you,
Bobby