geometry is_simple - handle empty polygons

This commit is contained in:
artemp 2016-07-11 11:55:20 +01:00
parent 01e962d216
commit 74bf270d21

View file

@ -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