Giter VIP home page Giter VIP logo

phpvms_navdata's Introduction

How to load NAVDATA for phpVMS
-------------

This script needs to be cleaned up and fixed, it's mostly hardcoded.
Change the database parameters in the "db.php" file. If you set it to
your phpVMS database, it will right directly to the proper phpvms_navdata
table. 

If not writing directly to phpVMS, use the following SQL to create the table:


CREATE TABLE IF NOT EXISTS `phpvms_navdata` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `name` varchar(7) NOT NULL,
  `title` varchar(25) NOT NULL,
  `airway` varchar(7) DEFAULT NULL,
  `airway_type` varchar(1) DEFAULT NULL,
  `seq` int(11) NOT NULL,
  `loc` varchar(4) NOT NULL,
  `lat` float(8,6) NOT NULL,
  `lng` float(9,6) NOT NULL,
  `freq` varchar(7) NOT NULL,
  `type` int(11) NOT NULL,
  PRIMARY KEY (`id`),
  KEY `name` (`name`),
  KEY `airway` (`airway`)
) ENGINE=MyISAM  DEFAULT CHARSET=latin1 AUTO_INCREMENT=89432 ;




Getting the data
--------------

Some of this data can be huge

In the faa folder, download the FAA 56 day NASR Subscription:
http://nfdc.faa.gov/fadds/index.jsp

This requires a free subscription. They do send update notices when a new
56-day is available.

Extract the zip into the faa folder (so all the files are in that folder)

Next, get the XPLANE data, from:
http://data.x-plane.com/get_data.html

Download the X-Plane 9.00 version. Extract that into the xplane folder 
That will add a Resources folder with data in that.

The import script will attempt to get the latest fsbuild data, if not,
you can download it from the FSBUILD home page, and extract the files 
in the FSBUILD folder



Running the script
----------------

On the command line, to set the permissions:

  chmod +x ./importdata
 
Then run it:

  ./importdata

That will write the temporary nav to the phpvms_navdata table, and then
create a dump of the navdata.sql file as well. You should be set then

phpvms_navdata's People

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.