I try to transform EPSG3857 to EPSG4326(WGS84)
EPSG3857 point has latitude 4516998.6971446longitude 14129074.6860330
in rails console (with ffi-proj4 gem)
2.1.5 :014 > location # { :id => 21, :latitude => "4516998.6971446", :longitude => "14129074.6860330", }2.1.5 :015 > point = Proj4:
oint.new(location.latitude.to_f, location.longitude.to_f) => #2.1.5 :016 > p_4326 = Proj4:
rojection.new(["init=epsg:4326"]) => #2.1.5 :017 > p_3857 = Proj4:
rojection.new(["init=epsg:3857"]) => #2.1.5 :018 > p_3857.transform(p_4326, point) => #The return value is x=2.2152353713996735, y=0.6554891166954162
I think this is wrong value.Becasue of correct WGS 84 location is latitude 37.5567599 longitude 126.9236374
How can i fix it?(proj4rb and ffi-proj4 both returns same value)
أكثر...
EPSG3857 point has latitude 4516998.6971446longitude 14129074.6860330
in rails console (with ffi-proj4 gem)
2.1.5 :014 > location # { :id => 21, :latitude => "4516998.6971446", :longitude => "14129074.6860330", }2.1.5 :015 > point = Proj4:
I think this is wrong value.Becasue of correct WGS 84 location is latitude 37.5567599 longitude 126.9236374
How can i fix it?(proj4rb and ffi-proj4 both returns same value)
أكثر...