You are not logged in.

Announcement

*** NOTICE: forum.openstreetmap.org is being retired. Please request a category for your community in the new ones as soon as possible using this process, which will allow you to propose your community moderators.
Please create new topics on the new site at community.openstreetmap.org. We expect the migration of data will take a few weeks, you can follow its progress here.***

#1 2011-07-15 01:19:31

NirX
Member
Registered: 2011-07-15
Posts: 3

Getting big numbers in LatLon.. help !

I am pretty sure this has something to do with projection coordinates rather than the GPS coordinates...
I would really appreciate it if someone could help me convert these coordinates back to normal GPS.
btw, for Israel, is that projection ok or should I have used  EPSG:2039 ? as in here : http://spatialreference.org/ref/epsg/2039/



http://showreel2009.com/maps/openStreetMap.html

Here's the site showing the problem. Just click around and you'll get the read I am getting...
Thanks !

Offline

#2 2011-10-13 04:54:04

Willaim
Member
From: Adelaide
Registered: 2011-10-13
Posts: 3

Re: Getting big numbers in LatLon.. help !

Hi man, It happened to me 2 weeks ago. Try this. I made it in vb.net
Public Shared Function WGS1984toLonLat(ByVal x As Double, ByVal y As Double) As Double()
        Dim ret(1) As Double
        ret(0) = (x / 20037508.34) * 180
        ret(0) = 180 / Math.PI * (2 * Math.Atan(Math.Exp(ret(0) * Math.PI / 180)) - Math.PI / 2)
        ret(1) = (y / 20037508.34) * 180
        Return ret
    End Function

Offline

Board footer

Powered by FluxBB