Add the CRS to the tippecanoe-decode output if nonstandard

This commit is contained in:
Eric Fischer 2016-06-28 15:27:19 -07:00
parent 5d06f01e28
commit 32fed3b78a
4 changed files with 12 additions and 2 deletions

View File

@ -1,3 +1,7 @@
## 1.12.2
* Add ability to specify a projection to tippecanoe-decode
## 1.12.1
* Fix incorrect tile layer version numbers in tile-join output

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");

View File

@ -1,4 +1,4 @@
{ "type": "FeatureCollection", "properties": { "zoom": 11, "x": 328, "y": 791 }, "features": [
{ "type": "FeatureCollection", "properties": { "zoom": 11, "x": 328, "y": 791 }, "crs": { "type": "name", "properties": { "name": "urn:ogc:def:crs:EPSG::3857" } }, "features": [
{ "type": "FeatureCollection", "properties": { "layer": "macarthur", "version": 1, "extent": 4096 }, "features": [
{ "type": "Feature", "properties": { "LINEARID": "1104485645649", "FULLNAME": "W Macarthur Blvd", "RTTYP": "M", "MTFCC": "S1400" }, "geometry": { "type": "LineString", "coordinates": [ [ -13612111.421538, 4555240.804753 ], [ -13612183.081252, 4555231.250125 ], [ -13612426.724279, 4555159.590410 ], [ -13612522.270565, 4555145.258468 ], [ -13612646.480736, 4555111.817268 ], [ -13612665.589993, 4555130.926525 ] ] } }
,

View File

@ -1 +1 @@
#define VERSION "tippecanoe v1.12.1\n"
#define VERSION "tippecanoe v1.12.2\n"