Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
FACT Geology and Mining
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Container Registry
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
FACT
FACT Data Services
FACT Geology and Mining
Commits
b378b3e4
Commit
b378b3e4
authored
1 year ago
by
Riccardo Boero
Browse files
Options
Downloads
Patches
Plain Diff
Fixed file permission issue preventing to clena up temporary files
parent
bbcb06a0
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
inputs/load_data.sh
+3
-0
3 additions, 0 deletions
inputs/load_data.sh
with
3 additions
and
0 deletions
inputs/load_data.sh
+
3
−
0
View file @
b378b3e4
...
@@ -5,6 +5,7 @@ mkdir -p ./temp
...
@@ -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"
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
unzip
-d
./temp/ ./temp/temp.zip
ogr2ogr
-f
MySQL MySQL:FACT_mine,host
=
plazablanca.nilu.no,user
=
root,password
=
impadminPSWD! ./temp/data/ArcMap9_ArcReader9/AllThemesMerged/gen.shp
-nln
geology
-update
-overwrite
-lco
engine
=
Aria
-t_srs
EPSG:4326
ogr2ogr
-f
MySQL MySQL:FACT_mine,host
=
plazablanca.nilu.no,user
=
root,password
=
impadminPSWD! ./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
sudo rm
-r
./temp
# single mineral maps
# single mineral maps
...
@@ -15,6 +16,7 @@ do
...
@@ -15,6 +16,7 @@ do
wget
-O
./temp/temp.zip
-N
"https://mrdata.usgs.gov/
${
m
}
/
${
m
}
-csv.zip"
wget
-O
./temp/temp.zip
-N
"https://mrdata.usgs.gov/
${
m
}
/
${
m
}
-csv.zip"
unzip
-d
./temp/ ./temp/temp.zip
unzip
-d
./temp/ ./temp/temp.zip
ogr2ogr
-f
MySQL MySQL:FACT_mine,host
=
plazablanca.nilu.no,user
=
root,password
=
impadminPSWD! ./temp/
${
m
}
/
${
m
}
.shp
-nln
${
m
}
-update
-overwrite
-lco
engine
=
Aria
-t_srs
EPSG:4326
ogr2ogr
-f
MySQL MySQL:FACT_mine,host
=
plazablanca.nilu.no,user
=
root,password
=
impadminPSWD! ./temp/
${
m
}
/
${
m
}
.shp
-nln
${
m
}
-update
-overwrite
-lco
engine
=
Aria
-t_srs
EPSG:4326
chmod
-R
u+w temp/
rm
-r
./temp
rm
-r
./temp
done
done
...
@@ -23,4 +25,5 @@ mkdir -p ./temp
...
@@ -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"
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
unzip
-d
./temp/ ./temp/temp.zip
ogr2ogr
-f
MySQL MySQL:FACT_mine,host
=
plazablanca.nilu.no,user
=
root,password
=
impadminPSWD! ./temp/PP1802_CritMin_pts.shp
-nln
global_selected
-update
-overwrite
-lco
engine
=
Aria
-t_srs
EPSG:4326
ogr2ogr
-f
MySQL MySQL:FACT_mine,host
=
plazablanca.nilu.no,user
=
root,password
=
impadminPSWD! ./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
rm
-r
./temp
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment