Don't produce layers with no features. Say "layer" instead of "name" in decode.

This commit is contained in:
Eric Fischer
2015-11-02 14:03:45 -08:00
parent 84173e24a5
commit 7f24cd6767
2 changed files with 5 additions and 1 deletions
+4
View File
@@ -246,6 +246,10 @@ mapnik::vector::tile create_tile(char **layernames, int line_detail, std::vector
int i;
for (i = 0; i < nlayers; i++) {
if (features[i].size() == 0) {
continue;
}
mapnik::vector::tile_layer *layer = tile.add_layers();
layer->set_name(layernames[i]);