From e11f25bbdea3b65982d4bf4c30d7397cf14c4337 Mon Sep 17 00:00:00 2001 From: Rob Norris Date: Sat, 20 May 2017 18:31:23 +0100 Subject: [PATCH] SF Bugs#144: Fix Export to World File Fix order of World File parameters output to the specified file. The y_scale (mpp_northing) is the fourth line (not the second). The second and third lines are orientations (which are not currently supported). See http://en.wikipedia.org/wiki/World_file --- src/vikgeoreflayer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/vikgeoreflayer.c b/src/vikgeoreflayer.c index 2dbf0d98..8d1e1d4d 100644 --- a/src/vikgeoreflayer.c +++ b/src/vikgeoreflayer.c @@ -625,7 +625,7 @@ static void georef_layer_export_params ( gpointer *pass_along[2] ) } else { - fprintf ( f, "%f\n%f\n%f\n%f\n%f\n%f\n", vgl->mpp_easting, vgl->mpp_northing, 0.0, 0.0, vgl->corner.easting, vgl->corner.northing ); + fprintf ( f, "%f\n%f\n%f\n%f\n%f\n%f\n", vgl->mpp_easting, 0.0, 0.0, vgl->mpp_northing, vgl->corner.easting, vgl->corner.northing ); fclose ( f ); f = NULL; } -- 2.39.5