473,698 Members | 2,690 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

conversion of longitude/latitude into cartesian coordinates using js function

12 New Member
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 1937
Dormilich
8,658 Recognized Expert Moderator Expert
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
shashikala
12 New Member
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 Recognized Expert Moderator Expert
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
3404
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 coordinate represents a position of an object. Suppose I have a game where the player has a position: isn't it stupid to use tuples rather
16
16277
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
3065
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 free...fingers crossed. many thanks jack
1
6244
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
8783
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 example) F4 and have a search dialog window come up. Or press 'Up' & 'Down' arrow's to toggle between two radio buttons? Thanks
3
1697
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 with an example. The code snippet below should help in explaining my problem better. class A
2
6584
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 think)... check it out plz... /*start*/ #include <graphics.h> #include <stdio.h> void drawaxes(); void slopelessthanone(double,double,double,double); void slopegreaterthanone(double,double,double,double); main()
5
10101
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
2739
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 Australian Postcodes that included the longitude/latitude. Yes, I know where to get Australian Postcodes that included the longitude/latitude. Please see here: http://www.getgeocode.com/postcodes/au/ Best Regads, Alan
2
6869
by: nikhizumi | last post by:
advantages of using FUNCTION in C++
0
8683
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8609
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
1
8901
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8871
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7739
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5862
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4622
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
2336
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2007
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.