# HG changeset patch # User David Barts # Date 1629898411 25200 # Node ID 45be2d1d3213f728b057fbedfa4e148864a419cb # Parent ab4d4434c37fc05deaf5b3d7e28fde9d6c8e2b29 Remove trailing whitespace, add warp notes. diff -r ab4d4434c37f -r 45be2d1d3213 MakeWaypoints.kt --- 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 diff -r ab4d4434c37f -r 45be2d1d3213 gdalwarp.txt --- /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.