geojson - avoid passing invalid bounding boxes to boost::geometry::index
This commit is contained in:
parent
19897a3085
commit
7a956651fe
1 changed files with 1 additions and 2 deletions
|
@ -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…
Add table
Reference in a new issue