AirNav RadarBox
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
 


Author Topic: Routes database .csv file  (Read 6012 times)

0 Members and 1 Guest are viewing this topic.

knight01

  • Sr. Member
  • ****
  • Posts: 298
Routes database .csv file
« on: July 08, 2010, 08:23:02 PM »
I've made a .txt and .csv file for some of the alphanumeric Heathrow flights.  I got the data from this thread: http://www.airnavsystems.com/forum/index.php?topic=5190.0

and ACARS log from here:
http://www.lhr-lgw.co.uk/heathrow%20main.html

Most of the alphanumeric callsign flights are included (BMA,BAW,VIR,SWR,DLH, etc).  If any are missing, please add them to the list and post the file.

Somebody mentioned in the above referenced thread, the .csv file can be imported into the NavData.db3 using SQLmaestro.  Backup your original file before modifying.
« Last Edit: August 16, 2010, 12:43:35 PM by knight01 »

tarbat

  • ShipTrax Beta Testers
  • Hero Member
  • *
  • Posts: 4219
    • Radarbox at Easter Ross
Re: Routes database .csv file
« Reply #1 on: July 08, 2010, 08:30:52 PM »
Somebody mentioned in the above referenced thread, the .csv file can be imported into the NavData.db3 using SQLmaestro.

Note that you can also use the SQLite command line interface to import CSV files.

Create a file called routes.csv, containing data in this format:
AEE602,LGAV,EGLL,,20100708090000
AEE603,EGLL,LGAV,,20100708090000


Run the sqlite command line
P:\AirNav Systems\AirNav RadarBox>sqlite3 data/navdata.db3
SQLite version 3.6.23.1
Enter ".help" for instructions
Enter SQL statements terminated with a ";"
sqlite> .separator ","
sqlite> .import routes.csv routes
sqlite> .exit
« Last Edit: July 08, 2010, 09:02:41 PM by tarbat »

BlinkNFG

  • Jr. Member
  • **
  • Posts: 64
Re: Routes database .csv file
« Reply #2 on: August 14, 2010, 05:07:44 PM »
Hi,

I just tried to import the routes using both TkSQLite and sqLite 3 but I get a "FN is not unique" error each time.  Will it not work if I have some of the flights already?

Any help appreciated.

thanks

Jon
« Last Edit: August 14, 2010, 05:41:35 PM by BlinkNFG »

tarbat

  • ShipTrax Beta Testers
  • Hero Member
  • *
  • Posts: 4219
    • Radarbox at Easter Ross
Re: Routes database .csv file
« Reply #3 on: August 15, 2010, 07:27:17 AM »
Did you try the command line interface?

BlinkNFG

  • Jr. Member
  • **
  • Posts: 64
Re: Routes database .csv file
« Reply #4 on: August 15, 2010, 10:37:36 AM »
Hi,

Yeah I tried that - it came up with the same message.

In the end I imported airline by airline - deleting the current entries before importing the new.  I got the info from libhomeradar and it has made a big difference - I now have a LOT more route info (esp alpha-numeric callsigns)

Jon



It has made a big