I have some problems with the SpatialRuleIndex as it somehow does not properly detect "is in Switzerland".
See this issue and why is checkDiff not just resolution/2 but this?
When I grab an area which should be completely inside Switzerland I still get SpatialRule.EMPTY for several coordinates. I'm currently looking into this issue...
Ah I understand this now. So we just want to make sure that the check point is not on the border and reduce this difference a bit.
When I grab an area which should be completely inside Switzerland I still get SpatialRule.EMPTY for several coordinates
Ah, the problem is that Switzerland contains a hole and we should throw an exception as we do not support it yet (have not fully migrated the Polygon class to JTS)
Ah ok, that explains it :).
Yes, so at first I only had one check in the center of the tile, which failed sometimes, so I added checks that are "close" to the border, it might still fail for some situations.