<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>C# on Opgenorth.NET</title><link>http://www.opgenorth.net/tags/C%23/</link><description>Recent content in C# on Opgenorth.NET</description><generator>Hugo</generator><language>en-us</language><lastBuildDate>Mon, 18 Feb 2013 00:00:00 +0000</lastBuildDate><atom:link href="http://www.opgenorth.net/tags/C%23/index.xml" rel="self" type="application/rss+xml"/><item><title>Embed GPS in a JPEG</title><link>http://www.opgenorth.net/posts/write-gps-to-jpg/</link><pubDate>Mon, 18 Feb 2013 00:00:00 +0000</pubDate><guid>http://www.opgenorth.net/posts/write-gps-to-jpg/</guid><description>&lt;p&gt;One of the handy things about the JPEG format is the ability to store meta-data inside the image using &lt;a href="http://en.wikipedia.org/wiki/Exchangeable_image_file_format"&gt;EXIF&lt;/a&gt;. There are a few libraries out there for the various programming languages that can help you out with this, and Android actually has something built in to the SDK - the class &lt;a href="http://developer.android.com/reference/android/media/ExifInterface.html"&gt;ExifInterface&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Google&amp;rsquo;s documentation on writing latitude and longitude to a JPEG are a bit light on details - they loosely hint at the format that latitude or longitude should have. (See the documentation for &lt;a href="http://developer.android.com/reference/android/media/ExifInterface.html#TAG_GPS_LATITUDE"&gt;ExifInterface.TAG_GPS_LATITUDE&lt;/a&gt;). The API itself is pretty straight forward, but what Google doesn&amp;rsquo;t tell you is HOW the GPS coordinates should encoded.&lt;/p&gt;</description></item></channel></rss>