mapnik-index - log and return on invalid bounding box if validate_features is set.

This commit is contained in:
artemp 2017-02-03 10:10:09 +01:00
parent df51f6087c
commit f85636f769

View file

@ -316,6 +316,11 @@ std::pair<bool,typename T::value_type::first_type> process_geojson_file_x3(T & b
}
}
}
else if (validate_features)
{
if (verbose) std::clog << "Invalid bbox encountered " << item.first << std::endl;
return std::make_pair(false, extent);
}
}
return std::make_pair(true, extent);
}