mirror of
https://github.com/felt/tippecanoe.git
synced 2026-10-02 16:35:40 +02:00
Fix cases where nodes were not being added at the tile boundary
This commit is contained in:
@@ -1406,10 +1406,18 @@ bool clip_to_tile(serial_feature &sf, int z, long long buffer) {
|
||||
}
|
||||
}
|
||||
|
||||
if (quick == 0) {
|
||||
if (quick == 0) { // entirely outside the tile
|
||||
return true;
|
||||
}
|
||||
|
||||
// if quick == 3 the feature touches the buffer, not just the tile proper,
|
||||
// so we need to clip to add intersection points at the tile edge.
|
||||
|
||||
// if quick == 2 it touches the buffer and beyond, so likewise
|
||||
|
||||
// if quick == 1 we should be able to get away without clipping, because
|
||||
// the feature is entirely within the tile proper.
|
||||
|
||||
// Can't accept the quick check if guaranteeing no duplication, since the
|
||||
// overlap might have been in the buffer.
|
||||
if (quick != 1 || prevent[P_DUPLICATION]) {
|
||||
|
||||
Reference in New Issue
Block a user