osmandapp/Osmand — pull request #319 by sanderd17 (2012-09-18 11:08:13+00:00)
Title: Multipolygon

Fixing some of the remaining issues.

* Simplify Ring class, remove one of the caches that wasn't really used, reduce the number of methods and make methods smaller.
* re-introducing the compareTo for Rings, but this time based on area calculation. So transitivity is respected
* fix remaining jUnit test problem and create a new junit test
* there are still ways created with a random long id. But these ways can never be read outside the Ring object itself. So it's impossible they get in the database.

Results:

* All Junit tests succeeed
* Multipolygons with multiple outer rings are processed correctly and displayed correctly in OsmAnd
* Address indexing is still correct
* logging shows multipolygons with problems,

Still to do:
* fix the issue with boundaries intersecting multipolygons (see Bodensee)