Difference between revisions of "Truxton media set latitude"
Jump to navigation
Jump to search
(Created page with "This sets the [https://en.wikipedia.org/wiki/Latitude latitude] portion of the [https://en.wikipedia.org/wiki/World_Geodetic_System#WGS84 WGS84] coordinates of where the media...") |
|||
| (3 intermediate revisions by the same user not shown) | |||
| Line 1: | Line 1: | ||
This sets the [https://en.wikipedia.org/wiki/Latitude latitude] portion of the [https://en.wikipedia.org/wiki/World_Geodetic_System#WGS84 WGS84] coordinates of where the media was seized. | This sets the [https://en.wikipedia.org/wiki/Latitude latitude] portion of the [https://en.wikipedia.org/wiki/World_Geodetic_System#WGS84 WGS84] coordinates of where the media was seized. | ||
| − | This corresponds to the <code>Latitude</code> column of the <code>Media</code> table. | + | This corresponds to the <code>[Latitude]</code> column of the <code><nowiki>[</nowiki>[[Media Table|Media]]<nowiki>]</nowiki></code> table. |
=Syntax= | =Syntax= | ||
| − | < | + | <source lang="C"> |
void truxton_media_set_latitude( uint64_t media_handle, double latitude ); | void truxton_media_set_latitude( uint64_t media_handle, double latitude ); | ||
| − | </ | + | </source> |
=Parameters= | =Parameters= | ||
| Line 15: | Line 15: | ||
=Sample= | =Sample= | ||
| − | < | + | <source lang="C" highlight="3"> |
void set_location( uint64_t media_handle, double latitude, double longitude ) | void set_location( uint64_t media_handle, double latitude, double longitude ) | ||
{ | { | ||
truxton_media_set_latitude( media_handle, latitude ); | truxton_media_set_latitude( media_handle, latitude ); | ||
| − | truxton_media_set_longitude( media_handle, | + | truxton_media_set_longitude( media_handle, longitude ); |
} | } | ||
| − | </ | + | </source> |
Latest revision as of 07:46, 3 February 2024
This sets the latitude portion of the WGS84 coordinates of where the media was seized.
This corresponds to the [Latitude] column of the [Media] table.
Syntax
void truxton_media_set_latitude( uint64_t media_handle, double latitude );
Parameters
media_handle
The handle created by the truxton_media_create or truxton_media_open_id call.
latitude
The latitude portion of the geographic coordinate using the WGS84 ellipsoid of where this media was seized.
Sample
void set_location( uint64_t media_handle, double latitude, double longitude )
{
truxton_media_set_latitude( media_handle, latitude );
truxton_media_set_longitude( media_handle, longitude );
}