mirror of
https://github.com/felt/tippecanoe.git
synced 2026-10-02 08:25:40 +02:00
strip_zeroes() removed every leading zero, so "0" became "" and never matched std::to_string(0). The ID was rejected as too large and the feature was left without an ID. Keep the final digit. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_0172RxhnHkNgRZ3NBrsRJZYK
47 lines
3.4 KiB
JSON
47 lines
3.4 KiB
JSON
{ "type": "FeatureCollection", "properties": {
|
|
"antimeridian_adjusted_bounds": "1.000000,1.000000,14.000000,1.000000",
|
|
"bounds": "1.000000,1.000000,14.000000,1.000000",
|
|
"center": "1.000000,1.000000,0",
|
|
"description": "tests/stringid/out/-z0.json.check.mbtiles",
|
|
"format": "pbf",
|
|
"generator_options": "./tippecanoe -q -a@ -f -o tests/stringid/out/-z0.json.check.mbtiles -z0 tests/stringid/in.json",
|
|
"json": "{\"vector_layers\":[{\"id\":\"in\",\"description\":\"\",\"minzoom\":0,\"maxzoom\":0,\"fields\":{\"something\":\"Boolean\",\"special\":\"Mixed\",\"yes\":\"String\"}}],\"tilestats\":{\"layerCount\":1,\"layers\":[{\"layer\":\"in\",\"count\":14,\"geometry\":\"Point\",\"attributeCount\":3,\"attributes\":[{\"attribute\":\"something\",\"count\":1,\"type\":\"boolean\",\"values\":[false]},{\"attribute\":\"special\",\"count\":7,\"type\":\"mixed\",\"values\":[\"0\",0,\"01005\",\"27\",27,27.5,9.823748927348929e+55],\"min\":0,\"max\":9.823748927348929e+55},{\"attribute\":\"yes\",\"count\":1,\"type\":\"string\",\"values\":[\"no\"]}]}]}}",
|
|
"maxzoom": "0",
|
|
"minzoom": "0",
|
|
"name": "tests/stringid/out/-z0.json.check.mbtiles",
|
|
"type": "overlay",
|
|
"version": "2"
|
|
}, "features": [
|
|
{ "type": "FeatureCollection", "properties": { "zoom": 0, "x": 0, "y": 0 }, "features": [
|
|
{ "type": "FeatureCollection", "properties": { "layer": "in", "version": 2, "extent": 4096 }, "features": [
|
|
{ "type": "Feature", "id": 12345, "properties": { }, "geometry": { "type": "Point", "coordinates": [ 0.966797, 0.966751 ] } }
|
|
,
|
|
{ "type": "Feature", "properties": { }, "geometry": { "type": "Point", "coordinates": [ 2.021484, 0.966751 ] } }
|
|
,
|
|
{ "type": "Feature", "properties": { }, "geometry": { "type": "Point", "coordinates": [ 2.988281, 0.966751 ] } }
|
|
,
|
|
{ "type": "Feature", "properties": { }, "geometry": { "type": "Point", "coordinates": [ 4.042969, 0.966751 ] } }
|
|
,
|
|
{ "type": "Feature", "properties": { }, "geometry": { "type": "Point", "coordinates": [ 5.009766, 0.966751 ] } }
|
|
,
|
|
{ "type": "Feature", "properties": { }, "geometry": { "type": "Point", "coordinates": [ 5.976562, 0.966751 ] } }
|
|
,
|
|
{ "type": "Feature", "id": 1234, "properties": { "yes": "no", "special": 27, "something": false }, "geometry": { "type": "Point", "coordinates": [ 7.031250, 0.966751 ] } }
|
|
,
|
|
{ "type": "Feature", "id": 1234, "properties": { "yes": "no", "special": "27", "something": false }, "geometry": { "type": "Point", "coordinates": [ 7.998047, 0.966751 ] } }
|
|
,
|
|
{ "type": "Feature", "id": 1234, "properties": { "yes": "no", "special": 27.5, "something": false }, "geometry": { "type": "Point", "coordinates": [ 8.964844, 0.966751 ] } }
|
|
,
|
|
{ "type": "Feature", "id": 1234, "properties": { "yes": "no", "special": 9.823748927348929e+55, "something": false }, "geometry": { "type": "Point", "coordinates": [ 10.019531, 0.966751 ] } }
|
|
,
|
|
{ "type": "Feature", "properties": { "yes": "no", "special": 27, "something": false }, "geometry": { "type": "Point", "coordinates": [ 10.986328, 0.966751 ] } }
|
|
,
|
|
{ "type": "Feature", "properties": { "yes": "no", "special": "01005", "something": false }, "geometry": { "type": "Point", "coordinates": [ 12.041016, 0.966751 ] } }
|
|
,
|
|
{ "type": "Feature", "properties": { "yes": "no", "special": 0, "something": false }, "geometry": { "type": "Point", "coordinates": [ 13.007812, 0.966751 ] } }
|
|
,
|
|
{ "type": "Feature", "properties": { "yes": "no", "special": "0", "something": false }, "geometry": { "type": "Point", "coordinates": [ 13.974609, 0.966751 ] } }
|
|
] }
|
|
] }
|
|
] }
|