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
+1 -1
View File
@@ -115,7 +115,7 @@ void handle(std::string message, int z, unsigned x, unsigned y, int describe) {
}
printf("{ \"type\": \"FeatureCollection\"");
printf(", \"properties\": { \"name\": ");
printf(", \"properties\": { \"layer\": ");
printq(layer.name().c_str());
printf(" }");
printf(", \"features\": [\n");