Hi,
How to clip multiple shapefiles (139 shapefiles polygon) with lidar.las file??
First i try to clip one shapefiles (with many polygons including overlap polygon represent overlapping crown in dense tropical forest) and las files.
lasclip -i "c:\data\DSMheight.las" -poly "c:\data\TreePolygon.shp" -split -odir "c:\data" -o "lasclip.las"
ERROR: options '-split' and '-flag_as_withheld' cannot be combined
so i run this:
lasclip -i "c:\data\DSMheight.las" -poly "c:\data\TreePolygon.shp" -odir "c:\data" -o "lasclip.las"
ERROR: crossing constraint segments
ERROR: constraining 3 (199809.95/328833.39) to 4 (199810.37/328833.09) of polygon 26 with 36 points
i gave up and Im using the method to clip my shapefiles (polygon data) with Las file using batch file in FUSION software.
C:\FUSION\PolyClipData /multifile /shape:139,* C:\data\TreePolygon.shp C:\data\Plots.las C:\data\DSMheight.las
It works. It do the clip job.But because of the overlapping polygon, the process tend to missed around 17 tree plot data. So i split the polygon to become and individual polygon. So there is about 139 separated shapefiles represent one polygon. Im going to do analysis for individual tree so that's why an alternative for individual polygon is neccessary. But the things is i don't know how to write it in the batch file command to clip this 139 shapefiles data with one LAS file in one execution?
Please someone tell me that lastools can do this. What's with the error above??? Is it a bug?
Thanks,
Wan
Hi,
At the moment the best solution will be to split your shapefile and clip your data one by one.
lasclip -i c:\data\DSMheight.las -poly c:\data\TreePolygon1.shp -o c:\data \TreePolygon1.las
*
*until your last one
*
lasclip -i c:\data\DSMheight.las -poly c:\data\TreePolygon139.shp -o c:\data \TreePolygon139.las
Be patience… and you will get there.
The good thing of this script is that you don’t lost the name of the shapefile in the clipped LAS file.
Last comment…. Try to use LAZ.
Cheers
Susana
--
Download LAStools at
http://lastools.org
http://rapidlasso.com
Be social with LAStools at
http://facebook.com/LAStools
http://twitter.com/LAStools
http://linkedin.com/groups/LAStools-4408378
Manage your settings at
http://groups.google.com/group/lastools/subscribe
--