conversion of longitude/latitude into cartesian coordinates using js function

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • shashikala
    New Member
    • Aug 2013
    • 12

    conversion of longitude/latitude into cartesian coordinates using js function

    hey all,
    I am working on a project in advanced java using netbeans in which i need to calculate the latitude and longitude of an airport into cartesian coordinates. i have no idea to that, well math scares me. any idea how to do the conversion? can that conversion code be converted into a javascript function?
    further i need an advise too. how should i calculate coordinates of two airplanes when they are flying so that i can restrict them from colliding each other?
    any help will be really appreciated. thanks in advance :)
  • Dormilich
    Recognized Expert Expert
    • Aug 2008
    • 8694

    #2
    I am working on a project in advanced java using netbeans in which i need to calculate the latitude and longitude of an airport into cartesian coordinates.
    note: Java =/= JavaScript.

    second, for the conversion you need to know a little bit more:
    - where is the point-of-origin of the cartesian coordinate system?
    - you also need the distance from the point-of-origin in the polar coordinate system (lattitude and longitude alone do not define a point, the define a line)

    ideas for the conversion you will find in Wikipedia.

    how should i calculate coordinates of two airplanes when they are flying so that i can restrict them from colliding each other?
    vectorial Maths.

    Comment

    • shashikala
      New Member
      • Aug 2013
      • 12

      #3
      Thanks dormilich.
      The refrence is the earth with respect to which i am doing all calculations. The altitude is measured from sea level

      Comment

      • Dormilich
        Recognized Expert Expert
        • Aug 2008
        • 8694

        #4
        The refrence is the earth
        Earth is a roughly spherical body of ~10¹² km³, that’s just a little bit too big for a point-of-origin.


        The altitude is measured from sea level
        as long as you know the altitude (for any object (including airports) you want to do the conversion), there’s no problem.

        Comment

        Working...