diff --git a/xmsgrid/python/geometry/GmMultiPolyIntersector_py.cpp b/xmsgrid/python/geometry/GmMultiPolyIntersector_py.cpp index 0eb7e2a0..cf732430 100644 --- a/xmsgrid/python/geometry/GmMultiPolyIntersector_py.cpp +++ b/xmsgrid/python/geometry/GmMultiPolyIntersector_py.cpp @@ -31,15 +31,15 @@ void initGmMultiPolyIntersector(py::module &m) { // --------------------------------------------------------------------------- gmMpi.def(py::init([](py::iterable points, py::iterable polys, int starting_id, const std::string& query) { - boost::shared_ptr vec_pts = xms::VecPt3dFromPyIter(pts); - boost::shared_ptr> vec_polys = std::vector; - boost::shared_ptr sorter(new GmMultiPolyIntersectionSorterTerse); + boost::shared_ptr vec_pts = xms::VecPt3dFromPyIter(points); + boost::shared_ptr> vec_polys = xms::VecInt2dFromPyIter(polys); + boost::shared_ptr sorter(new xms::GmMultiPolyIntersectionSorterTerse); boost::shared_ptr rval(xms::GmMultiPolyIntersector::New(vec_pts, vec_polys, sorter, starting_id)); rval->SetQuery(query); return rval; }), py::arg("points"), py::arg("polys"), py::arg("starting_id") = 1, py::arg("query") = 'covered_by') - .def_property("query", &GmMultiPolyIntersector::GetQuery, &GmMultiPolyIntersector::SetQuery); + .def_property("query", &xms::GmMultiPolyIntersector::GetQuery, &xms::GmMultiPolyIntersector::SetQuery); // --------------------------------------------------------------------------- // function: TraverseLineSegment // ---------------------------------------------------------------------------