From 5f2cfa4be7e7877c6e15540470345b19ccac6573 Mon Sep 17 00:00:00 2001 From: Riccardo Boero <ribo@nilu.no> Date: Tue, 30 Jan 2024 13:44:41 +0100 Subject: [PATCH] Fixed CRS adaptation for EU power info: original data has no CRS hence can not be projected. --- inputs/load_vector_data.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/inputs/load_vector_data.sh b/inputs/load_vector_data.sh index c420d2c..6299ebb 100755 --- a/inputs/load_vector_data.sh +++ b/inputs/load_vector_data.sh @@ -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 -- GitLab