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:
Erica Fischer
2023-07-10 15:54:21 -07:00
committed by GitHub
parent b09a880822
commit c1051232ad
59 changed files with 282 additions and 280 deletions
@@ -96,7 +96,7 @@
,
{ "type": "Feature", "properties": { "LINEARID": "1102654602215", "FULLNAME": "Macarthur", "RTTYP": "M", "MTFCC": "S1400" }, "geometry": { "type": "LineString", "coordinates": [ [ -122.252769, 37.817107 ], [ -122.252426, 37.816293 ] ] } }
,
{ "type": "Feature", "properties": { "LINEARID": "1104486090991", "FULLNAME": "Macarthur Fwy", "RTTYP": "M", "MTFCC": "S1100" }, "geometry": { "type": "LineString", "coordinates": [ [ -122.294655, 37.833107 ], [ -122.293625, 37.828497 ], [ -122.290878, 37.826870 ], [ -122.287788, 37.826328 ], [ -122.283325, 37.827141 ], [ -122.280922, 37.827141 ], [ -122.258949, 37.821718 ], [ -122.254143, 37.819277 ], [ -122.252769, 37.817921 ], [ -122.251740, 37.816022 ], [ -122.250366, 37.811954 ], [ -122.248650, 37.810326 ], [ -122.238693, 37.806800 ], [ -122.234230, 37.804630 ], [ -122.228394, 37.800832 ], [ -122.216377, 37.798120 ], [ -122.209854, 37.796221 ], [ -122.204704, 37.793508 ], [ -122.200241, 37.788895 ], [ -122.193031, 37.785368 ], [ -122.188911, 37.784283 ], [ -122.178268, 37.783469 ], [ -122.157326, 37.772614 ], [ -122.155266, 37.770443 ], [ -122.148056, 37.759587 ], [ -122.148056, 37.757959 ], [ -122.148399, 37.756601 ], [ -122.151833, 37.752801 ], [ -122.151489, 37.750087 ], [ -122.148743, 37.744929 ], [ -122.145653, 37.742214 ], [ -122.140503, 37.737055 ], [ -122.137756, 37.725108 ], [ -122.133293, 37.718590 ], [ -122.131233, 37.714245 ], [ -122.129173, 37.712344 ], [ -122.124367, 37.709628 ], [ -122.121620, 37.707455 ], [ -122.111664, 37.702294 ], [ -122.108231, 37.699578 ], [ -122.105827, 37.696861 ] ] } }
{ "type": "Feature", "properties": { "LINEARID": "1104486090991", "FULLNAME": "Macarthur Fwy", "RTTYP": "M", "MTFCC": "S1100" }, "geometry": { "type": "LineString", "coordinates": [ [ -122.294655, 37.833107 ], [ -122.293625, 37.828497 ], [ -122.290878, 37.826870 ], [ -122.287788, 37.826328 ], [ -122.283325, 37.827141 ], [ -122.280922, 37.827141 ], [ -122.258949, 37.821718 ], [ -122.254143, 37.819277 ], [ -122.252769, 37.817921 ], [ -122.251740, 37.816022 ], [ -122.250366, 37.811954 ], [ -122.248650, 37.810326 ], [ -122.238693, 37.806800 ], [ -122.234230, 37.804630 ], [ -122.228394, 37.800832 ], [ -122.216377, 37.798120 ], [ -122.209854, 37.796221 ], [ -122.204704, 37.793508 ], [ -122.200241, 37.788895 ], [ -122.193031, 37.785368 ], [ -122.188911, 37.784283 ], [ -122.178268, 37.783469 ], [ -122.157326, 37.772614 ], [ -122.155266, 37.770443 ], [ -122.148056, 37.759587 ], [ -122.148056, 37.757959 ], [ -122.148399, 37.756601 ], [ -122.151833, 37.752801 ], [ -122.151489, 37.750087 ], [ -122.148743, 37.744929 ], [ -122.145653, 37.742214 ], [ -122.143936, 37.740042 ], [ -122.140503, 37.737055 ], [ -122.137756, 37.725108 ], [ -122.133293, 37.718590 ], [ -122.131233, 37.714245 ], [ -122.129173, 37.712344 ], [ -122.124367, 37.709628 ], [ -122.121620, 37.707455 ], [ -122.111664, 37.702294 ], [ -122.108231, 37.699578 ], [ -122.105827, 37.696861 ] ] } }
,
{ "type": "Feature", "properties": { "LINEARID": "1102638069562", "FULLNAME": "Macarthur", "RTTYP": "M", "MTFCC": "S1400" }, "geometry": { "type": "LineString", "coordinates": [ [ -122.241440, 37.807343 ], [ -122.237320, 37.805715 ] ] } }
,