Skip to content
Snippets Groups Projects
Commit dfb346c3 authored by Riccardo Boero's avatar Riccardo Boero :innocent:
Browse files

Completed with US airports data.

parent 7b2ed552
No related branches found
No related tags found
No related merge requests found
This diff is collapsed.
......@@ -15,3 +15,11 @@ wget -N 'https://ec.europa.eu/eurostat/cache/GISCO/geodatafiles/Airports-2013-SH
unzip -d ./temp/ ./temp/Airports-2013-SHP.zip
ogr2ogr -f MySQL MySQL:FACT_air,host=plazablanca.nilu.no,user=root,password=impadminPSWD! ./temp/SHAPE/AIRP_PT_2013.shp -nln eu_airports_2013 -update -overwrite -lco engine=Aria
rm -r ./temp
# US
echo "*** Downloading and loading US airports location and operations." # expected number of records in DB:
mkdir -p ./temp
wget -O ./temp/airports.zip -N 'https://opendata.arcgis.com/api/v3/datasets/c3ca6a6cdcb242698f1eadb7681f6162_0/downloads/data?format=shp&spatialRefId=3857&where=1%3D1' -P ./temp
unzip -d ./temp/ ./temp/airports.zip
ogr2ogr -f MySQL MySQL:FACT_air,host=plazablanca.nilu.no,user=root,password=impadminPSWD! ./temp/Aviation_Facilities.shp -nln us_airports -update -overwrite -lco engine=Aria
rm -r ./temp
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment