geometry_is_simple - fix handling multi-geometries (1.59)
This commit is contained in:
parent
5915c4e7a5
commit
8ec1e3e73d
1 changed files with 10 additions and 2 deletions
|
@ -105,7 +105,11 @@ struct geometry_is_simple
|
|||
// https://svn.boost.org/trac/boost/ticket/11710
|
||||
return true;
|
||||
}
|
||||
return boost::geometry::is_simple(multi_line);
|
||||
for (auto const& line : multi_line)
|
||||
{
|
||||
if (!(*this)(line)) return false;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
template <typename T>
|
||||
result_type operator() (multi_polygon<T> const& multi_poly) const
|
||||
|
@ -116,7 +120,11 @@ struct geometry_is_simple
|
|||
// https://svn.boost.org/trac/boost/ticket/11710
|
||||
return true;
|
||||
}
|
||||
return boost::geometry::is_simple(multi_poly);
|
||||
for (auto const& poly : multi_poly)
|
||||
{
|
||||
if (!(*this)(poly)) return false;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue