Used the tilestats sample values limit instead of the attributes limit

This commit is contained in:
Eric Fischer 2018-08-31 16:52:38 -07:00
parent 216c0cf428
commit 2530efd525
2 changed files with 3 additions and 3 deletions

View File

@ -156,8 +156,8 @@ void tilestats(std::map<std::string, layermap_entry> const &layermap1, size_t el
state.json_write_string(geomtype);
size_t attrib_count = layer.second.file_keys.size();
if (attrib_count > max_tilestats_sample_values) {
attrib_count = max_tilestats_sample_values;
if (attrib_count > max_tilestats_attributes) {
attrib_count = max_tilestats_attributes;
}
state.nospace = true;