Factual / geo

Clojure library for working with geohashes, polygons, and other world geometry
Eclipse Public License 1.0
301 stars 17 forks source link

Fix latitude and longitude for non-WGS84 JTS points #27

Closed willcohen closed 6 years ago

willcohen commented 6 years ago

geo.spatial's latitude and longitude are still naively calling X and Y. For non-4326 point, those should be transformed first.

willcohen commented 6 years ago

@worace This bug got me today on a project -- this PR also adds a test to check lat/lng on non-4326 SRIDs. While this is a change to the Point protocol, latitude and longitude continue to operate under the assumption that Coordinates are already in WGS84.