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

Added conversion to EPSG:4326

parent 57511bca
No related branches found
No related tags found
No related merge requests found
......@@ -32,6 +32,8 @@ us_ports_geo | 0.05| 150|
Column Year in eu_ports is from 1997 to 2022.
**All spatial objects are converted to EPSG:4326**
---
## Notes
**Europe**
......
......@@ -7,13 +7,13 @@ echo "*** Downloading and loading EU grid 1km." # expected number of records in
mkdir -p ./temp
wget -N 'https://ec.europa.eu/eurostat/cache/GISCO/geodatafiles/PORT_2009_SH.zip' -P ./temp
unzip -d ./temp/ ./temp/PORT_2009_SH.zip
ogr2ogr -f MySQL MySQL:FACT_ports,host=plazablanca.nilu.no,user=root,password=impadminPSWD! ./temp/PORT_2009_SH/shape/data/PORT_PT_2009.shp -nln eu_ports_2009_geo -update -overwrite -lco engine=Aria
ogr2ogr -f MySQL MySQL:FACT_ports,host=plazablanca.nilu.no,user=root,password=impadminPSWD! ./temp/PORT_2009_SH/shape/data/PORT_PT_2009.shp -nln eu_ports_2009_geo -update -overwrite -lco engine=Aria -t_srs EPSG:4326
rm -r ./temp
# 2013
mkdir -p ./temp
wget -N 'https://ec.europa.eu/eurostat/cache/GISCO/geodatafiles/PORT_2013_SH.zip' -P ./temp
unzip -d ./temp/ ./temp/PORT_2013_SH.zip
ogr2ogr -f MySQL MySQL:FACT_ports,host=plazablanca.nilu.no,user=root,password=impadminPSWD! ./temp/PORT_2013_SH/Data/PORT_PT_2013.shp -nln eu_ports_2013_geo -update -overwrite -lco engine=Aria
ogr2ogr -f MySQL MySQL:FACT_ports,host=plazablanca.nilu.no,user=root,password=impadminPSWD! ./temp/PORT_2013_SH/Data/PORT_PT_2013.shp -nln eu_ports_2013_geo -update -overwrite -lco engine=Aria -t_srs EPSG:4326
rm -r ./temp
......@@ -21,5 +21,5 @@ rm -r ./temp
mkdir -p ./temp
wget -N 'https://opendata.arcgis.com/api/v3/datasets/e3b6065cce144be8a13a59e03c4195fe_1/downloads/data?format=shp&spatialRefId=4326&where=1%3D1' -O ./temp/Principal_Port.zip
unzip -d ./temp/ ./temp/Principal_Port.zip
ogr2ogr -f MySQL MySQL:FACT_ports,host=plazablanca.nilu.no,user=root,password=impadminPSWD! ./temp/Principal_Port.shp -nln us_ports_geo -update -overwrite -lco engine=Aria
ogr2ogr -f MySQL MySQL:FACT_ports,host=plazablanca.nilu.no,user=root,password=impadminPSWD! ./temp/Principal_Port.shp -nln us_ports_geo -update -overwrite -lco engine=Aria -t_srs EPSG:4326
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