Code Monkey home page Code Monkey logo

vfrsecchartmaker's Introduction

VfrSecChartMaker - Download continental US VFR sectional chart TIF files and translate them all into a single mbtiles database.

Instructions:

1.) requires node js and several sudo apt install applications (see below.)
2.) clone this repository - git clone https://github.com/N129BZ/VfrSecChartMaker.git
3.) clone the Mapbox mbtile application (see below) into the base VfrSecChartMaker directory.
4.) unzip clipshapes.zip to the base VfrSecChartMaker directory.
5.) from a terminal prompt in the VfrSecChartMaker directory, enter npm install
6.) run the app via command node makechart.js -d chartdate using a valid FAA sectional chart release date.
7.) go do something else, the process will take several hours to complete.

Command line arguments

The application accepts 2 arguments. Date is required, zoom range defaults to 5-11.

1.) The required date argument should be in the format -d mm-dd-YYYY
example: node makechart.js -d 10-07-2021

2.) The optional zoom range argument should be in the format -z n-n, or you can use a single zoom level n
examples: node makechart.js -d 10-07-2021 -z 4-10 or node.makechart.js -d 10-07-2021 -z 8

Install required utility applications

  • Note that on some versions of Ubuntu, python-imaging has been replaced by python-pil
sudo apt install        \   
        graphicsmagick  \
        imagemagick     \
        python-imaging  \
        gdal-bin        \
        nodejs          \
        node-sqlite3    \
        node.shelljs    \
        node.commander  \
        npm             \
        unzip
        
# clone into the base VfrSecChartMaker directory
git clone https://github.com/mapbox/mbutil.git

# install commander into the base VfrSecChartMaker directory
npm install commander

Additional information

The charts are downloaded from the FAA digital raster chart repository. VfrSectionalChartMaker uses a JSON file with the list of charts to be downloaded. You can change that list to include as many or as few area charts as you want. The list includes 37 area chart names which covers the continental USA. The only "gotcha" here is that the area names must exactly match the FAA's spelling, including dashes or underscores, without the ".zip" extension. The processing will normalize the resultant graphic files with underscores in place of dashes or spaces. As of today, 10-11-2021, the official chart release is for 10-07-2021. You can view that list at: https://aeronav.faa.gov/visual/10-07-2021/sectional-files

{
    "charturl": "https://aeronav.faa.gov/visual/<chartdate>/sectional-files/<chartname>.zip",
    "areas":
        [
            "Albuquerque",
            "Atlanta",
            "Bethel",
            "Billings",
            "Brownsville",
            "Charlotte",
            "Cheyenne",
            "Chicago",
            "Cincinnati",
            "Dallas-Ft_Worth",
            "Denver",
            "Detroit",
            "El_Paso",
            "Great_Falls",
            "Green_Bay",
            "Houston",
            "Jacksonville",
            "Kansas_City",
            "Klamath_Falls",
            "Lake_Huron",
            "Las_Vegas",
            "Los_Angeles",
            "McGrath",
            "Memphis",
            "Miami",
            "New_Orleans",
            "New_York",
            "Omaha", 
            "Phoenix",
            "St_Louis",
            "Salt_Lake_City",
            "San_Antonio",
            "San_Francisco",
            "Seattle",
            "Twin_Cities",
            "Washington",
            "Wichita"            
        ]
}

ToDo:

Add all of the other areas and chart types including Alaska, Hawaii, territories, and IFR charts, etc.

vfrsecchartmaker's People

Contributors

n129bz avatar jamez70 avatar

Watchers

James Cloos avatar

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.