Skip to content

Commit

Permalink
GmMultiPolyIntersector for python - fix CI errors
Browse files Browse the repository at this point in the history
  • Loading branch information
mkennard-aquaveo committed Jan 3, 2024
1 parent ce6502c commit 5c20988
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions xmsgrid/python/geometry/GmMultiPolyIntersector_py.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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<xms::VecPt3d> vec_pts = xms::VecPt3dFromPyIter(pts);
boost::shared_ptr<std::vector<xms::VecInt>> vec_polys = std::vector<xms::VecIntFromPyIter(polys)>;
boost::shared_ptr<GmMultiPolyIntersectionSorterTerse> sorter(new GmMultiPolyIntersectionSorterTerse);
boost::shared_ptr<xms::VecPt3d> vec_pts = xms::VecPt3dFromPyIter(points);
boost::shared_ptr<xms::VecInt2d>> vec_polys = xms::VecInt2dFromPyIter(polys);
boost::shared_ptr<xms::GmMultiPolyIntersectionSorterTerse> sorter(new xms::GmMultiPolyIntersectionSorterTerse);
boost::shared_ptr<xms::GmMultiPolyIntersector> 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
// ---------------------------------------------------------------------------
Expand Down

0 comments on commit 5c20988

Please sign in to comment.