Skip to content
Prev 23638 / 29559 Next

gUnaryUnion Not Dissolving Correctly

On Thu, 5 Nov 2015 at 01:10 Roger Bivand <Roger.Bivand at nhh.no> wrote:

            
It can be fixed by changing "1287248.96712942" to "1287248.96712943", so
really the creator should not have had those values on input.  There's no
easy way out without topology.

This brought out some interesting issues for work I've been doing using the
"near-Delaunay triangulation" in RTriangle, and that requires a normalized
set of vertices (no duplicate vertices) which on its own presents
interesting problems. I have a related issue where a parallel (latitude)
line needs many vertices to look "smooth" on a polar projection, but when
building a mesh with triangles it's really best to allow relatively coarse
segmented boundaries rather than have many elements at parallels. The
Triangle library does not consider these hexagon coordinates to be
duplicates, so there are two vertical segments between the two bottom polys
at

 points(coordinates(as(as(spoly, "SpatialLines"), "SpatialPoints"))[c(3,
4), ])

Thanks for the reminder about cleangeo, I'll have closer look.

cheers, Mike.