geometry is_simple - handle empty polygons
This commit is contained in:
parent
01e962d216
commit
74bf270d21
1 changed files with 1 additions and 1 deletions
|
@ -81,7 +81,7 @@ struct geometry_is_simple
|
|||
|
||||
result_type operator() (polygon<T> const& poly) const
|
||||
{
|
||||
return boost::geometry::is_simple(poly);
|
||||
return poly.empty() ? true : boost::geometry::is_simple(poly);
|
||||
}
|
||||
|
||||
result_type operator() (multi_point<T> const& multi_pt) const
|
||||
|
|
Loading…
Add table
Reference in a new issue