don't pass invalid bounding_boxes to boost::geometry::rtree_index

This commit is contained in:
artemp 2015-05-21 11:52:30 +01:00
parent 3b663af863
commit 4debc817b5

View file

@ -218,9 +218,9 @@ void topojson_datasource::parse_topojson(T const& buffer)
{
extent_.expand_to_include(box);
}
values.emplace_back(box_type(point_type(box.minx(),box.miny()),point_type(box.maxx(),box.maxy())), geometry_index);
++geometry_index;
}
values.emplace_back(box_type(point_type(box.minx(),box.miny()),point_type(box.maxx(),box.maxy())), geometry_index);
++geometry_index;
}
// packing algorithm