<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xml:base="http://www.newlc.com" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
 <title>NewLC - Set Exif GPS latitude information. - Comments</title>
 <link>http://www.newlc.com/en/topic-16971</link>
 <description>Comments for &quot;Set Exif GPS latitude information.&quot;</description>
 <language>en</language>
<item>
 <title>Re: Set Exif GPS latitude information.</title>
 <link>http://www.newlc.com/en/topic-16971#comment-44230</link>
 <description>&lt;p&gt;Hi Shashi&lt;br /&gt;
I know it&#039;s a pretty old thread. However, have you found a solution to write EXIF GPS information?&lt;br /&gt;
I have exactly the same problem. I&#039;m not able to build the required ETagRational buffer. Any hints?&lt;/p&gt;

&lt;p&gt;Thanks&lt;br /&gt;
Alex&lt;/p&gt;</description>
 <pubDate>Tue, 29 Jan 2008 16:10:42 +0100</pubDate>
 <dc:creator>Alex25</dc:creator>
 <guid isPermaLink="false">comment 44230 at http://www.newlc.com</guid>
</item>
<item>
 <title>Re: Set Exif GPS latitude information.</title>
 <link>http://www.newlc.com/en/topic-16971#comment-36190</link>
 <description>&lt;div class=&quot;smf-content&quot;&gt;I tried using the method suggested. However, it still gives the same -6 error. I believe there has to be some special syntax for setting the value within the Exif header. From whatever i have read about exif tags, i believe there are 3 bytes used to hold the latitude information within the GPS IFD.&amp;nbsp; &lt;br /&gt;The problem is how do i convert the information available in TReal64 to fit into those 3 bytes. Also, i &amp;#039;m not sure if we can directly store the TReal value or we have to convert the value into degrees, minutes and seconds before storing&amp;nbsp; them. &lt;br /&gt;&lt;br /&gt;Anyways i appreciate your help.&lt;br /&gt;Thanks,&lt;br /&gt;Shashi.&lt;/div&gt;</description>
 <pubDate>Tue, 05 Dec 2006 11:45:59 +0100</pubDate>
 <dc:creator>shashishaw</dc:creator>
 <guid isPermaLink="false">comment 36190 at http://www.newlc.com</guid>
</item>
<item>
 <title>Re: Set Exif GPS latitude information.</title>
 <link>http://www.newlc.com/en/topic-16971#comment-36189</link>
 <description>&lt;div class=&quot;smf-content&quot;&gt;Oh, I see...&lt;br /&gt;misunderstood the problem slightly&lt;br /&gt;&lt;br /&gt;I have never used the SetTagL so I don&amp;#039;t really know what it expects...&lt;br /&gt;&lt;br /&gt;It might be a TPckgBuf or TPckgC with the value in it though.&lt;br /&gt;&lt;br /&gt;you can create one&amp;nbsp; like this:&lt;br /&gt;&lt;div class=&quot;codeheader&quot;&gt;Code:&lt;/div&gt;&lt;div class=&quot;code&quot;&gt;TPckgBuf&amp;lt;TReal64&amp;gt; numbuf(aMyValue);&lt;br /&gt;TPckgC&amp;lt;TReal64&amp;gt; numbuf2(aMyValue);&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;The first line will mean one extra copying of the data since TPckgBuf has its own buffer, since TPckgC is just a pointer to existing data.&lt;br /&gt;&lt;br /&gt;It will store the number in the buffer as raw binary data.&lt;/div&gt;</description>
 <pubDate>Tue, 05 Dec 2006 10:29:16 +0100</pubDate>
 <dc:creator>alh</dc:creator>
 <guid isPermaLink="false">comment 36189 at http://www.newlc.com</guid>
</item>
<item>
 <title>Re: Set Exif GPS latitude information.</title>
 <link>http://www.newlc.com/en/topic-16971#comment-36188</link>
 <description>&lt;div class=&quot;smf-content&quot;&gt;Hi Alh,&lt;br /&gt;Thanks for the reply. However using either Format or AppendFormat does not help. &lt;br /&gt;I tried to set, say a latitude value of 10.1234 using&lt;br /&gt;&lt;br /&gt;buf.Format(_L8(&amp;quot;%f&amp;quot;),10.1234);&lt;br /&gt;&lt;br /&gt;This when passed to the SetTagL function, it still leaves with the reason code -6. (KErrArgument).&lt;/div&gt;</description>
 <pubDate>Tue, 05 Dec 2006 10:14:08 +0100</pubDate>
 <dc:creator>shashishaw</dc:creator>
 <guid isPermaLink="false">comment 36188 at http://www.newlc.com</guid>
</item>
<item>
 <title>Re: Set Exif GPS latitude information.</title>
 <link>http://www.newlc.com/en/topic-16971#comment-36187</link>
 <description>&lt;div class=&quot;smf-content&quot;&gt;You can try use the Format() function.&lt;br /&gt;&lt;br /&gt;you find the format string syntax here:&lt;br /&gt;Symbian OS Guide&lt;br /&gt;&amp;nbsp; &amp;nbsp; C++ API guide&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Base&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Using User Library (E32)&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Buffers and Strings&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Using Descriptors&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; How to Use Descriptors&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Format string syntax&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;%f seems to be useful for your needs.&lt;br /&gt;&lt;br /&gt;&lt;div class=&quot;codeheader&quot;&gt;Code:&lt;/div&gt;&lt;div class=&quot;code&quot;&gt;Format(_L(&amp;quot;%f&amp;quot;),myvalue);&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;There is an AppendFormat too.&lt;/div&gt;</description>
 <pubDate>Mon, 04 Dec 2006 13:54:58 +0100</pubDate>
 <dc:creator>alh</dc:creator>
 <guid isPermaLink="false">comment 36187 at http://www.newlc.com</guid>
</item>
<item>
 <title>Set Exif GPS latitude information.</title>
 <link>http://www.newlc.com/en/topic-16971</link>
 <description>&lt;div class=&quot;smf-content&quot;&gt;&lt;/div&gt;&lt;p&gt;&lt;a href=&quot;http://www.newlc.com/en/topic-16971&quot;&gt;read more&lt;/a&gt;&lt;/p&gt;</description>
 <comments>http://www.newlc.com/en/topic-16971#comments</comments>
 <category domain="http://www.newlc.com/en/forums/symbian-c">Symbian C++</category>
 <pubDate>Mon, 04 Dec 2006 11:22:06 +0100</pubDate>
 <dc:creator>shashishaw</dc:creator>
 <guid isPermaLink="false">16545 at http://www.newlc.com</guid>
</item>
</channel>
</rss>
