The GeoJSON-producing part of prefiltering

This commit is contained in:
Eric Fischer
2016-12-08 15:13:38 -08:00
parent e3823c966c
commit d1dc310bbc
8 changed files with 65 additions and 22 deletions
+2 -2
View File
@@ -56,14 +56,14 @@ void handle(std::string message, int z, unsigned x, unsigned y, int describe) {
printf("{ \"type\": \"FeatureCollection\"");
printf(", \"properties\": { \"layer\": ");
fprintq(stdout, layer.name.c_str());
printf(", \"version\": %d, \"extent\": %d", layer.version, layer.extent);
printf(", \"version\": %d, \"extent\": %lld", layer.version, layer.extent);
printf(" }");
printf(", \"features\": [\n");
within = 0;
}
layer_to_geojson(stdout, layer, z, x, y, true);
layer_to_geojson(stdout, layer, z, x, y, true, false);
if (describe) {
printf("] }\n");