Don't put a comma between features in filter output

This commit is contained in:
Eric Fischer
2016-12-08 11:14:06 -08:00
parent 8cf81483b1
commit 6530e155eb
4 changed files with 5 additions and 5 deletions
+2 -2
View File
@@ -24,11 +24,11 @@ struct lonlat {
}
};
void layer_to_geojson(FILE *fp, mvt_layer &layer, unsigned z, unsigned x, unsigned y) {
void layer_to_geojson(FILE *fp, mvt_layer &layer, unsigned z, unsigned x, unsigned y, bool comma) {
for (size_t f = 0; f < layer.features.size(); f++) {
mvt_feature &feat = layer.features[f];
if (f != 0) {
if (comma && f != 0) {
fprintf(fp, ",\n");
}