-
-
Notifications
You must be signed in to change notification settings - Fork 84
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
77 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
#!/bin/bash | ||
# | ||
# Converteer alle bonnefiles die in bonnefiels.txt staan naar GeoTiff | ||
# | ||
# Author: Just van den Broecke | ||
# | ||
|
||
# In de settings file per host, staat de locatie van de bron | ||
# .png van de Bonnebladen | ||
SETTINGS_SCRIPT="settings.sh" | ||
. $SETTINGS_SCRIPT | ||
|
||
while read fileName | ||
do | ||
./bonnetrans.sh $fileName ${BONNE_DATA_YEAR_DIR}/1900 | ||
done < ${BONNE_DATA_YEAR_DIR}/1900/files.txt | ||
|
||
while read fileName | ||
do | ||
./bonnetrans.sh $fileName ${BONNE_DATA_YEAR_DIR}/1925 | ||
done < ${BONNE_DATA_YEAR_DIR}/1925/files.txt | ||
|
||
while read fileName | ||
do | ||
./bonnetrans.sh $fileName ${BONNE_DATA_YEAR_DIR}/1949 | ||
done < ${BONNE_DATA_YEAR_DIR}/1949/files.txt | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,14 @@ | ||
|
||
# Test: converteer files voor frieslan | ||
./bonnetrans.sh b074-1931.png | ||
./bonnetrans.sh b075-1930.png | ||
./bonnetrans.sh b091-1932.png | ||
./bonnetrans.sh b092-1928.png | ||
|
||
SETTINGS_SCRIPT="settings.sh" | ||
. $SETTINGS_SCRIPT | ||
mv ${BONNE_DATA_DST_DIR}/b074-1931.tif ${BONNE_DATA_HOME}/friesland-trans | ||
mv ${BONNE_DATA_DST_DIR}/b075-1930.tif ${BONNE_DATA_HOME}/friesland-trans | ||
mv ${BONNE_DATA_DST_DIR}/b091-1932.tif ${BONNE_DATA_HOME}/friesland-trans | ||
mv ${BONNE_DATA_DST_DIR}/b092-1928.tif ${BONNE_DATA_HOME}/friesland-trans | ||
|
||
# Test: converteer files voor frieslan | ||
./bonnetrans.sh b074-1931.png ${BONNE_DATA_HOME}/friesland-trans | ||
./bonnetrans.sh b075-1930.png ${BONNE_DATA_HOME}/friesland-trans | ||
./bonnetrans.sh b091-1932.png ${BONNE_DATA_HOME}/friesland-trans | ||
./bonnetrans.sh b092-1928.png ${BONNE_DATA_HOME}/friesland-trans | ||
|
||
echo "Maak index.shp aan met gdaltindex in ${BONNE_DATA_HOME}/friesland-trans" | ||
pushd ${BONNE_DATA_HOME}/friesland-trans | ||
gdaltindex index.shp *.tif | ||
popd | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
# Per host settings, hiermee ook de standaard settings.sh te overrulen | ||
# maak een file voor je host aan en die wordt automagisch meegenomen | ||
|
||
# Hulpvar | ||
BONNE_DATA_HOME=/home/vagrant/geodata/bonne | ||
|
||
# Bron bladen directory | ||
BONNE_DATA_SRC_DIR=${BONNE_DATA_HOME}/src | ||
|
||
# Getransformeerde bladen directory | ||
BONNE_DATA_DST_DIR=${BONNE_DATA_HOME}/tiff | ||
|
||
# Tijdsperiode files | ||
BONNE_DATA_PERIOD_DIR=${BONNE_DATA_HOME}/tiffperiod | ||
|
||
# Jaar files: geldige bladen in jaar | ||
BONNE_DATA_YEAR_DIR=${BONNE_DATA_HOME}/tiffyear |