Skip to content

Commit

Permalink
GmMultiPolyIntersector for python - fix Get/Set Query
Browse files Browse the repository at this point in the history
  • Loading branch information
mkennard-aquaveo committed Jan 4, 2024
1 parent 4ea0ab5 commit eb6e3db
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions xmsgrid/python/geometry/GmMultiPolyIntersector_py.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,8 @@ void initGmMultiPolyIntersector(py::module &m) {
// ---------------------------------------------------------------------------
// function: SetQuery
// ---------------------------------------------------------------------------
gmMpi.def("SetQuery", [](xms::GmMultiPolyIntersector &self, std::string query_str) {
GmMultiPolyIntersectorQueryEnum q = (query_str == "covered_by" ? xms::GMMPIQ_COVEREDBY : xms::GMMPIQ_INTERSECTS);
gmMpi.def("SetQuery", [](xms::GmMultiPolyIntersector &self, std::string query) {
xms::GmMultiPolyIntersectorQueryEnum q = (query == "covered_by" ? xms::GMMPIQ_COVEREDBY : xms::GMMPIQ_INTERSECTS);
self.SetQuery(q);
});
}

0 comments on commit eb6e3db

Please sign in to comment.