473,383 Members | 1,789 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,383 software developers and data experts.

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 :)
Aug 30 '13 #1
3 1930
Dormilich
8,658 Expert Mod 8TB
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.
Aug 30 '13 #2
Thanks dormilich.
The refrence is the earth with respect to which i am doing all calculations. The altitude is measured from sea level
Aug 30 '13 #3
Dormilich
8,658 Expert Mod 8TB
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.
Aug 30 '13 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

5
by: Gerrit Holl | last post by:
Hi, the FAQ says: > For example, a Cartesian coordinate is appropriately represented as a > tuple of two or three numbers. I find it strange to use tuples for a coordinate. After all, a...
16
by: WittyGuy | last post by:
Hi, What is the major difference between function overloading and function templates? Thanks! http://www.gotw.ca/resources/clcm.htm for info about ]
1
by: jack | last post by:
not sure exactly where I should ask this question, but im looking for a database of Australian Postcodes that included the longitude/latitude. Does anyone know of such a thing? Preferably...
1
by: Mike | last post by:
In C, we can typedef pointer to functions, and therefore use function tables. But what's the advantage of using function table? Thanks, Mike
2
by: Newbie | last post by:
Could someone help: I have been searching the web trying to figure out a way to use function key's in my vb.net 2003 program (No luck!). What I would like to do is enable the user to press (for...
3
by: drsantosh82 | last post by:
Hi, I am trying to implement a callback routine using function pointers. Basically, I am trying to avoid tying my callback invoking member to a particular class. Let me explain my problem...
2
by: koolest1 | last post by:
Here's a code for scan conversion of a line using DDA algorithm.... but i guess there's some problem in the sense that not every kind of line is getting plotted properly (at least that's what i...
5
by: arial | last post by:
Hi all, I have a sql .bak file which i need to convert into xml file. can someone help with this? pointing out to some tutorial or some suggetion on how to start? Thak you,
1
by: alan5 | last post by:
I want to answer on the topic australian postcode db with longitude/latitude posted by jack. He wrote: not sure exactly where I should ask this question, but im looking for a database of...
2
by: nikhizumi | last post by:
advantages of using FUNCTION in C++
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.