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

Fixed path to us transmissiin lines new archive

parent 4bbf2f7a
No related branches found
No related tags found
No related merge requests found
...@@ -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
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