Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
FACT Electric Power Generation and Transmission
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 Electric Power Generation and Transmission
Commits
afb819bd
Commit
afb819bd
authored
6 months ago
by
Riccardo Boero
Browse files
Options
Downloads
Patches
Plain Diff
Fixed path to us transmissiin lines new archive
parent
4bbf2f7a
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
inputs/load_vector_data.sh
+2
-2
2 additions, 2 deletions
inputs/load_vector_data.sh
with
2 additions
and
2 deletions
inputs/load_vector_data.sh
+
2
−
2
View file @
afb819bd
...
@@ -17,7 +17,7 @@ rm -r ./temp
...
@@ -17,7 +17,7 @@ rm -r ./temp
mkdir
-p
./temp
mkdir
-p
./temp
cp
./inputs/EU_power.zip ./temp/power.zip
cp
./inputs/EU_power.zip ./temp/power.zip
unzip
-d
./temp/ ./temp/power.zip
unzip
-d
./temp/ ./temp/power.zip
ogr2ogr
-f
MySQL MySQL:FACT_power,host
=
$HOST
,user
=
$USER
,password
=
$PASSWORD
./
temp/EU_power_lines.shp
-nln
eu_trans
-update
-overwrite
-lco
engine
=
Aria
-skipfailures
ogr2ogr
-f
MySQL MySQL:FACT_power,host
=
$HOST
,user
=
$USER
,password
=
$PASSWORD
temp/EU_power_lines.shp
-nln
eu_trans
-update
-overwrite
-lco
engine
=
Aria
-skipfailures
rm
-r
./temp
rm
-r
./temp
# US
# US
...
@@ -33,5 +33,5 @@ rm -r ./temp
...
@@ -33,5 +33,5 @@ rm -r ./temp
mkdir
-p
./temp
mkdir
-p
./temp
wget
-N
'https://hub.arcgis.com/api/v3/datasets/bd24d1a282c54428b024988d32578e59_0/downloads/data?format=shp&spatialRefId=3857&where=1%3D1'
-O
./temp/power.zip
wget
-N
'https://hub.arcgis.com/api/v3/datasets/bd24d1a282c54428b024988d32578e59_0/downloads/data?format=shp&spatialRefId=3857&where=1%3D1'
-O
./temp/power.zip
unzip
-d
./temp/ ./temp/power.zip
unzip
-d
./temp/ ./temp/power.zip
ogr2ogr
-f
MySQL MySQL:FACT_power,host
=
$HOST
,user
=
$USER
,password
=
$PASSWORD
./
temp/Electric_Power_Transmission_Lines.shp
-nln
us_trans
-update
-overwrite
-lco
engine
=
Aria
-skipfailures
ogr2ogr
-f
MySQL MySQL:FACT_power,host
=
$HOST
,user
=
$USER
,password
=
$PASSWORD
temp/Electric_
_
Power_Transmission_Lines.shp
-nln
us_trans
-update
-overwrite
-lco
engine
=
Aria
-skipfailures
rm
-r
./temp
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