Closed norrila closed 2 years ago
pipeline = pdal.Reader("D:\input.las" | pdal.Filter.hag_delaunay)
This should be:
pipeline = pdal.Reader("D:\input.las") | pdal.Filter.hag_delaunay()
What is the naming convention for any filters that have an underscore in the name such as all the filters in the height above ground category?
It's identical, underscores are preserved. By the way you can experiment interactively in a Jupyter notebook or IPython shell, just hit tab
after pdal.Filter.hag
and you'll get an dropdown list of all filters with this prefix.
Also, is there a description/list of the syntax for all the PDAL functions? for example in the PDAL documentation its filters.sort while in PDAL Python its Filter.sort.
The mapping is straightforward:
readers.$FOO
-> pdal.Reader.$FOO
filters.$FOO
-> pdal.Filter.$FOO
writers.$FOO
-> pdal.Writer.$FOO
Thank you so much for the quick reply and detailed answer!!
The solution worked as expected and the examples cleared some other issues I was having (such as the proper use of pdal.Filter.hag_delaunay()
instead of pdal.Filter.hag_delaunay
which I was trying.
I am new to Python, so the Jupyter tips are really appreciated.
I am trying to use this Python code to do a hag delaunay filter:
But I get the following error I get in console:
TypeError: unsupported operand type(s) for |: 'str' and 'function'
I have no issues when using:
So I assume its the
pdal.Filter.hag_delaunay
that is causing issues.What is the naming convention for any filters that have an underscore in the name such as all the filters in the height above ground category? https://pdal.io/stages/filters.html#height-above-ground
Also, is there a description/list of the syntax for all the PDAL functions? for example in the PDAL documentation its
filters.sort
while in PDAL Python itsFilter.sort
. I find this difference in syntax really difficult to know the exact syntax for a function.