]> git.street.me.uk Git - andy/viking.git/commitdiff
SF Bugs#144: Fix Export to World File
authorRob Norris <rw_norris@hotmail.com>
Sat, 20 May 2017 17:31:23 +0000 (18:31 +0100)
committerRob Norris <rw_norris@hotmail.com>
Sat, 20 May 2017 17:31:23 +0000 (18:31 +0100)
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

index 2dbf0d9880b8445a2db9ba0f2eac5f3b48d9258f..8d1e1d4de24c2960851994cff1736494e9bb4504 100644 (file)
@@ -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;
     }