geotag_exif

geotag_exif

Functions

Description

Functions

a_geotag_create_waypoint_from_file ()

VikWaypoint *
a_geotag_create_waypoint_from_file (const gchar *filename,
                                    VikCoordMode vcmode,
                                    gchar **name);

Parameters

filename

The image file to process

 

vcmode

The current location mode to use in the positioning of Waypoint

 

name

Returns a name for the Waypoint (can be NULL)

 

Returns

An allocated Waypoint or NULL if Waypoint could not be generated (e.g. no EXIF info)


a_geotag_waypoint_positioned ()

VikWaypoint *
a_geotag_waypoint_positioned (const gchar *filename,
                              VikCoord coord,
                              gdouble alt,
                              gchar **name,
                              VikWaypoint *wp);

Parameters

filename

The image file to process

 

coord

The location for positioning the Waypoint

 

name

Returns a name for the Waypoint (can be NULL)

 

waypoint

An existing waypoint to update (can be NULL to generate a new waypoint)

 

Returns

An allocated waypoint if the input waypoint is NULL, otherwise the passed in waypoint is updated

Here EXIF processing is used to get non position related information (i.e. just the comment)


a_geotag_get_exif_date_from_file ()

gchar *
a_geotag_get_exif_date_from_file (const gchar *filename,
                                  gboolean *has_GPS_info);

Parameters

filename

The image file to process

 

has_GPS_info

Returns whether the file has existing GPS information

 

Returns

An allocated string with the date and time in EXIF_DATE_FORMAT, otherwise NULL if some kind of failure

Here EXIF processing is used to get time information


a_geotag_get_position ()

struct LatLon
a_geotag_get_position (const gchar *filename);

filename : The (JPG) file with EXIF information in it

Returns

The position in LatLon format. It will be 0,0 if some kind of failure occurs.


a_geotag_write_exif_gps ()

gint
a_geotag_write_exif_gps (const gchar *filename,
                         VikCoord coord,
                         gdouble alt,
                         gdouble direction,
                         VikWaypointImageDirectionRef direction_ref,
                         gboolean no_change_mtime);

Parameters

filename

The image file to save information in

 

coord

The location

 

alt

The elevation

 

direction

The image direction (if NAN then these direction fields are not written)

 

direction_ref

The image direction value type

 

Returns

A value indicating success: 0, or some other value for failure