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
d028287f
Commit
d028287f
authored
1 year ago
by
Riccardo Boero
Browse files
Options
Downloads
Patches
Plain Diff
Added conversion to EPSG:4326
parent
98be597c
No related branches found
No related tags found
1 merge request
!1
New branch with fixed history
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
README.md
+1
-0
1 addition, 0 deletions
README.md
inputs/load_vector_data.sh
+4
-4
4 additions, 4 deletions
inputs/load_vector_data.sh
with
5 additions
and
4 deletions
README.md
+
1
−
0
View file @
d028287f
...
@@ -29,6 +29,7 @@ us_trans | 79.84| 94216|
...
@@ -29,6 +29,7 @@ us_trans | 79.84| 94216|
```
```


**All spatial objects are converted to EPSG:4326.**
---
---
## Notes
## Notes
...
...
This diff is collapsed.
Click to expand it.
inputs/load_vector_data.sh
+
4
−
4
View file @
d028287f
...
@@ -6,13 +6,13 @@
...
@@ -6,13 +6,13 @@
mkdir
-p
./temp
mkdir
-p
./temp
wget
-N
'https://zenodo.org/records/3349843/files/JRC-PPDB-OPEN.ver0.91.zip?download=1'
-O
./temp/power.zip
wget
-N
'https://zenodo.org/records/3349843/files/JRC-PPDB-OPEN.ver0.91.zip?download=1'
-O
./temp/power.zip
unzip
-d
./temp/ ./temp/power.zip
unzip
-d
./temp/ ./temp/power.zip
ogr2ogr
-f
MySQL MySQL:FACT_power,host
=
,user
=
root,password
=
temp/JRC_OPEN_UNITS.csv
-oo
X_POSSIBLE_NAMES
=
lon
-oo
Y_POSSIBLE_NAMES
=
lat
-oo
KEEP_GEOM_COLUMNS
=
NO
-nln
eu_gen
-update
-overwrite
-lco
engine
=
Aria
-skipfailures
ogr2ogr
-f
MySQL MySQL:FACT_power,host
=
,user
=
root,password
=
temp/JRC_OPEN_UNITS.csv
-oo
X_POSSIBLE_NAMES
=
lon
-oo
Y_POSSIBLE_NAMES
=
lat
-oo
KEEP_GEOM_COLUMNS
=
NO
-nln
eu_gen
-update
-overwrite
-lco
engine
=
Aria
-skipfailures
-t_srs
EPSG:4326
rm
-r
./temp
rm
-r
./temp
# Transmission 2023
# Transmission 2023
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
=
,user
=
root,password
=
./temp/EU_power_lines.shp
-nln
eu_trans
-update
-overwrite
-lco
engine
=
Aria
-skipfailures
ogr2ogr
-f
MySQL MySQL:FACT_power,host
=
,user
=
root,password
=
./temp/EU_power_lines.shp
-nln
eu_trans
-update
-overwrite
-lco
engine
=
Aria
-skipfailures
-t_srs
EPSG:4326
rm
-r
./temp
rm
-r
./temp
# US
# US
...
@@ -21,11 +21,11 @@ rm -r ./temp
...
@@ -21,11 +21,11 @@ rm -r ./temp
mkdir
-p
./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
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
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
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
rm
-r
./temp
rm
-r
./temp
# Transmission 2023
# Transmission 2023
mkdir
-p
./temp
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
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
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
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
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