Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
UGL
website
Commits
79a9573a
Commit
79a9573a
authored
1 year ago
by
JOE XMG
Browse files
Options
Download
Email Patches
Plain Diff
update
parent
38f8aa21
Pipeline
#9127
passed with stage
in 18 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
public/fellbach/png2tif.sh
+10
-0
public/fellbach/png2tif.sh
with
10 additions
and
0 deletions
+10
-0
public/fellbach/png2tif.sh
0 → 100644
+
10
-
0
View file @
79a9573a
mkdir
-p
tif
# Convert PNGs to TIFs one by one
for
file
in
*
.png
do
# Get the file name without the extension
filename
=
"
${
file
%.*
}
"
# Convert the PNG file to GeoTIFF
# including the corresponding pgw file for georeferencing
gdal_translate
-of
GTiff
-co
"TILED=YES"
"
${
filename
}
.png"
"tif/
${
filename
}
.tif"
done
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment