Skip to content

Commit 3700fc3

Browse files
committed
Filter out zero area polygonal shards
1 parent d0c7394 commit 3700fc3

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/transformations/correction/cut_at_antimeridian.jl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -301,6 +301,8 @@ function cut_at_antimeridian(
301301
end
302302
end
303303
end
304+
305+
filter!(poly -> !iszero(GO.area(poly)), result_polygons)
304306

305307
return length(result_polygons) == 1 ? result_polygons[1] : GI.MultiPolygon(result_polygons)
306308
end

0 commit comments

Comments
 (0)