-
Notifications
You must be signed in to change notification settings - Fork 10
Open
Labels
bugSomething isn't workingSomething isn't workingclippingAbout polygon clipping or processingAbout polygon clipping or processing
Description
When performing clipping on coverages, you often run into a situation where a polygon is fully enclosed by the coverage, but there is one point at which there are two outer polygon points and one inner polygon point. Here's what I mean:
import GeometryOps as GO, GeoInterface as GI
outer = GI.Polygon([GI.LinearRing(Tuple{Float64, Float64}[
(0, 0),
(1, 0),
(1, 0.5),
(0.5, 0.1),
(0.1, 0.5),
(0.5, 0.9),
(1, 0.5),
(1, 1),
(0, 1),
(0, 0)
])])
inner = GI.Polygon([GI.LinearRing(Tuple{Float64, Float64}[
(1, 0.5),
(0.5, 0.1),
(0.1, 0.5),
(0.5, 0.9),
(1, 0.5),
])])Now if you try to union, intersection or difference these, strange things happen.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workingclippingAbout polygon clipping or processingAbout polygon clipping or processing