mirror of
https://github.com/felt/tippecanoe.git
synced 2026-10-05 18:05:42 +02:00
Round coordinates instead of truncating them (#60)
* Round coordinates instead of truncating them * Update all the tests for coordinate rounding changes * Curses, integer division still truncates * Fix tests * Also round instead of shifting when looking for no-op linetos * Should I worry that the same change for moveto doesn't change any tests? * Also round instead of shifting when scaling down to maxzoom resolution * Replace another explicit shift, for origin point * Round instead of shift when writing clipped geometries to the next zoom * Fix low-zoom gridding and smaller-than-a-pixel checks * Don't guess an excessively large maxzoom when there is only one feature * Add a test for guessing the maxzoom of a single point * Explicitly sort by index if no other order distinguishes features * Another affected test
This commit is contained in:
+3594
-3596
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
+3597
-3599
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
+2354
-2356
File diff suppressed because it is too large
Load Diff
+1034
-1032
File diff suppressed because it is too large
Load Diff
+10032
-10026
File diff suppressed because it is too large
Load Diff
+6129
-6125
File diff suppressed because it is too large
Load Diff
+6025
-6021
File diff suppressed because it is too large
Load Diff
+6039
-6029
File diff suppressed because it is too large
Load Diff
+6163
-6155
File diff suppressed because it is too large
Load Diff
+2386
-2386
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
+8921
-8917
File diff suppressed because it is too large
Load Diff
+10342
-10336
File diff suppressed because it is too large
Load Diff
+8760
-8754
File diff suppressed because it is too large
Load Diff
+3260
-3264
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
+3522
-3522
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user