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

Fixed CRS adaptation for EU power info: original data has no CRS hence can not be projected.

parent d028287f
No related branches found
No related tags found
1 merge request!1New branch with fixed history
......@@ -6,13 +6,13 @@
mkdir -p ./temp
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
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
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
rm -r ./temp
# Transmission 2023
mkdir -p ./temp
cp ./inputs/EU_power.zip ./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 -t_srs EPSG:4326
ogr2ogr -f MySQL MySQL:FACT_power,host=,user=root,password= ./temp/EU_power_lines.shp -nln eu_trans -update -overwrite -lco engine=Aria -skipfailures
rm -r ./temp
# US
......
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