Pages: [1] :: one page |
|
Author |
Thread Statistics | Show CCP posts - 0 post(s) |
Tempster102
Pilots of Epic Silent Infinity
0
|
Posted - 2012.09.11 12:10:00 -
[1] - Quote
Hello,
I'm trying to plot the EVE map onto a Google Map using Googles API but I'm having a hard time getting the X/Y/Z converted to Lat/Long. Does anyone now how to do this?
I already have all the static data imported into MySQL, I'm just trying to convert the coordinates before returning the XML.
Note: Math isn't my strongest subject.
Thanks |
Vogue
RAND Punch and Judy Show
1
|
Posted - 2012.09.11 14:04:00 -
[2] - Quote
Have a look at this: http://www.scribd.com/doc/2569355/Geo-Distance-Search-with-MySQL. Lots of intense maths there. Myself I tried to learn maths again with Khan Academy. Got to long division so far |
Tempster102
Pilots of Epic Silent Infinity
0
|
Posted - 2012.09.11 17:31:00 -
[3] - Quote
Hey!
Thanks for your reply, but that make's no sense what so every to me, it might if I've done something like this before... But this is the first time. I did seek help on a programming forum and someone gave me:
lat = asin(z / R) lon = atan2(y, x)
But even when I do the math using the data dump the pins the appear on the map look nothing like the EVE map... Any other suggestions?
Thanks |
Trenker
18
|
Posted - 2012.09.11 18:53:00 -
[4] - Quote
lat = x lng = z
y = depth which is not needed here, as we want a flat 2D display, with no perspective distortion
lat / lng are between -90 and 90, while the eve points are a LOT larger, so basically you need a multiplicator to scale it down.
eg.: 1.3434e16 x SOME_MAGIC_NUMBER = Something between 0 and 90
I mapped it onto a SVG once (see this post on creating a SVG map). Maybe that helps. Keep in mind that the script in the post, moves the points because a SVG has its 0/0 in the top left, you won't want this at gmaps. |
Nomad I
University of Caille Gallente Federation
118
|
Posted - 2012.09.12 07:43:00 -
[5] - Quote
It makes no sense. Because the math of google maps is related to a sphere while you want a 3d coordinate projection on a 2d plane (like a shadow) Of course you are able to project 3d coordinated on a really huge sphere to avoid problems at the at the outer regions. However you need to transform your eve coordinates so that the eve universes will be projected at a small part of the earth sphere. |
|
|
|
Pages: [1] :: one page |
First page | Previous page | Next page | Last page |