Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
FACT Airports and Traffic
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Container Registry
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
FACT
FACT Data Services
FACT Airports and Traffic
Commits
dfb346c3
Commit
dfb346c3
authored
1 year ago
by
Riccardo Boero
Browse files
Options
Downloads
Patches
Plain Diff
Completed with US airports data.
parent
7b2ed552
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
inputs/T_MASTER_CORD.csv
+0
-19145
0 additions, 19145 deletions
inputs/T_MASTER_CORD.csv
inputs/load_vector_data.sh
+8
-0
8 additions, 0 deletions
inputs/load_vector_data.sh
with
8 additions
and
19145 deletions
inputs/T_MASTER_CORD.csv
deleted
100644 → 0
+
0
−
19145
View file @
7b2ed552
This diff is collapsed.
Click to expand it.
inputs/load_vector_data.sh
+
8
−
0
View file @
dfb346c3
...
...
@@ -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
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment