mirror of
https://github.com/mapbox/tippecanoe.git
synced 2025-01-21 03:55:00 +00:00
Add the CRS to the tippecanoe-decode output if nonstandard
This commit is contained in:
parent
5d06f01e28
commit
32fed3b78a
@ -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
|
||||
|
@ -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");
|
||||
|
@ -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 ] ] } }
|
||||
,
|
||||
|
@ -1 +1 @@
|
||||
#define VERSION "tippecanoe v1.12.1\n"
|
||||
#define VERSION "tippecanoe v1.12.2\n"
|
||||
|
Loading…
Reference in New Issue
Block a user