Add the CRS to the tippecanoe-decode output if nonstandard

This commit is contained in:
Eric Fischer
2016-06-28 15:29:37 -07:00
parent 5d06f01e28
commit 32fed3b78a
4 changed files with 12 additions and 2 deletions
+6
View File
@@ -64,6 +64,12 @@ void handle(std::string message, int z, unsigned x, unsigned y, int describe) {
if (describe) {
printf(", \"properties\": { \"zoom\": %d, \"x\": %d, \"y\": %d }", z, x, y);
if (projection != projections) {
printf(", \"crs\": { \"type\": \"name\", \"properties\": { \"name\": ");
printq(projection->alias);
printf(" } }");
}
}
printf(", \"features\": [\n");