mirror of
https://github.com/felt/tippecanoe.git
synced 2026-10-05 09:55:41 +02:00
Stabilize line simplification to behave the same regardless of winding
This commit is contained in:
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
+9
-5
File diff suppressed because one or more lines are too long
@@ -37,7 +37,7 @@
|
||||
,
|
||||
{ "type": "Feature", "id": 38, "properties": { "scalerank": 1, "featurecla": "Admin-0 country", "labelrank": 3, "sovereignt": "Cuba", "sov_a3": "CUB", "adm0_dif": 0, "level": 2, "type": "Sovereign country", "admin": "Cuba", "adm0_a3": "CUB", "geou_dif": 0, "geounit": "Cuba", "gu_a3": "CUB", "su_dif": 0, "subunit": "Cuba", "su_a3": "CUB", "brk_diff": 0, "name": "Cuba", "name_long": "Cuba", "brk_a3": "CUB", "brk_name": "Cuba", "abbrev": "Cuba", "postal": "CU", "formal_en": "Republic of Cuba", "name_sort": "Cuba", "mapcolor7": 3, "mapcolor8": 5, "mapcolor9": 3, "mapcolor13": 4, "pop_est": 11451652, "gdp_md_est": 108200, "pop_year": -99, "lastcensus": 2002, "gdp_year": -99, "economy": "5. Emerging region: G20", "income_grp": "3. Upper middle income", "wikipedia": -99, "iso_a2": "CU", "iso_a3": "CUB", "iso_n3": "192", "un_a3": "192", "wb_a2": "CU", "wb_a3": "CUB", "woe_id": -99, "adm0_a3_is": "CUB", "adm0_a3_us": "CUB", "adm0_a3_un": -99, "adm0_a3_wb": -99, "continent": "North America", "region_un": "Americas", "subregion": "Caribbean", "region_wb": "Latin America & Caribbean", "name_len": 4, "long_len": 4, "abbrev_len": 4, "tiny": -99, "homepart": 1 }, "geometry": { "type": "Polygon", "coordinates": [ [ [ -82.265625, 23.160563 ], [ -80.595703, 23.079732 ], [ -79.716797, 22.755921 ], [ -79.277344, 22.431340 ], [ -78.310547, 22.512557 ], [ -76.552734, 21.207459 ], [ -75.585938, 21.043491 ], [ -75.673828, 20.715015 ], [ -74.970703, 20.715015 ], [ -74.179688, 20.303418 ], [ -74.267578, 20.055931 ], [ -74.970703, 19.890723 ], [ -77.783203, 19.890723 ], [ -77.080078, 20.385825 ], [ -77.519531, 20.632784 ], [ -78.134766, 20.715015 ], [ -78.486328, 21.043491 ], [ -78.750000, 21.616579 ], [ -79.277344, 21.534847 ], [ -80.507812, 22.024546 ], [ -81.826172, 22.187405 ], [ -82.177734, 22.350076 ], [ -81.826172, 22.593726 ], [ -82.792969, 22.674847 ], [ -83.496094, 22.187405 ], [ -83.935547, 22.187405 ], [ -84.023438, 21.943046 ], [ -84.550781, 21.779905 ], [ -84.990234, 21.861499 ], [ -84.462891, 22.187405 ], [ -84.199219, 22.593726 ], [ -83.232422, 22.998852 ], [ -82.265625, 23.160563 ] ] ] } }
|
||||
,
|
||||
{ "type": "Feature", "id": 37, "properties": { "scalerank": 1, "featurecla": "Admin-0 country", "labelrank": 5, "sovereignt": "Costa Rica", "sov_a3": "CRI", "adm0_dif": 0, "level": 2, "type": "Sovereign country", "admin": "Costa Rica", "adm0_a3": "CRI", "geou_dif": 0, "geounit": "Costa Rica", "gu_a3": "CRI", "su_dif": 0, "subunit": "Costa Rica", "su_a3": "CRI", "brk_diff": 0, "name": "Costa Rica", "name_long": "Costa Rica", "brk_a3": "CRI", "brk_name": "Costa Rica", "abbrev": "C.R.", "postal": "CR", "formal_en": "Republic of Costa Rica", "name_sort": "Costa Rica", "mapcolor7": 3, "mapcolor8": 2, "mapcolor9": 4, "mapcolor13": 2, "pop_est": 4253877, "gdp_md_est": 48320, "pop_year": -99, "lastcensus": 2011, "gdp_year": -99, "economy": "5. Emerging region: G20", "income_grp": "3. Upper middle income", "wikipedia": -99, "iso_a2": "CR", "iso_a3": "CRI", "iso_n3": "188", "un_a3": "188", "wb_a2": "CR", "wb_a3": "CRI", "woe_id": -99, "adm0_a3_is": "CRI", "adm0_a3_us": "CRI", "adm0_a3_un": -99, "adm0_a3_wb": -99, "continent": "North America", "region_un": "Americas", "subregion": "Central America", "region_wb": "Latin America & Caribbean", "name_len": 10, "long_len": 10, "abbrev_len": 4, "tiny": -99, "homepart": 1 }, "geometry": { "type": "Polygon", "coordinates": [ [ [ -85.517578, 11.178402 ], [ -84.902344, 10.919618 ], [ -84.638672, 11.092166 ], [ -84.375000, 11.005904 ], [ -84.199219, 10.746969 ], [ -83.847656, 10.746969 ], [ -83.671875, 10.919618 ], [ -83.408203, 10.401378 ], [ -82.529297, 9.535749 ], [ -82.968750, 9.449062 ], [ -82.880859, 9.102097 ], [ -82.705078, 8.928487 ], [ -82.880859, 8.841651 ], [ -82.968750, 8.233237 ], [ -83.496094, 8.407168 ], [ -83.671875, 8.667918 ], [ -83.583984, 9.015302 ], [ -84.638672, 9.622414 ], [ -84.726562, 9.882275 ], [ -84.990234, 10.055403 ], [ -84.902344, 9.795678 ], [ -85.078125, 9.535749 ], [ -85.341797, 9.795678 ], [ -85.693359, 9.968851 ], [ -85.781250, 10.141932 ], [ -85.693359, 10.746969 ], [ -85.957031, 10.919618 ], [ -85.517578, 11.178402 ] ] ] } }
|
||||
{ "type": "Feature", "id": 37, "properties": { "scalerank": 1, "featurecla": "Admin-0 country", "labelrank": 5, "sovereignt": "Costa Rica", "sov_a3": "CRI", "adm0_dif": 0, "level": 2, "type": "Sovereign country", "admin": "Costa Rica", "adm0_a3": "CRI", "geou_dif": 0, "geounit": "Costa Rica", "gu_a3": "CRI", "su_dif": 0, "subunit": "Costa Rica", "su_a3": "CRI", "brk_diff": 0, "name": "Costa Rica", "name_long": "Costa Rica", "brk_a3": "CRI", "brk_name": "Costa Rica", "abbrev": "C.R.", "postal": "CR", "formal_en": "Republic of Costa Rica", "name_sort": "Costa Rica", "mapcolor7": 3, "mapcolor8": 2, "mapcolor9": 4, "mapcolor13": 2, "pop_est": 4253877, "gdp_md_est": 48320, "pop_year": -99, "lastcensus": 2011, "gdp_year": -99, "economy": "5. Emerging region: G20", "income_grp": "3. Upper middle income", "wikipedia": -99, "iso_a2": "CR", "iso_a3": "CRI", "iso_n3": "188", "un_a3": "188", "wb_a2": "CR", "wb_a3": "CRI", "woe_id": -99, "adm0_a3_is": "CRI", "adm0_a3_us": "CRI", "adm0_a3_un": -99, "adm0_a3_wb": -99, "continent": "North America", "region_un": "Americas", "subregion": "Central America", "region_wb": "Latin America & Caribbean", "name_len": 10, "long_len": 10, "abbrev_len": 4, "tiny": -99, "homepart": 1 }, "geometry": { "type": "Polygon", "coordinates": [ [ [ -85.517578, 11.178402 ], [ -84.902344, 10.919618 ], [ -84.638672, 11.092166 ], [ -84.375000, 11.005904 ], [ -84.199219, 10.746969 ], [ -83.847656, 10.746969 ], [ -83.671875, 10.919618 ], [ -83.408203, 10.401378 ], [ -82.529297, 9.535749 ], [ -82.968750, 9.449062 ], [ -82.880859, 9.102097 ], [ -82.705078, 8.928487 ], [ -82.880859, 8.841651 ], [ -82.968750, 8.233237 ], [ -83.496094, 8.407168 ], [ -83.671875, 8.667918 ], [ -83.583984, 9.015302 ], [ -84.638672, 9.622414 ], [ -84.726562, 9.882275 ], [ -84.990234, 10.055403 ], [ -84.902344, 9.795678 ], [ -85.078125, 9.535749 ], [ -85.341797, 9.795678 ], [ -85.693359, 9.968851 ], [ -85.781250, 10.401378 ], [ -85.693359, 10.746969 ], [ -85.957031, 10.919618 ], [ -85.517578, 11.178402 ] ] ] } }
|
||||
,
|
||||
{ "type": "Feature", "id": 124, "properties": { "scalerank": 1, "featurecla": "Admin-0 country", "labelrank": 4, "sovereignt": "Panama", "sov_a3": "PAN", "adm0_dif": 0, "level": 2, "type": "Sovereign country", "admin": "Panama", "adm0_a3": "PAN", "geou_dif": 0, "geounit": "Panama", "gu_a3": "PAN", "su_dif": 0, "subunit": "Panama", "su_a3": "PAN", "brk_diff": 0, "name": "Panama", "name_long": "Panama", "brk_a3": "PAN", "brk_name": "Panama", "abbrev": "Pan.", "postal": "PA", "formal_en": "Republic of Panama", "name_sort": "Panama", "mapcolor7": 4, "mapcolor8": 4, "mapcolor9": 6, "mapcolor13": 3, "pop_est": 3360474, "gdp_md_est": 38830, "pop_year": -99, "lastcensus": 2010, "gdp_year": -99, "economy": "6. Developing region", "income_grp": "3. Upper middle income", "wikipedia": -99, "iso_a2": "PA", "iso_a3": "PAN", "iso_n3": "591", "un_a3": "591", "wb_a2": "PA", "wb_a3": "PAN", "woe_id": -99, "adm0_a3_is": "PAN", "adm0_a3_us": "PAN", "adm0_a3_un": -99, "adm0_a3_wb": -99, "continent": "North America", "region_un": "Americas", "subregion": "Central America", "region_wb": "Latin America & Caribbean", "name_len": 6, "long_len": 6, "abbrev_len": 4, "tiny": -99, "homepart": 1 }, "geometry": { "type": "Polygon", "coordinates": [ [ [ -79.541016, 9.622414 ], [ -78.486328, 9.449062 ], [ -78.046875, 9.275622 ], [ -77.343750, 8.667918 ], [ -77.431641, 8.494105 ], [ -77.255859, 7.972198 ], [ -77.431641, 7.623887 ], [ -77.783203, 7.710992 ], [ -77.871094, 7.188101 ], [ -78.222656, 7.536764 ], [ -78.398438, 8.059230 ], [ -78.134766, 8.320212 ], [ -78.398438, 8.407168 ], [ -78.574219, 8.754795 ], [ -79.101562, 9.015302 ], [ -79.541016, 8.928487 ], [ -79.716797, 8.581021 ], [ -80.419922, 8.320212 ], [ -80.507812, 8.059230 ], [ -79.980469, 7.536764 ], [ -80.419922, 7.275292 ], [ -80.859375, 7.188101 ], [ -81.035156, 7.798079 ], [ -81.210938, 7.623887 ], [ -81.474609, 7.710992 ], [ -81.738281, 8.146243 ], [ -82.792969, 8.320212 ], [ -82.880859, 8.059230 ], [ -82.968750, 8.233237 ], [ -82.880859, 8.841651 ], [ -82.705078, 8.928487 ], [ -82.880859, 9.102097 ], [ -82.968750, 9.449062 ], [ -82.529297, 9.535749 ], [ -82.177734, 9.188870 ], [ -82.177734, 9.015302 ], [ -81.738281, 9.015302 ], [ -81.474609, 8.754795 ], [ -80.947266, 8.841651 ], [ -79.892578, 9.275622 ], [ -79.541016, 9.622414 ] ] ] } }
|
||||
,
|
||||
|
||||
@@ -811,7 +811,7 @@
|
||||
,
|
||||
{ "type": "Feature", "properties": { "name": "Japan" }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ 141.372070, 41.376809 ], [ 141.899414, 39.977120 ], [ 141.899414, 39.164141 ], [ 140.976562, 38.169114 ], [ 140.976562, 37.125286 ], [ 140.581055, 36.350527 ], [ 140.756836, 35.853440 ], [ 140.273438, 35.137879 ], [ 138.999023, 34.669359 ], [ 137.241211, 34.597042 ], [ 135.791016, 33.468108 ], [ 135.131836, 33.833920 ], [ 135.087891, 34.597042 ], [ 133.330078, 34.379713 ], [ 132.143555, 33.906896 ], [ 131.000977, 33.870416 ], [ 132.011719, 33.137551 ], [ 131.352539, 31.466154 ], [ 130.693359, 31.015279 ], [ 130.209961, 31.428663 ], [ 130.429688, 32.324276 ], [ 129.814453, 32.620870 ], [ 129.418945, 33.284620 ], [ 130.341797, 33.614619 ], [ 132.626953, 35.424868 ], [ 134.604492, 35.746512 ], [ 135.659180, 35.532226 ], [ 136.713867, 37.300275 ], [ 137.373047, 36.809285 ], [ 139.438477, 38.203655 ], [ 140.053711, 39.436193 ], [ 139.877930, 40.547200 ], [ 140.317383, 41.178654 ], [ 141.372070, 41.376809 ] ] ], [ [ [ 133.901367, 34.379713 ], [ 134.648438, 34.161818 ], [ 134.780273, 33.797409 ], [ 134.208984, 33.211116 ], [ 133.813477, 33.504759 ], [ 133.286133, 33.284620 ], [ 133.022461, 32.694866 ], [ 132.363281, 32.990236 ], [ 132.363281, 33.468108 ], [ 132.934570, 34.052659 ], [ 133.505859, 33.943360 ], [ 133.901367, 34.379713 ] ] ], [ [ [ 141.987305, 45.552525 ], [ 143.129883, 44.496505 ], [ 143.920898, 44.182204 ], [ 144.624023, 43.961191 ], [ 145.327148, 44.370987 ], [ 145.546875, 43.261206 ], [ 144.052734, 42.972502 ], [ 143.173828, 42.000325 ], [ 141.635742, 42.682435 ], [ 141.064453, 41.574361 ], [ 139.965820, 41.574361 ], [ 139.833984, 42.553080 ], [ 140.317383, 43.325178 ], [ 141.372070, 43.389082 ], [ 141.987305, 45.552525 ] ] ] ] } }
|
||||
,
|
||||
{ "type": "Feature", "properties": { "name": "Gabon" }, "geometry": { "type": "Polygon", "coordinates": [ [ [ 12.963867, 2.328460 ], [ 13.271484, 1.318243 ], [ 14.282227, 1.186439 ], [ 13.886719, 0.000000 ], [ 14.326172, -0.571280 ], [ 14.282227, -2.021065 ], [ 13.974609, -2.460181 ], [ 13.095703, -2.416276 ], [ 12.568359, -1.933227 ], [ 12.480469, -2.416276 ], [ 11.469727, -2.767478 ], [ 11.733398, -3.513421 ], [ 10.634766, -3.513421 ], [ 9.404297, -2.152814 ], [ 8.789062, -1.098565 ], [ 9.184570, 0.000000 ], [ 9.492188, 1.010690 ], [ 11.293945, 1.054628 ], [ 11.293945, 2.240640 ], [ 12.348633, 2.196727 ], [ 12.963867, 2.328460 ] ] ] } }
|
||||
{ "type": "Feature", "properties": { "name": "Gabon" }, "geometry": { "type": "Polygon", "coordinates": [ [ [ 12.963867, 2.328460 ], [ 13.271484, 1.318243 ], [ 14.282227, 1.186439 ], [ 13.886719, 0.000000 ], [ 14.326172, -0.571280 ], [ 14.414062, -1.318243 ], [ 13.974609, -2.460181 ], [ 13.095703, -2.416276 ], [ 12.568359, -1.933227 ], [ 12.480469, -2.416276 ], [ 11.469727, -2.767478 ], [ 11.865234, -3.425692 ], [ 10.634766, -3.513421 ], [ 8.789062, -1.098565 ], [ 9.184570, 0.000000 ], [ 9.492188, 1.010690 ], [ 11.293945, 1.054628 ], [ 11.293945, 2.240640 ], [ 12.348633, 2.196727 ], [ 12.963867, 2.328460 ] ] ] } }
|
||||
,
|
||||
{ "type": "Feature", "properties": { "name": "Dem. Rep. Congo" }, "geometry": { "type": "Polygon", "coordinates": [ [ [ 25.664062, 5.266008 ], [ 27.377930, 5.222247 ], [ 27.993164, 4.390229 ], [ 28.432617, 4.302591 ], [ 29.707031, 4.609278 ], [ 30.849609, 3.513421 ], [ 30.761719, 2.328460 ], [ 31.157227, 2.196727 ], [ 30.102539, 1.054628 ], [ 29.838867, 0.000000 ], [ 29.047852, -2.855263 ], [ 29.311523, -3.513421 ], [ 15.996094, -3.513421 ], [ 15.996094, -2.723583 ], [ 16.391602, -1.757537 ], [ 17.534180, -0.747049 ], [ 17.709961, 0.000000 ], [ 18.544922, 4.214943 ], [ 18.940430, 4.696879 ], [ 19.467773, 5.047171 ], [ 20.917969, 4.302591 ], [ 22.412109, 4.039618 ], [ 22.851562, 4.696879 ], [ 23.291016, 4.609278 ], [ 24.433594, 5.090944 ], [ 25.136719, 4.915833 ], [ 25.664062, 5.266008 ] ] ] } }
|
||||
,
|
||||
|
||||
+1
-1
@@ -811,7 +811,7 @@
|
||||
,
|
||||
{ "type": "Feature", "properties": { "name": "Japan" }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ 141.372070, 41.376809 ], [ 141.899414, 39.977120 ], [ 141.899414, 39.164141 ], [ 140.976562, 38.169114 ], [ 140.976562, 37.125286 ], [ 140.581055, 36.350527 ], [ 140.756836, 35.853440 ], [ 140.273438, 35.137879 ], [ 138.999023, 34.669359 ], [ 137.241211, 34.597042 ], [ 135.791016, 33.468108 ], [ 135.131836, 33.833920 ], [ 135.087891, 34.597042 ], [ 133.330078, 34.379713 ], [ 132.143555, 33.906896 ], [ 131.000977, 33.870416 ], [ 132.011719, 33.137551 ], [ 131.352539, 31.466154 ], [ 130.693359, 31.015279 ], [ 130.209961, 31.428663 ], [ 130.429688, 32.324276 ], [ 129.814453, 32.620870 ], [ 129.418945, 33.284620 ], [ 130.341797, 33.614619 ], [ 132.626953, 35.424868 ], [ 134.604492, 35.746512 ], [ 135.659180, 35.532226 ], [ 136.713867, 37.300275 ], [ 137.373047, 36.809285 ], [ 139.438477, 38.203655 ], [ 140.053711, 39.436193 ], [ 139.877930, 40.547200 ], [ 140.317383, 41.178654 ], [ 141.372070, 41.376809 ] ] ], [ [ [ 133.901367, 34.379713 ], [ 134.648438, 34.161818 ], [ 134.780273, 33.797409 ], [ 134.208984, 33.211116 ], [ 133.813477, 33.504759 ], [ 133.286133, 33.284620 ], [ 133.022461, 32.694866 ], [ 132.363281, 32.990236 ], [ 132.363281, 33.468108 ], [ 132.934570, 34.052659 ], [ 133.505859, 33.943360 ], [ 133.901367, 34.379713 ] ] ], [ [ [ 141.987305, 45.552525 ], [ 143.129883, 44.496505 ], [ 143.920898, 44.182204 ], [ 144.624023, 43.961191 ], [ 145.327148, 44.370987 ], [ 145.546875, 43.261206 ], [ 144.052734, 42.972502 ], [ 143.173828, 42.000325 ], [ 141.635742, 42.682435 ], [ 141.064453, 41.574361 ], [ 139.965820, 41.574361 ], [ 139.833984, 42.553080 ], [ 140.317383, 43.325178 ], [ 141.372070, 43.389082 ], [ 141.987305, 45.552525 ] ] ] ] } }
|
||||
,
|
||||
{ "type": "Feature", "properties": { "name": "Gabon" }, "geometry": { "type": "Polygon", "coordinates": [ [ [ 12.963867, 2.328460 ], [ 13.271484, 1.318243 ], [ 14.282227, 1.186439 ], [ 13.886719, 0.000000 ], [ 14.326172, -0.571280 ], [ 14.282227, -2.021065 ], [ 13.974609, -2.460181 ], [ 13.095703, -2.416276 ], [ 12.568359, -1.933227 ], [ 12.480469, -2.416276 ], [ 11.469727, -2.767478 ], [ 11.733398, -3.513421 ], [ 10.634766, -3.513421 ], [ 9.404297, -2.152814 ], [ 8.789062, -1.098565 ], [ 9.184570, 0.000000 ], [ 9.492188, 1.010690 ], [ 11.293945, 1.054628 ], [ 11.293945, 2.240640 ], [ 12.348633, 2.196727 ], [ 12.963867, 2.328460 ] ] ] } }
|
||||
{ "type": "Feature", "properties": { "name": "Gabon" }, "geometry": { "type": "Polygon", "coordinates": [ [ [ 12.963867, 2.328460 ], [ 13.271484, 1.318243 ], [ 14.282227, 1.186439 ], [ 13.886719, 0.000000 ], [ 14.326172, -0.571280 ], [ 14.414062, -1.318243 ], [ 13.974609, -2.460181 ], [ 13.095703, -2.416276 ], [ 12.568359, -1.933227 ], [ 12.480469, -2.416276 ], [ 11.469727, -2.767478 ], [ 11.865234, -3.425692 ], [ 10.634766, -3.513421 ], [ 8.789062, -1.098565 ], [ 9.184570, 0.000000 ], [ 9.492188, 1.010690 ], [ 11.293945, 1.054628 ], [ 11.293945, 2.240640 ], [ 12.348633, 2.196727 ], [ 12.963867, 2.328460 ] ] ] } }
|
||||
,
|
||||
{ "type": "Feature", "properties": { "name": "Dem. Rep. Congo" }, "geometry": { "type": "Polygon", "coordinates": [ [ [ 25.664062, 5.266008 ], [ 27.377930, 5.222247 ], [ 27.993164, 4.390229 ], [ 28.432617, 4.302591 ], [ 29.707031, 4.609278 ], [ 30.849609, 3.513421 ], [ 30.761719, 2.328460 ], [ 31.157227, 2.196727 ], [ 30.102539, 1.054628 ], [ 29.838867, 0.000000 ], [ 29.047852, -2.855263 ], [ 29.311523, -3.513421 ], [ 15.996094, -3.513421 ], [ 15.996094, -2.723583 ], [ 16.391602, -1.757537 ], [ 17.534180, -0.747049 ], [ 17.709961, 0.000000 ], [ 18.544922, 4.214943 ], [ 18.940430, 4.696879 ], [ 19.467773, 5.047171 ], [ 20.917969, 4.302591 ], [ 22.412109, 4.039618 ], [ 22.851562, 4.696879 ], [ 23.291016, 4.609278 ], [ 24.433594, 5.090944 ], [ 25.136719, 4.915833 ], [ 25.664062, 5.266008 ] ] ] } }
|
||||
,
|
||||
|
||||
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user