id,summary,reporter,owner,description,type,status,milestone,component,version,severity,resolution,keywords,cc 7813,Bug in boost::geometry::centroid with trivially small polygons,anonymous,Barend Gehrels,"If you try the following program, the returned centroid is outside the polygon. This only happens with trivially small polygons. {{{ #include #include #include #include #include int main() { typedef boost::geometry::model::d2::point_xy point_type; typedef boost::geometry::model::polygon polygon_type; polygon_type p; boost::geometry::read_wkt(""POLYGON((139.64436 35.856411,139.64436 35.856391,139.6444 35.856397,139.64439 35.856417,139.64436 35.856411))"", p); boost::geometry::correct(p); point_type centroid; boost::geometry::centroid(p, centroid); std::cout << std::fixed << std::setprecision(6) << boost::geometry::wkt(centroid) << std::endl; return 0; } }}} ",Bugs,closed,To Be Determined,geometry,Boost 1.52.0,Problem,wontfix,,