diff --git a/inputs/load_data.sh b/inputs/load_data.sh index 0c0495858fa973f4f02a8e6841a3d3cc91bb7f9a..2734e110a201f6c9aaf49c5c78ca6ce0b6c6f953 100755 --- a/inputs/load_data.sh +++ b/inputs/load_data.sh @@ -11,7 +11,7 @@ wget -O ./temp/temp.zip -N "https://ostr-backend-prod.azurewebsites.net/server/a unzip -d ./temp/ ./temp/temp.zip ogr2ogr -f MySQL MySQL:FACT_mine,host=$HOST,user=$USER,password=$PASSWORD ./temp/data/ArcMap9_ArcReader9/AllThemesMerged/gen.shp -nln geology -update -overwrite -lco engine=Aria -t_srs EPSG:4326 chmod -R u+w temp/ -sudo rm -r ./temp +rm -r ./temp # single mineral maps declare -a minerals=("phosphate" "podchrome" "laterite" "ree" "carbonatite" "nicrpge" "sedcu" "porcu" "sedexmvt" "sedznpb" "vms" "potash") diff --git a/inputs/setup_db.sh b/inputs/setup_db.sh index d5cf02912aa1393ba3f7425f24824e72ac632c28..d25f5c43c683dad8997f9b9d853f7581d80764d7 100755 --- a/inputs/setup_db.sh +++ b/inputs/setup_db.sh @@ -7,5 +7,3 @@ PASSWORD=$3 echo "*** Create database:" mariadb -h "$HOST" -u "$USER" -p"$PASSWORD" < inputs/sql/create_db.sql -#echo "*** Create tables:" -#mariadb -h "" -u "root" -p < inputs/sql/create_tables.sql