5 #include <glib/gstdio.h>
6 #include "geotag_exif.h"
9 int main(int argc
, char *argv
[])
11 #if !GLIB_CHECK_VERSION(2,36,0)
17 struct LatLon ll
= { 51.179489, -1.826217 };
19 vik_coord_load_from_latlon ( &vc
, VIK_COORD_LATLON
, &ll
);
20 // NB sqrt(-1) is delibrate to generate a NaN value
21 // (so no image direction EXIF tags are generated)
22 answer
= a_geotag_write_exif_gps ( argv
[1], vc
, 0.0, sqrt(-1), WP_IMAGE_DIRECTION_REF_TRUE
, TRUE
);