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

US power data was already downlaoded in 4326.

parent 5f2cfa4b
No related branches found
No related tags found
1 merge request!1New branch with fixed history
......@@ -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
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