Mercurial > cgi-bin > hgweb.cgi > TopoTiler
changeset 4:45be2d1d3213
Remove trailing whitespace, add warp notes.
author | David Barts <n5jrn@me.com> |
---|---|
date | Wed, 25 Aug 2021 06:33:31 -0700 |
parents | ab4d4434c37f |
children | a725bd48bc0b |
files | MakeWaypoints.kt gdalwarp.txt |
diffstat | 2 files changed, 12 insertions(+), 6 deletions(-) [+] |
line wrap: on
line diff
--- a/MakeWaypoints.kt Wed Aug 25 00:24:30 2021 -0700 +++ b/MakeWaypoints.kt Wed Aug 25 06:33:31 2021 -0700 @@ -2,7 +2,7 @@ * Make waypoints. In Kotlin, because the JVM has a uniquely non-sucky * way to write XML. */ - + import javax.xml.stream.* import java.io.FileOutputStream @@ -14,10 +14,10 @@ System.err.println("${MYNAME}: expecting a single file name") System.exit(2) } - + println("Enter waypoints below, end with empty line.") println() - + val outName = args[0] val invalid = "${MYNAME}: invalid entry, please try again" FileOutputStream(outName).use stream@{ @@ -27,7 +27,7 @@ writeAttribute("creator", "MakeWaypoints") writeAttribute("version", "1.1") writeDefaultNamespace("http://www.topografix.com/GPX/1/1") - + while (true) { print("Longitude, latitude: ") val longLat = readLine() @@ -64,5 +64,3 @@ } } } - - \ No newline at end of file
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/gdalwarp.txt Wed Aug 25 06:33:31 2021 -0700 @@ -0,0 +1,8 @@ +Gdalwarp is something of a pain. I got decent results with: + +gdalwarp -r lanczos -srcnodata None -dstnodata None -multi -tr 1 1 WA_Hamilton_20200305_TM_geo.tiff WA_Twin_Sisters_Mountain_20200323_TM_geo.tiff both.tiff + +Note that this changed the resolution (roughly doubled it, in fact). +There does not seem to be a good, easy way to tell it to preserve +resolution. You must play with -tr. Anything higher than 1x1 is nasty +and coarse. Anything less gobbles disk space exponentially.