Be careful not to generate empty layers in tile-join.

Add a test of filtering during tile-join.
Bump version number.
This commit is contained in:
Eric Fischer
2017-09-05 13:33:10 -07:00
parent d349b7700d
commit bdd95af8b2
7 changed files with 551 additions and 18 deletions
+3 -2
View File
@@ -618,15 +618,16 @@ void *join_worker(void *v) {
ai->second.clear();
bool anything = false;
mvt_tile outtile;
for (size_t i = 0; i < tile.layers.size(); i++) {
if (tile.layers[i].features.size() > 0) {
outtile.layers.push_back(tile.layers[i]);
anything = true;
break;
}
}
if (anything) {
std::string pbf = tile.encode();
std::string pbf = outtile.encode();
std::string compressed;
if (!pC) {