bocops / open-geotiling

Helper functions for Open Location Code: neighbors, adjacency, distance and direction
Apache License 2.0
2 stars 1 forks source link

TileAreaPolygonalBuilder does not wrap (issue with 180° longitude and poles) #3

Open bocops opened 6 years ago

bocops commented 6 years ago

It is currently not possible to have a polygon that overlaps with the 180° line of longitude, or one of the poles. If such polygon is used as input, it will be interpreted as going the other way around, resulting in huge (and wrong!) areas being returned.

Workaround, if necessary: Create two polygons, one on each side of the 180° longitude, then merge resulting tile areas.