Hi,
I will extend a bit Martin's response, at least the part about our
work
The script in
https://github.com/NLeSC/pointcloud-benchmark/blob/master/python/pointcloud/lidaroverview.py
will create a postgres database with the extents of all the LAS/LAZ
files in a folder and can do that in parallel (python
multiprocessing)
Once the DB has been created and filled you need to run a small file
selector before using the LAStools. For example in python:
# Get the list of files that overlap the query region
query = 'SELECT filepath FROM lasextent,query_table where
ST_Intersects(query_table.geom,lasextent.geom ) and
query_table.id =
1'
precommand1 = 'psql mydb -t -A -c "' + query + '" > list1'
os.system(precommand1)
# For lasclip we need a shapefile, so we convert the postgis
geometry into a shapefile with pgsql2shp (provided by postgis)
query = "select ST_SetSRID(geom,28992) from query_table where id =
1;"
precommand2 = 'pgsql2shp -f 1.shp mydb "' + query + '"'
os.system(precommand2)
# You can finally run lassclip after you have the list of files and
the shaefile
command = 'lasclip.exe -lof list1 -poly 1.shp ' + zquery
os.system(command)
BTW, note that case I have my query
regions in a table
BTW2, highly recommended to run lassort and lasindex before you do
any query
Regards,
O.