mirror of
https://github.com/felt/tippecanoe.git
synced 2026-12-05 06:41:41 +01:00
Only skip corner-touching hot pixels for edges without intersections
The previous change, which stopped wagyu from snapping an edge to a hot pixel whose corner it only touches, made two of upstream wagyu's 3320 geometry fixtures produce spikes. When an intersection lies exactly on a pixel corner, it is rounded to that pixel, and the edges that intersect there must be snapped to it; and once an edge has been snapped to one hot pixel, its new segments may pass through the interior of another hot pixel whose corner the original edge only touched. So now the inward rounding of the hot pixel range only applies to an edge that intersects no other edge (which is recorded while the hot pixels are built), and never to a hot pixel that is the rounded location of an intersection (which are now kept in a separate sorted list). Edges that are part of intersections are snapped exactly as before. With this, upstream wagyu's unit tests and all 3320 of its geometry fixtures pass, and the narrow diagonal Census block in Dane County is still preserved. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01CQ6vQUJtmGZnqz7RmVYQaJ
This commit is contained in:
@@ -91,7 +91,7 @@
|
||||
,
|
||||
{ "type": "Feature", "properties": { "name": "R" }, "geometry": { "type": "Polygon", "coordinates": [ [ [ -99.448242, 39.749434 ], [ -99.420776, 39.740986 ], [ -99.385071, 39.743098 ], [ -99.354858, 39.728313 ], [ -99.319153, 39.726201 ], [ -99.297180, 39.717751 ], [ -99.297180, 39.713525 ], [ -99.319153, 39.721976 ], [ -99.354858, 39.724089 ], [ -99.385071, 39.738874 ], [ -99.420776, 39.736762 ], [ -99.448242, 39.745210 ], [ -99.489441, 39.728313 ], [ -99.519653, 39.728313 ], [ -99.555359, 39.713525 ], [ -99.582825, 39.719863 ], [ -99.618530, 39.715638 ], [ -99.654236, 39.732538 ], [ -99.684448, 39.732538 ], [ -99.717407, 39.745210 ], [ -99.753113, 39.734650 ], [ -99.783325, 39.736762 ], [ -99.819031, 39.719863 ], [ -99.854736, 39.719863 ], [ -99.882202, 39.711413 ], [ -99.917908, 39.724089 ], [ -99.953613, 39.726201 ], [ -99.981079, 39.740986 ], [ -100.000305, 39.740986 ], [ -100.000305, 39.745210 ], [ -99.981079, 39.745210 ], [ -99.953613, 39.730426 ], [ -99.917908, 39.728313 ], [ -99.882202, 39.715638 ], [ -99.854736, 39.724089 ], [ -99.819031, 39.724089 ], [ -99.783325, 39.740986 ], [ -99.753113, 39.738874 ], [ -99.717407, 39.749434 ], [ -99.684448, 39.736762 ], [ -99.654236, 39.736762 ], [ -99.618530, 39.719863 ], [ -99.582825, 39.724089 ], [ -99.555359, 39.717751 ], [ -99.519653, 39.732538 ], [ -99.489441, 39.732538 ], [ -99.448242, 39.749434 ] ] ] } }
|
||||
,
|
||||
{ "type": "Feature", "properties": { "name": "P" }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -99.717407, 40.000268 ], [ -99.747620, 39.985538 ], [ -99.753113, 39.985538 ], [ -99.717407, 40.000268 ] ] ], [ [ [ -99.783325, 39.989747 ], [ -99.813538, 39.985538 ], [ -99.819031, 39.987643 ], [ -99.783325, 39.989747 ] ] ], [ [ [ -99.851990, 40.002372 ], [ -99.846497, 40.002372 ], [ -99.824524, 39.989747 ], [ -99.851990, 40.002372 ] ] ], [ [ [ -99.582825, 40.010787 ], [ -99.555359, 39.996060 ], [ -99.519653, 39.993956 ], [ -99.555359, 39.993956 ], [ -99.582825, 40.010787 ] ] ] ] } }
|
||||
{ "type": "Feature", "properties": { "name": "P" }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -99.717407, 40.000268 ], [ -99.747620, 39.985538 ], [ -99.753113, 39.985538 ], [ -99.717407, 40.000268 ] ] ], [ [ [ -99.783325, 39.989747 ], [ -99.813538, 39.985538 ], [ -99.819031, 39.987643 ], [ -99.783325, 39.989747 ] ] ], [ [ [ -99.582825, 40.010787 ], [ -99.555359, 39.996060 ], [ -99.519653, 39.993956 ], [ -99.555359, 39.993956 ], [ -99.582825, 40.010787 ] ] ] ] } }
|
||||
,
|
||||
{ "type": "Feature", "properties": { "name": "A" }, "geometry": { "type": "Polygon", "coordinates": [ [ [ -99.297180, 40.071766 ], [ -99.297180, 40.006580 ], [ -99.319153, 40.017098 ], [ -99.354858, 40.008683 ], [ -99.385071, 40.010787 ], [ -99.420776, 39.993956 ], [ -99.453735, 39.993956 ], [ -99.483948, 39.983434 ], [ -99.519653, 39.993956 ], [ -99.555359, 39.996060 ], [ -99.582825, 40.010787 ], [ -99.618530, 40.008683 ], [ -99.648743, 40.017098 ], [ -99.684448, 40.002372 ], [ -99.717407, 40.000268 ], [ -99.753113, 39.985538 ], [ -99.783325, 39.989747 ], [ -99.819031, 39.987643 ], [ -99.846497, 40.002372 ], [ -99.882202, 40.004476 ], [ -99.917908, 40.017098 ], [ -99.953613, 40.006580 ], [ -99.981079, 40.008683 ], [ -100.000305, 40.000268 ], [ -100.000305, 40.071766 ], [ -99.297180, 40.071766 ] ] ] } }
|
||||
,
|
||||
|
||||
Reference in New Issue
Block a user