From 694bc9ddbb0af325d13fe5d84ca4b1f9d5353e23 Mon Sep 17 00:00:00 2001 From: Erica Fischer Date: Sat, 28 Oct 2023 13:12:58 -0700 Subject: [PATCH] Remove feature with different rounding error on Mac vs x86 --- .../b7de2787-98ab-4698-98e8-8a94d76a607d-buffer.json | 1 - tests/buffer-polygons/out/-z0_--buffer-polygons-outward.json | 4 +--- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/tests/buffer-polygons/b7de2787-98ab-4698-98e8-8a94d76a607d-buffer.json b/tests/buffer-polygons/b7de2787-98ab-4698-98e8-8a94d76a607d-buffer.json index fb1ff5a5b..0b69fe10b 100644 --- a/tests/buffer-polygons/b7de2787-98ab-4698-98e8-8a94d76a607d-buffer.json +++ b/tests/buffer-polygons/b7de2787-98ab-4698-98e8-8a94d76a607d-buffer.json @@ -18,7 +18,6 @@ { "type": "Feature", "properties": { "count": 1, "From\/To": "Rocky Mountain Metropolitan Airport", "To\/From": "Brownsville South Padre Island Intl" }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -97.4213113, 25.9086123 ], [ -105.112, 39.910919 ], [ -105.1127175, 39.911763 ], [ -105.1136609, 39.9124629 ], [ -105.114783, 39.9129835 ], [ -105.1160273, 39.9132989 ], [ -105.1173316, 39.9133931 ], [ -105.1186304, 39.9132614 ], [ -105.1198586, 39.9129104 ], [ -105.1209546, 39.9123578 ], [ -105.1218634, 39.9116312 ], [ -105.1225394, 39.9107671 ], [ -105.1229488, 39.9098089 ], [ -105.123071, 39.9088045 ], [ -105.1228999, 39.9078043 ], [ -105.1224442, 39.9068586 ], [ -97.4304106, 25.9050535 ], [ -97.4298587, 25.9041826 ], [ -97.4291063, 25.9034445 ], [ -97.4281913, 25.9028763 ], [ -97.4271594, 25.9025066 ], [ -97.4260624, 25.9023537 ], [ -97.4249553, 25.9024255 ], [ -97.4238936, 25.9027183 ], [ -97.4229306, 25.9032174 ], [ -97.4221145, 25.9038978 ], [ -97.4214863, 25.9047254 ], [ -97.4210774, 25.9056586 ], [ -97.4209083, 25.9066508 ], [ -97.4209877, 25.9076521 ], [ -97.4213113, 25.9086123 ] ] ] ] } } { "type": "Feature", "properties": { "count": 1, "From\/To": "Norman Y Mineta San Jose Intl", "To\/From": "Orlando Intl" }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -81.3072368, 28.4327051 ], [ -121.9287516, 37.3671013 ], [ -121.9300133, 37.3670364 ], [ -121.9312253, 37.3667491 ], [ -121.9323268, 37.3662538 ], [ -121.9332625, 37.3655752 ], [ -121.9339857, 37.3647474 ], [ -121.9344598, 37.3638119 ], [ -121.9346613, 37.3628157 ], [ -121.93458, 37.3618087 ], [ -121.9342201, 37.3608413 ], [ -121.9335994, 37.3599622 ], [ -121.9327493, 37.3592153 ], [ -121.9317123, 37.3586381 ], [ -121.9305404, 37.3582596 ], [ -121.9292924, 37.3580987 ], [ -81.3107509, 28.4260828 ], [ -81.3098734, 28.4258202 ], [ -81.3089517, 28.4257369 ], [ -81.3080322, 28.4258369 ], [ -81.307161, 28.4261152 ], [ -81.3063816, 28.426558 ], [ -81.3057333, 28.427143 ], [ -81.3052484, 28.4278408 ], [ -81.3049513, 28.4286165 ], [ -81.3048569, 28.4294312 ], [ -81.30497, 28.430244 ], [ -81.3052848, 28.4310143 ], [ -81.3057857, 28.4317032 ], [ -81.3064474, 28.4322765 ], [ -81.3072368, 28.4327051 ] ] ] ] } } { "type": "Feature", "properties": { "count": 1, "From\/To": "Orlando Intl", "To\/From": "Brownsville South Padre Island Intl" }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -97.4246741, 25.9024489 ], [ -81.3084962, 28.425068 ], [ -81.3074197, 28.4252743 ], [ -81.3064222, 28.4256873 ], [ -81.3055537, 28.4262861 ], [ -81.3048576, 28.4270408 ], [ -81.304369, 28.4279134 ], [ -81.3041122, 28.4288603 ], [ -81.3041002, 28.429834 ], [ -81.3043336, 28.4307856 ], [ -81.3048008, 28.4316674 ], [ -81.3054781, 28.4324352 ], [ -81.3063319, 28.4330506 ], [ -81.3073191, 28.4334825 ], [ -81.3083903, 28.4337095 ], [ -81.3094918, 28.4337201 ], [ -97.427048, 25.9112171 ], [ -97.4280969, 25.9108683 ], [ -97.4290337, 25.9103171 ], [ -97.4298114, 25.9095913 ], [ -97.430391, 25.9087271 ], [ -97.4307434, 25.9077679 ], [ -97.430851, 25.9067619 ], [ -97.4307084, 25.9057595 ], [ -97.4303227, 25.9048108 ], [ -97.4297133, 25.9039636 ], [ -97.4289108, 25.9032603 ], [ -97.4279553, 25.9027361 ], [ -97.4268948, 25.9024173 ], [ -97.4257825, 25.90232 ], [ -97.4246741, 25.9024489 ] ] ] ] } } -{ "type": "Feature", "properties": { "count": 2, "From\/To": "Brownsville South Padre Island Intl", "To\/From": "Washington Dulles Intl" }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -77.4585989, 38.9482613 ], [ -97.4292987, 25.9101051 ], [ -97.4300176, 25.9093312 ], [ -97.430528, 25.9084321 ], [ -97.4308044, 25.9074528 ], [ -97.4308329, 25.9064424 ], [ -97.4306121, 25.9054515 ], [ -97.4301531, 25.90453 ], [ -97.4294789, 25.903724 ], [ -97.4286232, 25.9030738 ], [ -97.4276291, 25.9026122 ], [ -97.4265463, 25.9023622 ], [ -97.4254292, 25.9023363 ], [ -97.4243337, 25.902536 ], [ -97.4233148, 25.9029511 ], [ -97.4224235, 25.9035608 ], [ -77.4530234, 38.9408047 ], [ -77.452031, 38.9413826 ], [ -77.4512281, 38.9421184 ], [ -77.450655, 38.9429754 ], [ -77.4503404, 38.9439104 ], [ -77.4503001, 38.9448766 ], [ -77.4505361, 38.9458257 ], [ -77.4510367, 38.9467099 ], [ -77.4517767, 38.9474849 ], [ -77.452719, 38.948112 ], [ -77.4538163, 38.9485596 ], [ -77.4550138, 38.9488052 ], [ -77.4562512, 38.9488367 ], [ -77.4574665, 38.9486523 ], [ -77.4585989, 38.9482613 ] ] ] ] } } { "type": "Feature", "properties": { "count": 1, "From\/To": "Washington Dulles Intl", "To\/From": "Jack Northrop Fld Hawthorne Muni" }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -118.3331783, 33.9186525 ], [ -77.4563704, 38.9406444 ], [ -77.4552485, 38.9406447 ], [ -77.4541547, 38.94084 ], [ -77.453144, 38.9412204 ], [ -77.452267, 38.9417669 ], [ -77.4515677, 38.9424521 ], [ -77.4510811, 38.9432416 ], [ -77.4508317, 38.9440959 ], [ -77.4508319, 38.9449721 ], [ -77.4510818, 38.9458263 ], [ -77.4515689, 38.9466157 ], [ -77.4522687, 38.9473006 ], [ -77.4531462, 38.9478468 ], [ -77.4541573, 38.9482268 ], [ -77.4552513, 38.9484216 ], [ -118.337194, 33.9270254 ], [ -118.3382611, 33.926548 ], [ -118.3391741, 33.9258846 ], [ -118.339887, 33.9250684 ], [ -118.3403642, 33.9241405 ], [ -118.3405818, 33.9231473 ], [ -118.3405287, 33.9221386 ], [ -118.3402078, 33.9211651 ], [ -118.3396351, 33.9202755 ], [ -118.3388393, 33.9195144 ], [ -118.3378603, 33.9189201 ], [ -118.3367472, 33.9185223 ], [ -118.3355559, 33.9183409 ], [ -118.334346, 33.918385 ], [ -118.3331783, 33.9186525 ] ] ] ] } } { "type": "Feature", "properties": { "count": 1, "From\/To": "Washington Dulles Intl", "To\/From": "Austin Bergstrom Intl" }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -97.6670043, 30.1907768 ], [ -77.4538775, 38.9404883 ], [ -77.4527735, 38.9409257 ], [ -77.4518219, 38.941544 ], [ -77.4510702, 38.9423121 ], [ -77.4505562, 38.9431916 ], [ -77.4503057, 38.9441384 ], [ -77.4503313, 38.9451049 ], [ -77.4506316, 38.9460428 ], [ -77.4511916, 38.946905 ], [ -77.4519833, 38.9476483 ], [ -77.452967, 38.9482353 ], [ -77.4540933, 38.9486367 ], [ -77.4553058, 38.9488323 ], [ -77.4565436, 38.9488123 ], [ -77.4577446, 38.9485777 ], [ -97.6727739, 30.1982792 ], [ -97.6736625, 30.1976275 ], [ -97.6743619, 30.1968204 ], [ -97.6748369, 30.1958983 ], [ -97.6750639, 30.1949075 ], [ -97.6750313, 30.1938977 ], [ -97.6747409, 30.1929195 ], [ -97.6742072, 30.192022 ], [ -97.673457, 30.1912501 ], [ -97.6725279, 30.1906426 ], [ -97.6714665, 30.1902299 ], [ -97.670326, 30.1900327 ], [ -97.6691636, 30.190061 ], [ -97.6680375, 30.1903132 ], [ -97.6670043, 30.1907768 ] ] ] ] } } { "type": "Feature", "properties": { "count": 1, "From\/To": "Van Nuys", "To\/From": "Long Beach" }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -118.1472187, 33.820347 ], [ -118.4855707, 34.2124481 ], [ -118.4863874, 34.2131957 ], [ -118.4873839, 34.2137735 ], [ -118.4885101, 34.2141526 ], [ -118.4897097, 34.214314 ], [ -118.4909224, 34.2142496 ], [ -118.4920875, 34.2139626 ], [ -118.4931464, 34.2134674 ], [ -118.4940462, 34.2127889 ], [ -118.4947416, 34.211961 ], [ -118.4951979, 34.2110253 ], [ -118.4953921, 34.2100288 ], [ -118.4953145, 34.2090213 ], [ -118.494969, 34.2080535 ], [ -118.494373, 34.2071737 ], [ -118.156003, 33.8150969 ], [ -118.1551931, 33.814347 ], [ -118.1542036, 33.8137663 ], [ -118.153084, 33.8133839 ], [ -118.1518906, 33.8132191 ], [ -118.1506832, 33.81328 ], [ -118.1495223, 33.8135637 ], [ -118.1484662, 33.8140559 ], [ -118.1475677, 33.8147319 ], [ -118.1468719, 33.8155579 ], [ -118.1464138, 33.8164923 ], [ -118.1462162, 33.8174885 ], [ -118.1462892, 33.8184963 ], [ -118.146629, 33.8194653 ], [ -118.1472187, 33.820347 ] ] ] ] } } diff --git a/tests/buffer-polygons/out/-z0_--buffer-polygons-outward.json b/tests/buffer-polygons/out/-z0_--buffer-polygons-outward.json index b213c47a1..1f3184395 100644 --- a/tests/buffer-polygons/out/-z0_--buffer-polygons-outward.json +++ b/tests/buffer-polygons/out/-z0_--buffer-polygons-outward.json @@ -5,7 +5,7 @@ "description": "tests/buffer-polygons/out/-z0_--buffer-polygons-outward.json.check.mbtiles", "format": "pbf", "generator_options": "./tippecanoe -q -a@ -f -o tests/buffer-polygons/out/-z0_--buffer-polygons-outward.json.check.mbtiles -z0 --buffer-polygons-outward tests/buffer-polygons/4836bc56-0fab-4ffb-81c2-88142a05cec3-buffer.json tests/buffer-polygons/b7de2787-98ab-4698-98e8-8a94d76a607d-buffer.json", -"json": "{\"vector_layers\":[{\"id\":\"4836bc560fab4ffb81c288142a05cec3buffer\",\"description\":\"\",\"minzoom\":0,\"maxzoom\":0,\"fields\":{\"felt:color\":\"String\",\"felt:id\":\"String\",\"felt:locked\":\"Number\",\"felt:ordering\":\"Number\",\"felt:routeMode\":\"String\",\"felt:showLength\":\"Number\",\"felt:strokeOpacity\":\"Number\",\"felt:strokeStyle\":\"String\",\"felt:strokeWidth\":\"Number\",\"felt:type\":\"String\"}},{\"id\":\"b7de278798ab469898e88a94d76a607dbuffer\",\"description\":\"\",\"minzoom\":0,\"maxzoom\":0,\"fields\":{\"From/To\":\"String\",\"To/From\":\"String\",\"count\":\"Number\"}}],\"tilestats\":{\"layerCount\":2,\"layers\":[{\"layer\":\"4836bc560fab4ffb81c288142a05cec3buffer\",\"count\":2,\"geometry\":\"Polygon\",\"attributeCount\":10,\"attributes\":[{\"attribute\":\"felt:color\",\"count\":1,\"type\":\"string\",\"values\":[\"#C93535\"]},{\"attribute\":\"felt:id\",\"count\":2,\"type\":\"string\",\"values\":[\"72fa3875-764b-4785-8ae5-0d10b43acb11\",\"d32e3884-e5fa-4ede-9bb0-a00d8094a846\"]},{\"attribute\":\"felt:locked\",\"count\":1,\"type\":\"number\",\"values\":[0],\"min\":0,\"max\":0},{\"attribute\":\"felt:ordering\",\"count\":2,\"type\":\"number\",\"values\":[1695668996295712,1695669003828484],\"min\":1695668996295712,\"max\":1695669003828484},{\"attribute\":\"felt:routeMode\",\"count\":1,\"type\":\"string\",\"values\":[\"NONE\"]},{\"attribute\":\"felt:showLength\",\"count\":1,\"type\":\"number\",\"values\":[0],\"min\":0,\"max\":0},{\"attribute\":\"felt:strokeOpacity\",\"count\":1,\"type\":\"number\",\"values\":[1],\"min\":1,\"max\":1},{\"attribute\":\"felt:strokeStyle\",\"count\":1,\"type\":\"string\",\"values\":[\"solid\"]},{\"attribute\":\"felt:strokeWidth\",\"count\":1,\"type\":\"number\",\"values\":[4],\"min\":4,\"max\":4},{\"attribute\":\"felt:type\",\"count\":1,\"type\":\"string\",\"values\":[\"Path\"]}]},{\"layer\":\"b7de278798ab469898e88a94d76a607dbuffer\",\"count\":52,\"geometry\":\"Polygon\",\"attributeCount\":3,\"attributes\":[{\"attribute\":\"From/To\",\"count\":21,\"type\":\"string\",\"values\":[\"Austin Bergstrom Intl\",\"Boeing Fld King Co Intl\",\"Brownsville South Padre Island Intl\",\"Ellington Fld\",\"Frank Pais Intl\",\"Jack Northrop Fld Hawthorne Muni\",\"Long Beach\",\"Los Angeles Intl\",\"Mc Carran Intl\",\"Melbourne Intl\",\"Metropolitan Oakland Intl\",\"Norman Y Mineta San Jose Intl\",\"Orlando Intl\",\"Pappy Boyington\",\"Rocky Mountain Metropolitan Airport\",\"San Francisco Intl\",\"Seattle Tacoma Intl\",\"Space Coast Reg'l Airport\",\"Tulsa Intl\",\"Van Nuys\",\"Washington Dulles Intl\"]},{\"attribute\":\"To/From\",\"count\":21,\"type\":\"string\",\"values\":[\"Austin Bergstrom Intl\",\"Boeing Fld King Co Intl\",\"Brownsville South Padre Island Intl\",\"Ellington Fld\",\"Hayward Executive Airport\",\"Jack Northrop Fld Hawthorne Muni\",\"Long Beach\",\"Los Angeles Intl\",\"Mc Carran Intl\",\"Melbourne Intl\",\"Metropolitan Oakland Intl\",\"Miami Intl\",\"Norman Y Mineta San Jose Intl\",\"Orlando Intl\",\"Pappy Boyington\",\"Rocky Mountain Metropolitan Airport\",\"Space Coast Reg'l Airport\",\"Tulsa Intl\",\"Van Nuys\",\"Waco Rgnl\",\"Washington Dulles Intl\"]},{\"attribute\":\"count\",\"count\":14,\"type\":\"number\",\"values\":[1,10,11,13,132,18,2,26,3,4,42,6,8,9],\"min\":1,\"max\":132}]}]}}", +"json": "{\"vector_layers\":[{\"id\":\"4836bc560fab4ffb81c288142a05cec3buffer\",\"description\":\"\",\"minzoom\":0,\"maxzoom\":0,\"fields\":{\"felt:color\":\"String\",\"felt:id\":\"String\",\"felt:locked\":\"Number\",\"felt:ordering\":\"Number\",\"felt:routeMode\":\"String\",\"felt:showLength\":\"Number\",\"felt:strokeOpacity\":\"Number\",\"felt:strokeStyle\":\"String\",\"felt:strokeWidth\":\"Number\",\"felt:type\":\"String\"}},{\"id\":\"b7de278798ab469898e88a94d76a607dbuffer\",\"description\":\"\",\"minzoom\":0,\"maxzoom\":0,\"fields\":{\"From/To\":\"String\",\"To/From\":\"String\",\"count\":\"Number\"}}],\"tilestats\":{\"layerCount\":2,\"layers\":[{\"layer\":\"4836bc560fab4ffb81c288142a05cec3buffer\",\"count\":2,\"geometry\":\"Polygon\",\"attributeCount\":10,\"attributes\":[{\"attribute\":\"felt:color\",\"count\":1,\"type\":\"string\",\"values\":[\"#C93535\"]},{\"attribute\":\"felt:id\",\"count\":2,\"type\":\"string\",\"values\":[\"72fa3875-764b-4785-8ae5-0d10b43acb11\",\"d32e3884-e5fa-4ede-9bb0-a00d8094a846\"]},{\"attribute\":\"felt:locked\",\"count\":1,\"type\":\"number\",\"values\":[0],\"min\":0,\"max\":0},{\"attribute\":\"felt:ordering\",\"count\":2,\"type\":\"number\",\"values\":[1695668996295712,1695669003828484],\"min\":1695668996295712,\"max\":1695669003828484},{\"attribute\":\"felt:routeMode\",\"count\":1,\"type\":\"string\",\"values\":[\"NONE\"]},{\"attribute\":\"felt:showLength\",\"count\":1,\"type\":\"number\",\"values\":[0],\"min\":0,\"max\":0},{\"attribute\":\"felt:strokeOpacity\",\"count\":1,\"type\":\"number\",\"values\":[1],\"min\":1,\"max\":1},{\"attribute\":\"felt:strokeStyle\",\"count\":1,\"type\":\"string\",\"values\":[\"solid\"]},{\"attribute\":\"felt:strokeWidth\",\"count\":1,\"type\":\"number\",\"values\":[4],\"min\":4,\"max\":4},{\"attribute\":\"felt:type\",\"count\":1,\"type\":\"string\",\"values\":[\"Path\"]}]},{\"layer\":\"b7de278798ab469898e88a94d76a607dbuffer\",\"count\":51,\"geometry\":\"Polygon\",\"attributeCount\":3,\"attributes\":[{\"attribute\":\"From/To\",\"count\":21,\"type\":\"string\",\"values\":[\"Austin Bergstrom Intl\",\"Boeing Fld King Co Intl\",\"Brownsville South Padre Island Intl\",\"Ellington Fld\",\"Frank Pais Intl\",\"Jack Northrop Fld Hawthorne Muni\",\"Long Beach\",\"Los Angeles Intl\",\"Mc Carran Intl\",\"Melbourne Intl\",\"Metropolitan Oakland Intl\",\"Norman Y Mineta San Jose Intl\",\"Orlando Intl\",\"Pappy Boyington\",\"Rocky Mountain Metropolitan Airport\",\"San Francisco Intl\",\"Seattle Tacoma Intl\",\"Space Coast Reg'l Airport\",\"Tulsa Intl\",\"Van Nuys\",\"Washington Dulles Intl\"]},{\"attribute\":\"To/From\",\"count\":20,\"type\":\"string\",\"values\":[\"Austin Bergstrom Intl\",\"Boeing Fld King Co Intl\",\"Brownsville South Padre Island Intl\",\"Ellington Fld\",\"Hayward Executive Airport\",\"Jack Northrop Fld Hawthorne Muni\",\"Long Beach\",\"Los Angeles Intl\",\"Mc Carran Intl\",\"Melbourne Intl\",\"Metropolitan Oakland Intl\",\"Miami Intl\",\"Norman Y Mineta San Jose Intl\",\"Orlando Intl\",\"Pappy Boyington\",\"Rocky Mountain Metropolitan Airport\",\"Space Coast Reg'l Airport\",\"Tulsa Intl\",\"Van Nuys\",\"Waco Rgnl\"]},{\"attribute\":\"count\",\"count\":14,\"type\":\"number\",\"values\":[1,10,11,13,132,18,2,26,3,4,42,6,8,9],\"min\":1,\"max\":132}]}]}}", "maxzoom": "0", "minzoom": "0", "name": "tests/buffer-polygons/out/-z0_--buffer-polygons-outward.json.check.mbtiles", @@ -36,8 +36,6 @@ , { "type": "Feature", "properties": { "count": 1, "From/To": "Orlando Intl", "To/From": "Brownsville South Padre Island Intl" }, "geometry": { "type": "Polygon", "coordinates": [ [ [ -81.298828, 28.536275 ], [ -81.210938, 28.459033 ], [ -97.558594, 25.878994 ], [ -81.298828, 28.536275 ] ] ] } } , -{ "type": "Feature", "properties": { "count": 2, "From/To": "Brownsville South Padre Island Intl", "To/From": "Washington Dulles Intl" }, "geometry": { "type": "Polygon", "coordinates": [ [ [ -77.431641, 39.027719 ], [ -77.343750, 38.959409 ], [ -97.558594, 25.878994 ], [ -77.431641, 39.027719 ] ] ] } } -, { "type": "Feature", "properties": { "count": 1, "From/To": "Melbourne Intl", "To/From": "Brownsville South Padre Island Intl" }, "geometry": { "type": "Polygon", "coordinates": [ [ [ -80.683594, 28.149503 ], [ -80.595703, 28.071980 ], [ -97.558594, 25.878994 ], [ -80.683594, 28.149503 ] ] ] } } , { "type": "Feature", "properties": { "count": 8, "From/To": "Brownsville South Padre Island Intl", "To/From": "Waco Rgnl" }, "geometry": { "type": "Polygon", "coordinates": [ [ [ -97.119141, 31.653381 ], [ -97.470703, 25.799891 ], [ -97.294922, 31.653381 ], [ -97.119141, 31.653381 ] ] ] } }