mirror of
https://github.com/felt/tippecanoe.git
synced 2026-10-02 08:25:40 +02:00
Reduce maxzooms being guessed a little: (#2)
* Reduce maxzooms being guessed a little: * Use 1.5 standard deviations, not 2, as the minimum distinguishable * Give overlapping polygons and linestrings more distinct indices * Add another drop rate guessing options, from the same metrics -zg uses * Guard against using -rp without -zg
This commit is contained in:
@@ -19,10 +19,10 @@
|
||||
,
|
||||
{ "type": "Feature", "properties": { "LINEARID": "1102638069562", "FULLNAME": "Macarthur", "RTTYP": "M", "MTFCC": "S1400" }, "geometry": { "type": "LineString", "coordinates": [ [ -122.241526, 37.807309 ], [ -122.241440, 37.807105 ], [ -122.241011, 37.806902 ], [ -122.240667, 37.806834 ], [ -122.239809, 37.806800 ], [ -122.239552, 37.806732 ], [ -122.238479, 37.806088 ], [ -122.237277, 37.805647 ] ] } }
|
||||
,
|
||||
{ "type": "Feature", "properties": { "LINEARID": "1104486090991", "FULLNAME": "Macarthur Fwy", "RTTYP": "M", "MTFCC": "S1100" }, "geometry": { "type": "LineString", "coordinates": [ [ -122.294569, 37.833039 ], [ -122.294312, 37.832531 ], [ -122.294054, 37.831684 ], [ -122.293839, 37.830395 ], [ -122.293882, 37.829413 ], [ -122.293839, 37.829040 ], [ -122.293625, 37.828565 ], [ -122.293239, 37.828158 ], [ -122.292895, 37.827887 ], [ -122.290578, 37.826667 ], [ -122.289548, 37.826396 ], [ -122.288604, 37.826362 ], [ -122.288003, 37.826362 ], [ -122.283196, 37.827243 ], [ -122.282338, 37.827311 ], [ -122.281265, 37.827243 ], [ -122.279892, 37.826938 ], [ -122.275257, 37.825786 ], [ -122.270451, 37.824735 ], [ -122.268648, 37.824226 ], [ -122.267361, 37.823989 ], [ -122.265944, 37.823616 ], [ -122.262340, 37.822904 ], [ -122.259164, 37.821853 ], [ -122.256675, 37.820633 ], [ -122.255344, 37.819887 ], [ -122.254272, 37.819209 ], [ -122.253070, 37.818192 ], [ -122.252340, 37.817277 ], [ -122.251697, 37.816158 ], [ -122.251353, 37.815107 ], [ -122.250624, 37.812361 ], [ -122.250409, 37.811852 ], [ -122.249980, 37.811276 ], [ -122.249637, 37.810937 ], [ -122.249207, 37.810632 ], [ -122.248735, 37.810360 ], [ -122.245946, 37.809479 ], [ -122.242513, 37.808496 ], [ -122.241311, 37.808089 ], [ -122.236032, 37.805715 ], [ -122.234874, 37.805071 ], [ -122.233586, 37.804257 ], [ -122.230797, 37.802053 ], [ -122.230024, 37.801511 ], [ -122.229166, 37.801036 ], [ -122.228522, 37.800799 ], [ -122.227750, 37.800595 ], [ -122.221055, 37.799171 ], [ -122.216506, 37.798120 ], [ -122.215776, 37.797848 ], [ -122.213717, 37.797407 ], [ -122.211957, 37.796933 ], [ -122.210498, 37.796390 ], [ -122.206550, 37.794525 ], [ -122.205219, 37.793745 ], [ -122.203932, 37.792626 ], [ -122.201357, 37.789879 ], [ -122.200627, 37.789201 ], [ -122.199812, 37.788658 ], [ -122.199082, 37.788251 ], [ -122.193761, 37.785639 ], [ -122.192516, 37.785165 ], [ -122.191272, 37.784792 ], [ -122.189770, 37.784452 ], [ -122.188482, 37.784249 ], [ -122.184706, 37.784011 ], [ -122.179556, 37.783876 ], [ -122.178268, 37.783604 ], [ -122.173676, 37.780959 ], [ -122.167969, 37.778008 ], [ -122.164536, 37.776481 ] ] } }
|
||||
,
|
||||
{ "type": "Feature", "properties": { "LINEARID": "1103690483032", "FULLNAME": "Macarthur", "RTTYP": "M", "MTFCC": "S1400" }, "geometry": { "type": "LineString", "coordinates": [ [ -122.184062, 37.776583 ], [ -122.180629, 37.774650 ], [ -122.179728, 37.773971 ] ] } }
|
||||
,
|
||||
{ "type": "Feature", "properties": { "LINEARID": "1104486090991", "FULLNAME": "Macarthur Fwy", "RTTYP": "M", "MTFCC": "S1100" }, "geometry": { "type": "LineString", "coordinates": [ [ -122.294569, 37.833039 ], [ -122.294312, 37.832531 ], [ -122.294054, 37.831684 ], [ -122.293839, 37.830395 ], [ -122.293882, 37.829413 ], [ -122.293839, 37.829040 ], [ -122.293625, 37.828565 ], [ -122.293239, 37.828158 ], [ -122.292895, 37.827887 ], [ -122.290578, 37.826667 ], [ -122.289548, 37.826396 ], [ -122.288604, 37.826362 ], [ -122.288003, 37.826362 ], [ -122.283196, 37.827243 ], [ -122.282338, 37.827311 ], [ -122.281265, 37.827243 ], [ -122.279892, 37.826938 ], [ -122.275257, 37.825786 ], [ -122.270451, 37.824735 ], [ -122.268648, 37.824226 ], [ -122.267361, 37.823989 ], [ -122.265944, 37.823616 ], [ -122.262340, 37.822904 ], [ -122.259164, 37.821853 ], [ -122.256675, 37.820633 ], [ -122.255344, 37.819887 ], [ -122.254272, 37.819209 ], [ -122.253070, 37.818192 ], [ -122.252340, 37.817277 ], [ -122.251697, 37.816158 ], [ -122.251353, 37.815107 ], [ -122.250624, 37.812361 ], [ -122.250409, 37.811852 ], [ -122.249980, 37.811276 ], [ -122.249637, 37.810937 ], [ -122.249207, 37.810632 ], [ -122.248735, 37.810360 ], [ -122.245946, 37.809479 ], [ -122.242513, 37.808496 ], [ -122.241311, 37.808089 ], [ -122.236032, 37.805715 ], [ -122.234874, 37.805071 ], [ -122.233586, 37.804257 ], [ -122.230797, 37.802053 ], [ -122.230024, 37.801511 ], [ -122.229166, 37.801036 ], [ -122.228522, 37.800799 ], [ -122.227750, 37.800595 ], [ -122.221055, 37.799171 ], [ -122.216506, 37.798120 ], [ -122.215776, 37.797848 ], [ -122.213717, 37.797407 ], [ -122.211957, 37.796933 ], [ -122.210498, 37.796390 ], [ -122.206550, 37.794525 ], [ -122.205219, 37.793745 ], [ -122.203932, 37.792626 ], [ -122.201357, 37.789879 ], [ -122.200627, 37.789201 ], [ -122.199812, 37.788658 ], [ -122.199082, 37.788251 ], [ -122.193761, 37.785639 ], [ -122.192516, 37.785165 ], [ -122.191272, 37.784792 ], [ -122.189770, 37.784452 ], [ -122.188482, 37.784249 ], [ -122.184706, 37.784011 ], [ -122.179556, 37.783876 ], [ -122.178268, 37.783604 ], [ -122.173676, 37.780959 ], [ -122.167969, 37.778008 ], [ -122.164536, 37.776481 ] ] } }
|
||||
,
|
||||
{ "type": "Feature", "id": 0, "properties": { "LINEARID": "1102406970092", "FULLNAME": "Macarthur Blvd", "RTTYP": "M", "MTFCC": "S1400" }, "geometry": { "type": "LineString", "coordinates": [ [ -122.181187, 37.774887 ], [ -122.180200, 37.774277 ], [ -122.177968, 37.772580 ], [ -122.176723, 37.771359 ], [ -122.173247, 37.769663 ], [ -122.173162, 37.769697 ], [ -122.172003, 37.769188 ] ] } }
|
||||
,
|
||||
{ "type": "Feature", "id": 123, "properties": { "LINEARID": "1102954918511", "FULLNAME": "Macarthur", "RTTYP": "M", "MTFCC": "S1400" }, "geometry": { "type": "LineString", "coordinates": [ [ -122.172003, 37.769188 ], [ -122.169728, 37.767628 ], [ -122.167969, 37.766372 ], [ -122.164536, 37.762369 ] ] } }
|
||||
@@ -55,10 +55,10 @@
|
||||
,
|
||||
{ "type": "FeatureCollection", "properties": { "zoom": 12, "x": 657, "y": 1583 }, "features": [
|
||||
{ "type": "FeatureCollection", "properties": { "layer": "in", "version": 2, "extent": 4096 }, "features": [
|
||||
{ "type": "Feature", "properties": { "LINEARID": "1104486090991", "FULLNAME": "Macarthur Fwy", "RTTYP": "M", "MTFCC": "S1100" }, "geometry": { "type": "LineString", "coordinates": [ [ -122.200906, 37.789438 ], [ -122.200627, 37.789201 ], [ -122.199812, 37.788658 ], [ -122.199340, 37.788370 ], [ -122.198782, 37.788081 ], [ -122.194490, 37.785962 ], [ -122.193761, 37.785639 ], [ -122.192130, 37.785046 ], [ -122.191272, 37.784792 ], [ -122.190328, 37.784554 ], [ -122.189748, 37.784435 ], [ -122.188482, 37.784249 ], [ -122.187366, 37.784147 ], [ -122.184706, 37.784011 ], [ -122.179556, 37.783859 ], [ -122.178762, 37.783723 ], [ -122.178268, 37.783587 ], [ -122.173655, 37.780959 ], [ -122.169406, 37.778703 ], [ -122.167969, 37.778008 ], [ -122.166252, 37.777245 ] ] } }
|
||||
,
|
||||
{ "type": "Feature", "properties": { "LINEARID": "1103690483032", "FULLNAME": "Macarthur", "RTTYP": "M", "MTFCC": "S1400" }, "geometry": { "type": "LineString", "coordinates": [ [ -122.184062, 37.776583 ], [ -122.180629, 37.774633 ], [ -122.180307, 37.774446 ], [ -122.179706, 37.773954 ] ] } }
|
||||
,
|
||||
{ "type": "Feature", "properties": { "LINEARID": "1104486090991", "FULLNAME": "Macarthur Fwy", "RTTYP": "M", "MTFCC": "S1100" }, "geometry": { "type": "LineString", "coordinates": [ [ -122.200906, 37.789438 ], [ -122.200627, 37.789201 ], [ -122.199812, 37.788658 ], [ -122.199340, 37.788370 ], [ -122.198782, 37.788081 ], [ -122.194490, 37.785962 ], [ -122.193761, 37.785639 ], [ -122.192130, 37.785046 ], [ -122.191272, 37.784792 ], [ -122.190328, 37.784554 ], [ -122.189748, 37.784435 ], [ -122.188482, 37.784249 ], [ -122.187366, 37.784147 ], [ -122.184706, 37.784011 ], [ -122.179556, 37.783859 ], [ -122.178762, 37.783723 ], [ -122.178268, 37.783587 ], [ -122.173655, 37.780959 ], [ -122.169406, 37.778703 ], [ -122.167969, 37.778008 ], [ -122.166252, 37.777245 ] ] } }
|
||||
,
|
||||
{ "type": "Feature", "id": 0, "properties": { "LINEARID": "1102406970092", "FULLNAME": "Macarthur Blvd", "RTTYP": "M", "MTFCC": "S1400" }, "geometry": { "type": "LineString", "coordinates": [ [ -122.181187, 37.774887 ], [ -122.180178, 37.774260 ], [ -122.179749, 37.773903 ], [ -122.177968, 37.772564 ], [ -122.177346, 37.771919 ], [ -122.176723, 37.771342 ], [ -122.176251, 37.771088 ], [ -122.173247, 37.769663 ], [ -122.173140, 37.769680 ], [ -122.172003, 37.769188 ] ] } }
|
||||
,
|
||||
{ "type": "Feature", "id": 123, "properties": { "LINEARID": "1102954918511", "FULLNAME": "Macarthur", "RTTYP": "M", "MTFCC": "S1400" }, "geometry": { "type": "LineString", "coordinates": [ [ -122.172003, 37.769188 ], [ -122.169707, 37.767628 ], [ -122.168269, 37.766610 ], [ -122.167969, 37.766355 ], [ -122.166252, 37.764388 ] ] } }
|
||||
@@ -121,10 +121,10 @@
|
||||
,
|
||||
{ "type": "FeatureCollection", "properties": { "zoom": 13, "x": 1315, "y": 3166 }, "features": [
|
||||
{ "type": "FeatureCollection", "properties": { "layer": "in", "version": 2, "extent": 4096 }, "features": [
|
||||
{ "type": "Feature", "properties": { "LINEARID": "1104486090991", "FULLNAME": "Macarthur Fwy", "RTTYP": "M", "MTFCC": "S1100" }, "geometry": { "type": "LineString", "coordinates": [ [ -122.199984, 37.788760 ], [ -122.199340, 37.788370 ], [ -122.198771, 37.788081 ], [ -122.194490, 37.785962 ], [ -122.193750, 37.785639 ], [ -122.192516, 37.785165 ], [ -122.192119, 37.785037 ], [ -122.191261, 37.784783 ], [ -122.190317, 37.784554 ], [ -122.189748, 37.784435 ], [ -122.188482, 37.784240 ], [ -122.187366, 37.784147 ], [ -122.184695, 37.784003 ], [ -122.179556, 37.783850 ], [ -122.179041, 37.783774 ], [ -122.178751, 37.783715 ], [ -122.178258, 37.783579 ], [ -122.173655, 37.780959 ], [ -122.169406, 37.778703 ], [ -122.167969, 37.777999 ], [ -122.167701, 37.777864 ], [ -122.167110, 37.777609 ] ] } }
|
||||
,
|
||||
{ "type": "Feature", "properties": { "LINEARID": "1103690483032", "FULLNAME": "Macarthur", "RTTYP": "M", "MTFCC": "S1400" }, "geometry": { "type": "LineString", "coordinates": [ [ -122.184051, 37.776575 ], [ -122.180618, 37.774633 ], [ -122.180296, 37.774438 ], [ -122.179706, 37.773954 ] ] } }
|
||||
,
|
||||
{ "type": "Feature", "properties": { "LINEARID": "1104486090991", "FULLNAME": "Macarthur Fwy", "RTTYP": "M", "MTFCC": "S1100" }, "geometry": { "type": "LineString", "coordinates": [ [ -122.199984, 37.788760 ], [ -122.199340, 37.788370 ], [ -122.198771, 37.788081 ], [ -122.194490, 37.785962 ], [ -122.193750, 37.785639 ], [ -122.192516, 37.785165 ], [ -122.192119, 37.785037 ], [ -122.191261, 37.784783 ], [ -122.190317, 37.784554 ], [ -122.189748, 37.784435 ], [ -122.188482, 37.784240 ], [ -122.187366, 37.784147 ], [ -122.184695, 37.784003 ], [ -122.179556, 37.783850 ], [ -122.179041, 37.783774 ], [ -122.178751, 37.783715 ], [ -122.178258, 37.783579 ], [ -122.173655, 37.780959 ], [ -122.169406, 37.778703 ], [ -122.167969, 37.777999 ], [ -122.167701, 37.777864 ], [ -122.167110, 37.777609 ] ] } }
|
||||
,
|
||||
{ "type": "Feature", "id": 0, "properties": { "LINEARID": "1102406970092", "FULLNAME": "Macarthur Blvd", "RTTYP": "M", "MTFCC": "S1400" }, "geometry": { "type": "LineString", "coordinates": [ [ -122.181176, 37.774879 ], [ -122.180361, 37.774395 ], [ -122.180167, 37.774260 ], [ -122.179738, 37.773895 ], [ -122.179213, 37.773513 ], [ -122.178665, 37.773081 ], [ -122.177957, 37.772564 ], [ -122.177346, 37.771919 ], [ -122.176960, 37.771537 ], [ -122.176713, 37.771334 ], [ -122.176251, 37.771088 ], [ -122.175468, 37.770732 ], [ -122.173247, 37.769663 ], [ -122.173140, 37.769672 ], [ -122.172003, 37.769180 ] ] } }
|
||||
,
|
||||
{ "type": "Feature", "id": 123, "properties": { "LINEARID": "1102954918511", "FULLNAME": "Macarthur", "RTTYP": "M", "MTFCC": "S1400" }, "geometry": { "type": "LineString", "coordinates": [ [ -122.172003, 37.769180 ], [ -122.169932, 37.767763 ], [ -122.169707, 37.767619 ], [ -122.168269, 37.766601 ], [ -122.167969, 37.766347 ], [ -122.167701, 37.766050 ], [ -122.167110, 37.765355 ] ] } }
|
||||
@@ -237,10 +237,10 @@
|
||||
,
|
||||
{ "type": "FeatureCollection", "properties": { "zoom": 14, "x": 2631, "y": 6332 }, "features": [
|
||||
{ "type": "FeatureCollection", "properties": { "layer": "in", "version": 2, "extent": 4096 }, "features": [
|
||||
{ "type": "Feature", "properties": { "LINEARID": "1104486090991", "FULLNAME": "Macarthur Fwy", "RTTYP": "M", "MTFCC": "S1100" }, "geometry": { "type": "LineString", "coordinates": [ [ -122.190371, 37.784567 ], [ -122.190317, 37.784550 ], [ -122.189941, 37.784478 ], [ -122.189743, 37.784435 ], [ -122.188960, 37.784308 ], [ -122.188482, 37.784240 ], [ -122.187908, 37.784198 ], [ -122.187366, 37.784147 ], [ -122.186744, 37.784117 ], [ -122.185612, 37.784045 ], [ -122.184695, 37.784003 ], [ -122.179840, 37.783867 ], [ -122.179551, 37.783850 ], [ -122.179036, 37.783774 ], [ -122.178751, 37.783715 ], [ -122.178252, 37.783579 ], [ -122.173993, 37.781141 ], [ -122.173655, 37.780955 ], [ -122.173247, 37.780747 ], [ -122.170656, 37.779365 ], [ -122.169401, 37.778703 ], [ -122.167969, 37.777999 ], [ -122.167701, 37.777864 ], [ -122.167540, 37.777796 ] ] } }
|
||||
,
|
||||
{ "type": "Feature", "properties": { "LINEARID": "1103690483032", "FULLNAME": "Macarthur", "RTTYP": "M", "MTFCC": "S1400" }, "geometry": { "type": "LineString", "coordinates": [ [ -122.184051, 37.776575 ], [ -122.183923, 37.776511 ], [ -122.183086, 37.776019 ], [ -122.182270, 37.775574 ], [ -122.181315, 37.775023 ], [ -122.181122, 37.774921 ], [ -122.180618, 37.774633 ], [ -122.180296, 37.774433 ], [ -122.180119, 37.774298 ], [ -122.179701, 37.773954 ] ] } }
|
||||
,
|
||||
{ "type": "Feature", "properties": { "LINEARID": "1104486090991", "FULLNAME": "Macarthur Fwy", "RTTYP": "M", "MTFCC": "S1100" }, "geometry": { "type": "LineString", "coordinates": [ [ -122.190371, 37.784567 ], [ -122.190317, 37.784550 ], [ -122.189941, 37.784478 ], [ -122.189743, 37.784435 ], [ -122.188960, 37.784308 ], [ -122.188482, 37.784240 ], [ -122.187908, 37.784198 ], [ -122.187366, 37.784147 ], [ -122.186744, 37.784117 ], [ -122.185612, 37.784045 ], [ -122.184695, 37.784003 ], [ -122.179840, 37.783867 ], [ -122.179551, 37.783850 ], [ -122.179036, 37.783774 ], [ -122.178751, 37.783715 ], [ -122.178252, 37.783579 ], [ -122.173993, 37.781141 ], [ -122.173655, 37.780955 ], [ -122.173247, 37.780747 ], [ -122.170656, 37.779365 ], [ -122.169401, 37.778703 ], [ -122.167969, 37.777999 ], [ -122.167701, 37.777864 ], [ -122.167540, 37.777796 ] ] } }
|
||||
,
|
||||
{ "type": "Feature", "id": 0, "properties": { "LINEARID": "1102406970092", "FULLNAME": "Macarthur Blvd", "RTTYP": "M", "MTFCC": "S1400" }, "geometry": { "type": "LineString", "coordinates": [ [ -122.181171, 37.774879 ], [ -122.180361, 37.774391 ], [ -122.180167, 37.774260 ], [ -122.179733, 37.773895 ], [ -122.179207, 37.773509 ], [ -122.178660, 37.773077 ], [ -122.177957, 37.772564 ], [ -122.177346, 37.771919 ], [ -122.176954, 37.771533 ], [ -122.176713, 37.771334 ], [ -122.176439, 37.771177 ], [ -122.175441, 37.770715 ], [ -122.174733, 37.770376 ] ] } }
|
||||
] }
|
||||
] }
|
||||
|
||||
Reference in New Issue
Block a user