bool result = true;
// Area of buffer must be larger than of original polygon
- BOOST_AUTO(area_mp, bg::area(mp));
- BOOST_AUTO(area_buf, bg::area(buffer));
+ double area_mp = bg::area(mp);
+ double area_buf = bg::area(buffer);
if (area_buf < area_mp)
{
}
}
+ if (result)
+ {
+ std::string message;
+ if (! bg::is_valid(buffer, message))
+ {
+ std::cout << "Buffer is not valid: " << message << std::endl;
+ result = false;
+ }
+ }
+
bool svg = settings.svg;
bool wkt = settings.wkt;
if (! result)
bg::strategy::buffer::end_round end_strategy;
bg::strategy::buffer::point_circle point_strategy;
bg::strategy::buffer::side_straight side_strategy;
- bg::strategy::buffer::join_round join_round_strategy(100); // Compatible with unit tests
+ bg::strategy::buffer::join_round join_round_strategy(32); // Compatible with MySQL
bg::strategy::buffer::join_miter join_miter_strategy;
try