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

Fixed file permission issue preventing to clena up temporary files

parent 37e4ea59
No related branches found
No related tags found
1 merge request!1New branch with fixed history
......@@ -5,6 +5,7 @@ mkdir -p ./temp
wget -O ./temp/temp.zip -N "https://ftp.maps.canada.ca/pub/nrcan_rncan/publications/STPublications_PublicationsST/223/223767/of_5529.zip"
unzip -d ./temp/ ./temp/temp.zip
ogr2ogr -f MySQL MySQL:FACT_mine,host=,user=root,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
# single mineral maps
......@@ -15,6 +16,7 @@ do
wget -O ./temp/temp.zip -N "https://mrdata.usgs.gov/${m}/${m}-csv.zip"
unzip -d ./temp/ ./temp/temp.zip
ogr2ogr -f MySQL MySQL:FACT_mine,host=,user=root,password= ./temp/${m}/${m}.shp -nln ${m} -update -overwrite -lco engine=Aria -t_srs EPSG:4326
chmod -R u+w temp/
rm -r ./temp
done
......@@ -23,4 +25,5 @@ mkdir -p ./temp
wget -O ./temp/temp.zip -N "https://www.sciencebase.gov/catalog/file/get/594d3c8ee4b062508e39b332?name=PP1802_CritMin_Shapefiles.zip"
unzip -d ./temp/ ./temp/temp.zip
ogr2ogr -f MySQL MySQL:FACT_mine,host=,user=root,password= ./temp/PP1802_CritMin_pts.shp -nln global_selected -update -overwrite -lco engine=Aria -t_srs EPSG:4326
chmod -R u+w 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