@@ -165,28 +165,27 @@ namespace pdal {
165165
166166 class Pipeline {
167167 public:
168- point_count_t execute () {
168+ point_count_t execute (pdal::StringList allowedDims ) {
169169 point_count_t response (0 );
170170 {
171171 py::gil_scoped_release release;
172- response = getExecutor ()->execute ();
172+ response = getExecutor ()->execute (allowedDims );
173173 }
174174 return response;
175-
176175 }
177176
178- point_count_t executeStream (point_count_t streamLimit) {
177+ point_count_t executeStream (point_count_t streamLimit, pdal::StringList allowedDims ) {
179178 point_count_t response (0 );
180179 {
181180 py::gil_scoped_release release;
182- response = getExecutor ()->executeStream (streamLimit);
181+ response = getExecutor ()->executeStream (streamLimit, allowedDims );
183182 }
184183 return response;
185184 }
186185
187- std::unique_ptr<PipelineIterator> iterator (int chunk_size, int prefetch) {
186+ std::unique_ptr<PipelineIterator> iterator (int chunk_size, int prefetch, pdal::StringList allowedDims ) {
188187 return std::unique_ptr<PipelineIterator>(new PipelineIterator (
189- getJson (), _inputs, _loglevel, chunk_size, prefetch
188+ getJson (), _inputs, _loglevel, chunk_size, prefetch, allowedDims
190189 ));
191190 }
192191
@@ -308,9 +307,9 @@ namespace pdal {
308307
309308 py::class_<Pipeline>(m, " Pipeline" )
310309 .def (py::init<>())
311- .def (" execute" , &Pipeline::execute)
312- .def (" execute_streaming" , &Pipeline::executeStream, " chunk_size" _a=10000 )
313- .def (" iterator" , &Pipeline::iterator, " chunk_size" _a=10000 , " prefetch" _a=0 )
310+ .def (" execute" , &Pipeline::execute, py::arg ( " allowed_dims " ) = py::list () )
311+ .def (" execute_streaming" , &Pipeline::executeStream, " chunk_size" _a=10000 , py::arg ( " allowed_dims " ) = py::list () )
312+ .def (" iterator" , &Pipeline::iterator, " chunk_size" _a=10000 , " prefetch" _a=0 , py::arg ( " allowed_dims " ) = py::list () )
314313 .def_property (" inputs" , nullptr , &Pipeline::setInputs)
315314 .def_property (" loglevel" , &Pipeline::getLoglevel, &Pipeline::setLogLevel)
316315 .def_property_readonly (" log" , &Pipeline::getLog)
@@ -333,10 +332,10 @@ namespace pdal {
333332 m.def (" infer_writer_driver" , &getWriterDriver);
334333
335334 if (pdal::Config::versionMajor () < 2 )
336- throw pybind11::import_error (" PDAL version must be >= 2.6 " );
335+ throw pybind11::import_error (" PDAL version must be >= 2.7 " );
337336
338- if (pdal::Config::versionMajor () == 2 && pdal::Config::versionMinor () < 6 )
339- throw pybind11::import_error (" PDAL version must be >= 2.6 " );
337+ if (pdal::Config::versionMajor () == 2 && pdal::Config::versionMinor () < 7 )
338+ throw pybind11::import_error (" PDAL version must be >= 2.7 " );
340339 };
341340
342341}; // namespace pdal
0 commit comments