mirror of
https://github.com/felt/tippecanoe.git
synced 2026-10-02 08:25:40 +02:00
* Round coordinates instead of truncating them * Update all the tests for coordinate rounding changes * Curses, integer division still truncates * Fix tests * Also round instead of shifting when looking for no-op linetos * Should I worry that the same change for moveto doesn't change any tests? * Also round instead of shifting when scaling down to maxzoom resolution * Replace another explicit shift, for origin point * Round instead of shift when writing clipped geometries to the next zoom * Fix low-zoom gridding and smaller-than-a-pixel checks * Don't guess an excessively large maxzoom when there is only one feature * Add a test for guessing the maxzoom of a single point * Explicitly sort by index if no other order distinguishes features * Another affected test
21 lines
1.2 KiB
JSON
21 lines
1.2 KiB
JSON
{ "type": "FeatureCollection", "properties": {
|
|
"bounds": "1.000000,1.000000,1.000000,1.000000",
|
|
"center": "1.000000,1.000000,0",
|
|
"description": "tests/loop/out/-z0_-O200_--drop-densest-as-needed.json.check.mbtiles",
|
|
"format": "pbf",
|
|
"generator_options": "./tippecanoe -q -a@ -f -o tests/loop/out/-z0_-O200_--drop-densest-as-needed.json.check.mbtiles -z0 -O200 --drop-densest-as-needed tests/loop/in.json",
|
|
"json": "{\"vector_layers\":[{\"id\":\"in\",\"description\":\"\",\"minzoom\":0,\"maxzoom\":0,\"fields\":{}}],\"tilestats\":{\"layerCount\":1,\"layers\":[{\"layer\":\"in\",\"count\":1000,\"geometry\":\"Point\",\"attributeCount\":0,\"attributes\":[]}]}}",
|
|
"maxzoom": "0",
|
|
"minzoom": "0",
|
|
"name": "tests/loop/out/-z0_-O200_--drop-densest-as-needed.json.check.mbtiles",
|
|
"strategies": "[{\"dropped_as_needed\":999,\"feature_count_desired\":1000}]",
|
|
"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", "properties": { }, "geometry": { "type": "Point", "coordinates": [ 0.966797, 0.966751 ] } }
|
|
] }
|
|
] }
|
|
] }
|