mirror of
https://github.com/felt/tippecanoe.git
synced 2026-10-02 08:25:40 +02:00
Add the CRS to the tippecanoe-decode output if nonstandard
This commit is contained in:
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user