PDAL / python

PDAL's Python Support
Other
115 stars 34 forks source link

Does pdal.Filter.crop only accept strings? #131

Closed philwilkes closed 1 year ago

philwilkes commented 1 year ago

Is the only way to use pdal.Filter.crop to pass strings?

pdal.Filter.crop(bounds="([0, 0], [1, 1])")

I have tried

pdal.Filter.crop(bounds=([0, 0], [1, 1]))

and get the error

RuntimeError: JSON pipeline: Invalid value type for option list 'bounds'.

Is there another way without string formatting.

Many thanks.

hobu commented 1 year ago

Is there another way without string formatting.

There is not because not all options to filters are valid JSON.