×

Discussion Board

Page 1 of 2 12 LastLast
Results 1 to 15 of 16
  1. #1
    Registered User
    Join Date
    Dec 2004
    Posts
    21

    Set Exif Gps Info Latitude.

    Hi all,
    I want to add the available GPS information like Latitude and longitude to an image file captured using the device camera. It is in the exif format and has fields for the GPS tags. I am using S603rd FP1 SDK and CExifModify classes to
    set the GPS tags. I am able to set the Latitude and longitude reference values which require Ascii values to be set, but i am unable to set latitude and longitude values since these require rational values.

    My problem is I am unable to set the latitude information from rational to the descriptor format.

    How do i convert the latitude information say 24.121212 into descriptor format which can be used to set the latitude tag.

    Any pointers to the solution will be helpful.
    Regards,
    Shashi.

  2. #2
    Registered User
    Join Date
    Mar 2003
    Posts
    34

    Re: Set Exif Gps Info Latitude.

    I know this is a pretty old thread. However I have exactly the same problem.

    How do I have to build the descriptor variable (test1 in my case) using a given latitude/longitude value? If I pass invalid values in the test1 variable the phone crashes. (immediately reboot)

    Sample code:
    TBuf8<24> test1;
    test1.SetMax();
    // fill test1 variable
    modify->SetTagL(EIfdGps,TExifTagInfo(0x04,CExifTag::ETagRational,3),test1);

  3. #3
    Registered User
    Join Date
    Oct 2006
    Posts
    14

    Smile Re: Set Exif Gps Info Latitude.

    hi,
    I have worked on this and it is working fine with me.

    There are two ways for this:
    1.Creating exif header and adding GPS info tags to it.
    2.Modifying existing exif header

    Here you can use TExifWriterUtility class for writing/modifying tad values such as SetGpsLongitude(TInt DegNumerator,TInt DegDenominator,TInt MinNumerator,TInt MinDenomonator,TInt SecNumerator,TInt SecDenomnitor);
    For example you want to set 5degree 55 min 30 sec, you can pass these as:
    SetGpsLongitude (5,1,55,1,30,1) or SetGpsLongitude(10,2,110,2,60,2);
    Both are equal here as 10/2 = 5/1 and 110/2 = 55/1 and 60/2 =30/1

  4. #4
    Registered User
    Join Date
    Mar 2003
    Posts
    34

    Re: Set Exif Gps Info Latitude.

    Hi

    Thanks for your reply.
    I would love to use the classes TExifWriterUtility and TExifWriterUtility. However it seems there is no public documentation available and the required header file are not part of the sdk.
    Any ideas?

  5. #5
    Registered User
    Join Date
    Oct 2006
    Posts
    14

    Lightbulb Re: Set Exif Gps Info Latitude.

    hi,
    It is publically avaialable in Symbian OS 9.2 release.

    Location: ExifUtility.h
    Link against: exifutility.lib

  6. #6
    Registered User
    Join Date
    Mar 2003
    Posts
    34

    Re: Set Exif Gps Info Latitude.

    Quote Originally Posted by jitinarora View Post
    hi,
    It is publically avaialable in Symbian OS 9.2 release.

    Location: ExifUtility.h
    Link against: exifutility.lib
    No, it seems not. At least not in the S60 sdk. Maybe it is in the uiq sdk. :-(
    Anyway thanks for your help.

    So, I'm still looking for a way to encode the aTagData variable as a rational value in the class CExifModify

    SetTagL (TExifIfdType aIfdType, TExifTagInfo aExifTagInfo, const TDesC8 &aTagData)

  7. #7
    Registered User
    Join Date
    Oct 2006
    Posts
    14

    Question Re: Set Exif Gps Info Latitude.

    Can you please tell me which version of SDK you are using?

  8. #8
    Registered User
    Join Date
    Mar 2003
    Posts
    34

    Re: Set Exif Gps Info Latitude.

    Quote Originally Posted by jitinarora View Post
    Can you please tell me which version of SDK you are using?
    S60 3rd Edition SDK for Symbian OS, Supporting Feature Pack 1, for C++
    (Symbian\9.2\S60_3rd_FP1)

  9. #9
    Registered User
    Join Date
    Oct 2006
    Posts
    14

    Re: Set Exif Gps Info Latitude.

    HI,
    It is publically avaialable.
    Please refer to following link:

    http://www.symbian.com/developer/tec...lityClass.html

    Its publically published.

  10. #10
    Registered User
    Join Date
    Mar 2003
    Posts
    34

    Re: Set Exif Gps Info Latitude.

    Could be, but the documentation does not explain how to instantiate a class TExifWriterUtility / MExifMetadataWriter.
    Can you please send me your part of the code that does this?

    The required header files (ExifUtility.h, ICLExif.h) are not part of the sdk.

    The local documentation of the class TExifWriterUtility of the sdk contains the following sentence:
    "This item is not part of the S60 3rd Edition SDK for Symbian OS, Supporting Feature Pack 1, for C++."

  11. #11
    Registered User
    Join Date
    Oct 2006
    Posts
    14

    Lightbulb Re: Set Exif Gps Info Latitude.

    You can refer following code:

    iSession.Connect();
    _LIT8(KMimeType,"image/jpeg");
    iEncoder = STATIC_CAST(CJPEGExifEncoder*, CJPEGExifEncoder::FileNewL(iSession,aPath,KMimeType));
    aMetaData = iEncoder->ExifMetadata();

    TInt testResult;
    TExifWriterUtility writer(aMetaData);
    writer.SetGpsLongitude();

  12. #12
    Registered User
    Join Date
    Mar 2003
    Posts
    34

    Re: Set Exif Gps Info Latitude.

    Hi
    What SDK version do you use? (S60 / uiq) Do you have any additional libraries installed?

    Because I my installed SDK all these classes (CJPEGExifEncoder, TExifWriterUtility, MExifMetadataWriter) are missing (Missing header and lib files)

  13. #13
    Nokia Developer Moderator
    Join Date
    Mar 2003
    Location
    Lempäälä/Finland
    Posts
    29,166

    Re: Set Exif Gps Info Latitude.

    Those files are not included in public SDKs, as clearly indicated by the SDK documentation (3rd ED FP1 SDK's help documentation).

    Anyway, as the version of the GPS tag is known (or at least if we assume that it is known), then you can do the non-public parts pretty nicely by yourself.

    Anyway, I made a full example, and you could get it from the Wiki: http://wiki.forum.nokia.com/index.ph...ng_Example.zip

  14. #14
    Registered User
    Join Date
    Mar 2003
    Posts
    34

    Re: Set Exif Gps Info Latitude.

    Hi

    Thanks for sharing this example code. In the meantime I found the solution myself. However I'm sure other people can use your example code.

  15. #15
    Registered User
    Join Date
    Mar 2009
    Posts
    1

    Re: Set Exif Gps Info Latitude.

    How do u slove this problem? Can u share to me? can u mange to fing the ExifUtility.h file or ExifUtility.lib?

Similar Threads

  1. Getting the GPS location info from mobile device
    By anteros511 in forum General Development Questions
    Replies: 2
    Last Post: 2008-09-23, 20:42
  2. you help is needed, GPS reading via bluetooth
    By blueoceanstar in forum Bluetooth Technology
    Replies: 4
    Last Post: 2006-11-19, 01:03
  3. Problem executing Maze Racer
    By IFtechsupport in forum Mobile Java Games
    Replies: 1
    Last Post: 2006-09-22, 17:18
  4. Nokia12 GPS
    By marko.vucetic in forum Nokia M2M
    Replies: 2
    Last Post: 2004-05-30, 23:49
  5. GPS connectivity with Nokia 12 module
    By tekra in forum Nokia M2M
    Replies: 2
    Last Post: 2004-05-19, 05:52

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×