Jump to content

A Tool for Converting lat/lon coordinates


Recommended Posts

I've read some posts about converting lat/lon coordinates from degree, minute, second to decimal format, as well as setting up coordinates from a radial/distance from a fix, and being the lazy person that I am, created a little stand-alone utility that reads your sector file, and converts a VOR, AIRPORT, INTERSECTION, or RUNWAY that you select to degree decimal format and DDD:MM:SS, and if you wish, you can then set a radial/distance offest to the fix, which can be copied to the clipboard to aid in creating senerio files, or adding new waypoints into your sector file.

 

Feel free to try it, it's written for any Win32 OS, and is a standalone utility.

 

http://ghresume.us/downloads/coorddecoder.zip

 

I hope you like it, please let me know what you think

 

 

Thanks

 

Gerry Hattendorf

Edited by Guest

Gerry Hattendorf

ZLA Webmaster

VATSIM Supervisor

Link to comment
Share on other sites

Let me be the first to say terrific and many thanks

 

And as usual we are greedy.....is there a way you could also allow for the manual input of the coordinates and then have your program convert it? Reason I ask is specifically when placing the aircraft on the ground on a runway...or maybe you could read in the runway numbers from the sector file? As I said greedy

 

Thanks a bunch for this

Bill

VATSIM Supervisor (ret'd)

Link to comment
Share on other sites

Let me be the first to say terrific and many thanks

 

And as usual we are greedy.....is there a way you could also allow for the manual input of the coordinates and then have your program convert it? Reason I ask is specifically when placing the aircraft on the ground on a runway...or maybe you could read in the runway numbers from the sector file? As I said greedy

 

Thanks a bunch for this

 

Bill,

 

Thank you for the kind words Are you looking to just convert DD:MM:SS format to decimal degrees, or are you trying to do a reverse lookup for the closest fix? If I understand you, your trying to setup aircraft in position on the runway end?

 

Gerry

Gerry Hattendorf

ZLA Webmaster

VATSIM Supervisor

Link to comment
Share on other sites

..or maybe you could read in the runway numbers from the sector file? As I said greedy

 

Okay, you ask, and you shall recieve! (dont ask for money though )

 

Verision 1.2 is available for download at the original link, the enhancements I've made are:

 

  • Automatically loads the default sector Magnetic Variation
    Displays the version name of the sector file
    Runway threshold coordinanates added when an airport fix is selected
    Runway selection is displayed on a drop-down list (combo-box)
    Added smart logic for the and keys to eliminate "mousing-around"

 

If you have any questions or comments, please let me know.

 

Thanks!

Gerry Hattendorf

ZLA Webmaster

VATSIM Supervisor

Link to comment
Share on other sites

Thanks for the update Gerry. Yes I was trying to get the runway information. I see where you have added that feature, but so far on all the sector files I have tested the runway shows "none" after I enter the airport fix. Maybe I am doing it wrong?

 

Great work

Bill

VATSIM Supervisor (ret'd)

Link to comment
Share on other sites

Thanks for the update Gerry. Yes I was trying to get the runway information. I see where you have added that feature, but so far on all the sector files I have tested the runway shows "none" after I enter the airport fix. Maybe I am doing it wrong?

 

Great work

 

What sector file are you using?

Gerry Hattendorf

ZLA Webmaster

VATSIM Supervisor

Link to comment
Share on other sites

Thanks for the update Gerry. Yes I was trying to get the runway information. I see where you have added that feature, but so far on all the sector files I have tested the runway shows "none" after I enter the airport fix. Maybe I am doing it wrong?

 

Great work

 

What sector file are you using?

 

I tried a Miami Ground and other Miami files..also some in Jamaica MKJS/MKJP...

Bill

VATSIM Supervisor (ret'd)

Link to comment
Share on other sites

You might want to try the Center sector files, because all sector files are built a bit differently. (to say it nicely)

 

If you not able to see anything in the Runway combo box, use the "Open Sector File for Editing" from the File menu, and then search for "[RUNWAY]", and then look for your airport. It seems that if it's not defined in your sector file, then it will not load any runway coordinates.

 

If your still having problems, let me know the file name of the sector file your using, so that I can examine it!

 

Cheers!

 

Gerry

Gerry Hattendorf

ZLA Webmaster

VATSIM Supervisor

Link to comment
Share on other sites

You might want to try the Center sector files, because all sector files are built a bit differently. (to say it nicely)

 

If you not able to see anything in the Runway combo box, use the "Open Sector File for Editing" from the File menu, and then search for "[RUNWAY]", and then look for your airport. It seems that if it's not defined in your sector file, then it will not load any runway coordinates.

 

If your still having problems, let me know the file name of the sector file your using, so that I can examine it!

 

Cheers!

 

Gerry

 

I tried a center file and it worked ok. I also examined the other files to see what the difference was in the RUNWAY section and the format seems to be the same and it would not load. Not an expert on sector files but something else is probably wrong. But as you diplomatically said not all files are created the same Since the center files have more fixes etc I will work with it so no need to pursue any further unless you want me to send you the ground file for research..

 

Thanks again for the program really appreciate it

 

EDIT: Went back and checked and got it to work...seems the program prefers KMIA instead of MIA for airport and runway or more accurately a four place code instead of three All is well thanks again for the work

Bill

VATSIM Supervisor (ret'd)

Link to comment
Share on other sites

For anybody that's interested, I've released v1.22, which adds the lat/lon coordinate display in easy to read DD:MM:SS format, and fixed some math caluclations as C++ math libraries don't play well all the time!

 

http://ghresume.us/downloads/coorddecoder.zip

 

Gerry

Gerry Hattendorf

ZLA Webmaster

VATSIM Supervisor

Link to comment
Share on other sites

fixed some math caluclations as C++ math libraries don't play well all the time!

 

Gerry

 

You can say that again! What algorithm are you using for radial/distance from fix calculations? I'm trying to code a function for Vincenty's direct method but I am getting an underflow error.

 

Drop me an email and I can send you the code if you wish!

 

Gerry

Gerry Hattendorf

ZLA Webmaster

VATSIM Supervisor

Link to comment
Share on other sites

  • 2 months later...
You might want to try the Center sector files, because all sector files are built a bit differently. (to say it nicely)

 

If you not able to see anything in the Runway combo box, use the "Open Sector File for Editing" from the File menu, and then search for "[RUNWAY]", and then look for your airport. It seems that if it's not defined in your sector file, then it will not load any runway coordinates.

 

If your still having problems, let me know the file name of the sector file your using, so that I can examine it!

 

Cheers!

 

Gerry

 

Gerry - as part of the "hit squad" project, I'm trying to do a little tweaking of the India sector file, and also cannot see runway info. We -have- a [Runway] section, and the relevant lines for mumbai, which is what I'm trying to work with, read as follows:

 

09 27 090 270 N019.05.15.651 E072.50.54.433 N019.05.17.628 E072.52.54.264 ;VABB Chhatrapati Shivaji Intl

14 32 135 315 N019.05.53.414 E072.51.29.349 N019.04.47.543 E072.52.41.530 ;VABB Chhatrapati Shivaji Intl

 

Any ideas why it's not showing me "rwy" info? (if you need to load the sector file yourself it's at http://india.vatsim.info/web/downloads/india_0606.zip

 

Jeff Clark

Link to comment
Share on other sites

Hey Jeff,

 

The reason why it wasn't loading the runways as most of the sector files would define the airport [Mod - Happy Thoughts]ociated with the runway at the end of the string prefaced by ;- (so much for a standard format!!)

 

Anyway, I recoded the program to read them both ways, so if you would like to download it again, (same link) you should be good to go!

 

Cheers!

Gerry Hattendorf

ZLA Webmaster

VATSIM Supervisor

Link to comment
Share on other sites

  • 7 years later...

Hello! I am new to all of this and extremely excited to be in the process of being trained! I am extremely tech savvy (troubleshooting/settings issues/resolving any issue windows or mac/adequate knowledge of java and javascript) and I have a macbook pro. All of the programs I have seen so far are windows programs with no mac option which surprises me because mac programs generally tend to be easier to build. I have yet to set up bootcamp and I was wondering if this tool and/or any of the other programs used have mac versions or if there is a better utility than bootcamp to run them. Thanks for your help!

Link to comment
Share on other sites

  • 1 year later...
  • 4 months later...

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
 Share

×
×
  • Create New...