From ae1da6ae125e4c4df41ac271300eb726b626cc73 Mon Sep 17 00:00:00 2001 From: artemp Date: Wed, 4 Mar 2015 18:39:11 +0100 Subject: [PATCH] topojson - correct multi_polygons --- plugins/input/topojson/topojson_featureset.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/plugins/input/topojson/topojson_featureset.cpp b/plugins/input/topojson/topojson_featureset.cpp index 816907f44..c60764b52 100644 --- a/plugins/input/topojson/topojson_featureset.cpp +++ b/plugins/input/topojson/topojson_featureset.cpp @@ -308,6 +308,7 @@ struct feature_generator polygon.add_hole(std::move(linear_ring)); } } + boost::geometry::correct(polygon); multi_polygon.push_back(std::move(polygon)); } feature->set_geometry(std::move(multi_polygon));