I am trying to learn LASPY and am following a tutorial (http://laspy.readthedocs.io/en/latest/tut_part_1.html). I got an error when starting up using:
import laspy
infile = laspy.file.File("./laspytest/data/simple.las", mode="r")
where I got a storage error:
LaspyException: Error mapping file: [Error 8] Not enough storage is available to process this command
To try and get around this I tried FUSION's polyclipdata routine to parse the LAS file into 4 parcels:
command = 'polyclipdata /multifile ' + temp + '\\pointfile2.shp ' + temp + '\\pointfile3.shp {}'.format(in_las_file)
process = subprocess.Popen(command, stdout=subprocess.PIPE, stderr=subprocess.PIPE, shell=True)
(stdoutdata, stderrdata) = process.communicate()
if stderrdata:
print stderrdata
When I try and work with LASPY again, I get the following error:
ValueError: buffer size must be a multiple of element size
I thought that this was a LASPY error and created a question to resolve it, however, after testing "clean" data, LASPY was determined to not be the problem (laspy ValueError: buffer size must be a multiple of element size).
Why is FUSION's polyclipdata not producing a usable product?