![]() You have to accept some kind of deformation. When you convert lat/lon coordinates from the sphere to x/y coordinates in the plane, you cannot hope that all lengths will be preserved by this operation. There is no isometric map from the sphere to the plane. YPos = (app.radius) * s(latitude) Īlso i tried this link but still not work with me well!Īny help how to convert from(latitude, longitude) to (x,y) ? ZPos = (app.radius) * Math.sin(latitude) * Math.sin(longitude) XPos = (app.radius) * Math.sin(latitude) * s(longitude) One of the solution i found the following, but it doesn't give me correct answer! latitude = Math.PI * latitude / 180 (3) then again calculate distance between the two points in the x,y coordinatesĪnd see if it give me the same result in point(1) or not. (2) then convert the two positions into x,y coordinates. (1) firstly, i take two positions and calculate the distance between them using maps. I am following these steps to test the answer: ![]() I found many links about this topic and applied it, but it doesn't give me the correct answer! I want to convert GPS location (latitude, longitude) into x,y coordinates. ![]()
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |