tidwall / geojson

GeoJSON for Go. Used by Tile38
MIT License
130 stars 28 forks source link

Remove longitude normalization calculations #13

Closed melbania closed 5 years ago

melbania commented 5 years ago

Removed the longitude normalization calculations in RectFromCenter function that were resulting in candidate reporting errors for edge-of-map cases in Tile38 (see tidwall/tile38#422) and added tests for those cases. Also, added comments and links to equation reference material to (hopefully) help explain what's going on in that function if further debugging or code changes are needed in the future.

tidwall commented 5 years ago

Looks good