rockestate / point-cloud-processing

Point cloud processing slides
BSD 3-Clause "New" or "Revised" License
73 stars 41 forks source link

RuntimeError: call execute() before fetching arrays #5

Open AnindyaNaskar opened 4 years ago

AnindyaNaskar commented 4 years ago

While trying to execute below line:

arr = pipeline.arrays[0]

Getting below error:

RuntimeError                              Traceback (most recent call last)
<ipython-input-15-dfed5279fb56> in <module>
      1 # Load Pipeline output in python objects
----> 2 arr = pipeline.arrays[0]
      3 description = arr.dtype.descr
      4 cols = [col for col, __ in description]
      5 df = pd.DataFrame({col: arr[col] for col in cols})

c:\users\anindya\anaconda3\envs\dsm1\lib\site-packages\pdal\pipeline.py in get_arrays(self)
     43 
     44     def get_arrays(self):
---> 45         return self.p.arrays
     46     arrays = property(get_arrays)

pdal\libpdalpython.pyx in pdal.libpdalpython.PyPipeline.arrays.__get__ (pdal/libpdalpython.cpp:2352)()

RuntimeError: call execute() before fetching arrays
jmm688 commented 3 years ago

Hello,

Did you change the pipeline? I ran into this problem until followed the instructions in https://pdal.io/faq I ended up changing the plugin to something that my version of PDAL actually has.

type":"filters.hag"

to

type":"filters.hag_nn"

This worked for me!