Add missing trailing dot in sentences
[viking/guyou.git] / test / geotag_write.c
blob1944e9bc280a70867c5bf125528317519524b26b
1 // Copyright: CC0
2 #include <stdio.h>
3 #include <math.h>
4 #include <glib.h>
5 #include <glib/gstdio.h>
6 #include "geotag_exif.h"
7 #include "vikcoord.h"
9 int main(int argc, char *argv[])
11 #if !GLIB_CHECK_VERSION(2,36,0)
12 g_type_init ();
13 #endif
15 int answer = 0;
16 if ( argv[1] ) {
17 struct LatLon ll = { 51.179489, -1.826217 };
18 VikCoord vc;
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 );
25 return answer;