mirror of
https://github.com/mapnik/mapnik.git
synced 2025-12-08 20:13:09 +00:00
geojson - avoid passing invalid bounding boxes to boost::geometry::index
This commit is contained in:
parent
19897a3085
commit
7a956651fe
@ -281,11 +281,10 @@ void geojson_datasource::parse_geojson(Iterator start, Iterator end)
|
||||
{
|
||||
extent_.expand_to_include(box);
|
||||
}
|
||||
values.emplace_back(box, std::make_pair(geometry_index,0));
|
||||
}
|
||||
values.emplace_back(box, std::make_pair(geometry_index,0));
|
||||
++geometry_index;
|
||||
}
|
||||
|
||||
// packing algorithm
|
||||
tree_ = std::make_unique<spatial_index_type>(values);
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user