EvilZone

Programming and Scripting => Other => : proxx August 09, 2013, 11:49:06 AM

: Need help on programming/calculation.
: proxx August 09, 2013, 11:49:06 AM
Alright so it should be pretty simple but im a total noob when it comes this stuff.
37.4192008972 -122.057403564
These are latitude and longitude values.
I want to project them on a flat surface so in pixels x,y coordinates.

So on a screen of 1920x1080 its  should for example be 931,296.

Preferably in python as thats the language im coding it in.

Anyone?
: Re: Need help on programming/calculation.
: Deque August 10, 2013, 01:24:08 PM
Read this: http://stackoverflow.com/questions/5983099/converting-longitude-latitude-to-x-y-coordinate (http://stackoverflow.com/questions/5983099/converting-longitude-latitude-to-x-y-coordinate)
https://en.wikipedia.org/wiki/Mercator_projection

The stackoverflow solution is in Java, but maybe it helps.
: Re: Need help on programming/calculation.
: proxx August 10, 2013, 01:54:55 PM
Thanks ma'am ill take a look at that.
I really should have paid more attention to math, thats often just to virtual for me.