osmandapp/Osmand — pull request #311 by sanderd18 (2012-09-13 12:35:24+00:00)
Title: Fix last Junit test + Bodensee issue

The last Junit test is trivally fixed.

For the bodensee issue, I created a method that should calculate the intersection of two Rings. So if you do

bodenseeMP.closeWithOtherRing(boundaryOfSwitserlandRing), it should return a complete Ring with the part of the Bodensee in Switserland.

Because this has to happen during indexing, and I don't think I can create extra nodes, there is a small overshoot. The lake will go one node over the boundary, to return and follow it. When installing the maps of the other side of the boundary, those overshoots should be invisible because of overlap.

Note, only the calculation method has been made, nothing has changed in the indexing method. It's still a matter of finding the right boundary to intersect with there.

It's also untested (this would be my next job), so it certainly can contain off-by-one errors, or other things.