mirror of
https://github.com/felt/tippecanoe.git
synced 2026-10-06 10:25:41 +02:00
Do more of line simplification with integer coordinates (#113)
* Turn off unit, which has bit-rotted
* Instrument line simplification
* Do more work in integer space
* Update tests with simplification done with more integers
* Clean up
* Update changelog
* Eradicate calls to deprecated sprintf()
* Revert "Turn off unit, which has bit-rotted"
This reverts commit 998779313f.
* Fix catch by switching to an unsigned type
This commit is contained in:
@@ -156,7 +156,7 @@
|
||||
,
|
||||
{ "type": "FeatureCollection", "properties": { "zoom": 13, "x": 1316, "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.168827, 37.778423 ], [ -122.167969, 37.777999 ], [ -122.167690, 37.777855 ], [ -122.165684, 37.776990 ], [ -122.163280, 37.775862 ], [ -122.160416, 37.774387 ], [ -122.159246, 37.773819 ], [ -122.158506, 37.773412 ], [ -122.158098, 37.773166 ], [ -122.157530, 37.772776 ], [ -122.157025, 37.772394 ], [ -122.156435, 37.771868 ], [ -122.156028, 37.771495 ], [ -122.155201, 37.770588 ], [ -122.154858, 37.770113 ], [ -122.154504, 37.769595 ], [ -122.152348, 37.766093 ], [ -122.151875, 37.765465 ], [ -122.150813, 37.764201 ], [ -122.150502, 37.763803 ], [ -122.149183, 37.761852 ], [ -122.148721, 37.761122 ], [ -122.148292, 37.760317 ], [ -122.148067, 37.759757 ], [ -122.147970, 37.759307 ], [ -122.147917, 37.758722 ], [ -122.147949, 37.758221 ], [ -122.148035, 37.757763 ], [ -122.148271, 37.757170 ], [ -122.148453, 37.756856 ], [ -122.148582, 37.756678 ], [ -122.148904, 37.756262 ], [ -122.149408, 37.755779 ], [ -122.150481, 37.754812 ], [ -122.151006, 37.754277 ], [ -122.151414, 37.753717 ], [ -122.151607, 37.753344 ], [ -122.151715, 37.753073 ], [ -122.151843, 37.752665 ] ] } }
|
||||
{ "type": "Feature", "properties": { "LINEARID": "1104486090991", "FULLNAME": "Macarthur Fwy", "RTTYP": "M", "MTFCC": "S1100" }, "geometry": { "type": "LineString", "coordinates": [ [ -122.168827, 37.778423 ], [ -122.167969, 37.777999 ], [ -122.167690, 37.777855 ], [ -122.165684, 37.776990 ], [ -122.163280, 37.775862 ], [ -122.160416, 37.774387 ], [ -122.159246, 37.773819 ], [ -122.158506, 37.773412 ], [ -122.158098, 37.773166 ], [ -122.157530, 37.772776 ], [ -122.157025, 37.772394 ], [ -122.156435, 37.771868 ], [ -122.156028, 37.771495 ], [ -122.155201, 37.770588 ], [ -122.154858, 37.770113 ], [ -122.154504, 37.769595 ], [ -122.152348, 37.766093 ], [ -122.151875, 37.765465 ], [ -122.150813, 37.764201 ], [ -122.150502, 37.763803 ], [ -122.149183, 37.761852 ], [ -122.148721, 37.761122 ], [ -122.148292, 37.760317 ], [ -122.148067, 37.759757 ], [ -122.147970, 37.759307 ], [ -122.147917, 37.758722 ], [ -122.147949, 37.758221 ], [ -122.148035, 37.757763 ], [ -122.148271, 37.757170 ], [ -122.148453, 37.756856 ], [ -122.148710, 37.756508 ], [ -122.148904, 37.756262 ], [ -122.149129, 37.756033 ], [ -122.150481, 37.754812 ], [ -122.151006, 37.754277 ], [ -122.151414, 37.753717 ], [ -122.151607, 37.753344 ], [ -122.151715, 37.753073 ], [ -122.151843, 37.752665 ] ] } }
|
||||
,
|
||||
{ "type": "Feature", "id": 123, "properties": { "LINEARID": "1102954918511", "FULLNAME": "Macarthur", "RTTYP": "M", "MTFCC": "S1400" }, "geometry": { "type": "LineString", "coordinates": [ [ -122.168827, 37.766992 ], [ -122.168226, 37.766568 ], [ -122.167969, 37.766339 ], [ -122.167690, 37.766042 ], [ -122.167164, 37.765423 ], [ -122.166499, 37.764685 ], [ -122.165941, 37.763998 ], [ -122.165684, 37.763718 ], [ -122.164814, 37.762683 ], [ -122.163355, 37.761029 ], [ -122.163237, 37.760859 ], [ -122.163098, 37.760571 ], [ -122.161628, 37.756474 ] ] } }
|
||||
,
|
||||
@@ -242,7 +242,7 @@
|
||||
,
|
||||
{ "type": "Feature", "properties": { "LINEARID": "1103690483032", "FULLNAME": "Macarthur", "RTTYP": "M", "MTFCC": "S1400" }, "geometry": { "type": "LineString", "coordinates": [ [ -122.184046, 37.776575 ], [ -122.183917, 37.776507 ], [ -122.183080, 37.776019 ], [ -122.182265, 37.775574 ], [ -122.181310, 37.775019 ], [ -122.181117, 37.774917 ], [ -122.180613, 37.774629 ], [ -122.180296, 37.774429 ], [ -122.180119, 37.774298 ], [ -122.179701, 37.773954 ] ] } }
|
||||
,
|
||||
{ "type": "Feature", "id": 0, "properties": { "LINEARID": "1102406970092", "FULLNAME": "Macarthur Blvd", "RTTYP": "M", "MTFCC": "S1400" }, "geometry": { "type": "LineString", "coordinates": [ [ -122.181165, 37.774879 ], [ -122.180361, 37.774387 ], [ -122.180167, 37.774255 ], [ -122.179652, 37.773836 ], [ -122.179347, 37.773615 ], [ -122.178521, 37.772971 ], [ -122.177957, 37.772564 ], [ -122.177346, 37.771919 ], [ -122.176949, 37.771529 ], [ -122.176707, 37.771334 ], [ -122.176600, 37.771262 ], [ -122.176439, 37.771173 ], [ -122.175431, 37.770715 ], [ -122.174728, 37.770376 ] ] } }
|
||||
{ "type": "Feature", "id": 0, "properties": { "LINEARID": "1102406970092", "FULLNAME": "Macarthur Blvd", "RTTYP": "M", "MTFCC": "S1400" }, "geometry": { "type": "LineString", "coordinates": [ [ -122.181165, 37.774879 ], [ -122.180361, 37.774387 ], [ -122.180167, 37.774255 ], [ -122.179652, 37.773836 ], [ -122.179347, 37.773615 ], [ -122.178521, 37.772971 ], [ -122.177957, 37.772564 ], [ -122.177346, 37.771919 ], [ -122.176949, 37.771529 ], [ -122.176809, 37.771410 ], [ -122.176707, 37.771334 ], [ -122.176600, 37.771262 ], [ -122.176439, 37.771173 ], [ -122.175431, 37.770715 ], [ -122.174728, 37.770376 ] ] } }
|
||||
] }
|
||||
] }
|
||||
,
|
||||
@@ -260,7 +260,7 @@
|
||||
,
|
||||
{ "type": "Feature", "id": 123, "properties": { "LINEARID": "1102954918511", "FULLNAME": "Macarthur", "RTTYP": "M", "MTFCC": "S1400" }, "geometry": { "type": "LineString", "coordinates": [ [ -122.168398, 37.766686 ], [ -122.168226, 37.766568 ], [ -122.168022, 37.766398 ], [ -122.167969, 37.766343 ], [ -122.167690, 37.766046 ], [ -122.167169, 37.765423 ], [ -122.166504, 37.764685 ], [ -122.165941, 37.764002 ], [ -122.165689, 37.763722 ], [ -122.164814, 37.762683 ], [ -122.164332, 37.762123 ], [ -122.163361, 37.761033 ], [ -122.163237, 37.760864 ], [ -122.163146, 37.760686 ], [ -122.163103, 37.760571 ], [ -122.161628, 37.756474 ] ] } }
|
||||
,
|
||||
{ "type": "Feature", "id": 1073741824, "properties": { "LINEARID": "1105089465114", "FULLNAME": "Macarthur Blvd", "RTTYP": "M", "MTFCC": "S1400" }, "geometry": { "type": "LineString", "coordinates": [ [ -122.168398, 37.766589 ], [ -122.168221, 37.766453 ], [ -122.168103, 37.766347 ], [ -122.167969, 37.766203 ], [ -122.167786, 37.766008 ], [ -122.167341, 37.765486 ], [ -122.166595, 37.764642 ], [ -122.166005, 37.763947 ], [ -122.165748, 37.763680 ], [ -122.164943, 37.762683 ], [ -122.164401, 37.762098 ], [ -122.163897, 37.761525 ], [ -122.163425, 37.760987 ], [ -122.163339, 37.760855 ], [ -122.163264, 37.760724 ], [ -122.163189, 37.760558 ], [ -122.161977, 37.757225 ], [ -122.161531, 37.755974 ], [ -122.161301, 37.755371 ], [ -122.160560, 37.753344 ], [ -122.160437, 37.753005 ] ] } }
|
||||
{ "type": "Feature", "id": 1073741824, "properties": { "LINEARID": "1105089465114", "FULLNAME": "Macarthur Blvd", "RTTYP": "M", "MTFCC": "S1400" }, "geometry": { "type": "LineString", "coordinates": [ [ -122.168398, 37.766589 ], [ -122.168221, 37.766453 ], [ -122.168103, 37.766347 ], [ -122.167969, 37.766203 ], [ -122.167786, 37.766008 ], [ -122.167341, 37.765486 ], [ -122.166595, 37.764642 ], [ -122.166005, 37.763947 ], [ -122.165748, 37.763680 ], [ -122.164943, 37.762683 ], [ -122.164831, 37.762568 ], [ -122.164401, 37.762098 ], [ -122.163897, 37.761525 ], [ -122.163425, 37.760987 ], [ -122.163339, 37.760855 ], [ -122.163264, 37.760724 ], [ -122.163189, 37.760558 ], [ -122.161977, 37.757225 ], [ -122.161531, 37.755974 ], [ -122.161301, 37.755371 ], [ -122.160560, 37.753344 ], [ -122.160437, 37.753005 ] ] } }
|
||||
] }
|
||||
] }
|
||||
,
|
||||
|
||||
Reference in New Issue
Block a user