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
d9bba82a
Commit
d9bba82a
authored
1 year ago
by
Riccardo Boero
Browse files
Options
Downloads
Patches
Plain Diff
US power data was already downlaoded in 4326.
parent
5f2cfa4b
No related branches found
No related tags found
1 merge request
!1
New branch with fixed history
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 @
d9bba82a
...
...
@@ -21,11 +21,11 @@ rm -r ./temp
mkdir
-p
./temp
wget
-N
'https://opendata.arcgis.com/api/v3/datasets/bf5c5110b1b944d299bb683cdbd02d2a_0/downloads/data?format=shp&spatialRefId=4326&where=1%3D1'
-O
./temp/power.zip
unzip
-d
./temp/ ./temp/power.zip
ogr2ogr
-f
MySQL MySQL:FACT_power,host
=
,user
=
root,password
=
temp/Power_Plants.shp
-nln
us_gen
-update
-overwrite
-lco
engine
=
Aria
-skipfailures
-t_srs
EPSG:4326
ogr2ogr
-f
MySQL MySQL:FACT_power,host
=
,user
=
root,password
=
temp/Power_Plants.shp
-nln
us_gen
-update
-overwrite
-lco
engine
=
Aria
-skipfailures
rm
-r
./temp
# Transmission 2023
mkdir
-p
./temp
wget
-N
'https://opendata.arcgis.com/api/v3/datasets/5739e7eb28654df3b3157452ad12f4c6_0/downloads/data?format=shp&spatialRefId=4326&where=1%3D1'
-O
./temp/power.zip
unzip
-d
./temp/ ./temp/power.zip
ogr2ogr
-f
MySQL MySQL:FACT_power,host
=
,user
=
root,password
=
./temp/Electric_Power_Transmission_Lines.shp
-nln
us_trans
-update
-overwrite
-lco
engine
=
Aria
-skipfailures
-t_srs
EPSG:4326
ogr2ogr
-f
MySQL MySQL:FACT_power,host
=
,user
=
root,password
=
./temp/Electric_Power_Transmission_Lines.shp
-nln
us_trans
-update
-overwrite
-lco
engine
=
Aria
-skipfailures
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