re-enable GeoJSON feature validation
This commit is contained in:
parent
8158293b16
commit
c04d8bf082
1 changed files with 4 additions and 6 deletions
|
@ -276,17 +276,16 @@ std::pair<bool,typename T::value_type::first_type> process_geojson_file_x3(T & b
|
||||||
|
|
||||||
using namespace boost::spirit;
|
using namespace boost::spirit;
|
||||||
|
|
||||||
//using space_type = mapnik::json::grammar::space_type;
|
using space_type = mapnik::json::grammar::space_type;
|
||||||
//auto keys = mapnik::json::get_keys();
|
auto keys = mapnik::json::get_keys();
|
||||||
//auto feature_grammar = x3::with<mapnik::json::keys_tag>(std::ref(keys))
|
auto feature_grammar = x3::with<mapnik::json::grammar::keys_tag>(std::ref(keys))
|
||||||
// [ geojson_value ];
|
[ geojson_value ];
|
||||||
for (auto const& item : boxes)
|
for (auto const& item : boxes)
|
||||||
{
|
{
|
||||||
if (item.first.valid())
|
if (item.first.valid())
|
||||||
{
|
{
|
||||||
if (!extent.valid()) extent = item.first;
|
if (!extent.valid()) extent = item.first;
|
||||||
else extent.expand_to_include(item.first);
|
else extent.expand_to_include(item.first);
|
||||||
#if 0
|
|
||||||
if (validate_features)
|
if (validate_features)
|
||||||
{
|
{
|
||||||
base_iterator_type feat_itr = start + item.second.first;
|
base_iterator_type feat_itr = start + item.second.first;
|
||||||
|
@ -315,7 +314,6 @@ std::pair<bool,typename T::value_type::first_type> process_geojson_file_x3(T & b
|
||||||
return std::make_pair(false, extent);
|
return std::make_pair(false, extent);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return std::make_pair(true, extent);
|
return std::make_pair(true, extent);
|
||||||
|
|
Loading…
Reference in a new issue