Skip to main content
Solved

Extracting latitude and longitude exif from blobs

  • January 9, 2023
  • 3 replies
  • 238 views

peteratqfes
Contributor
Forum|alt.badge.img+6

Hi,

 

It's not entirely clear whether this has been solved or not already. I'm using FME 2022.1.

 

I have a portal feature service with has jpegs as attachments.

 

I want to read the exif metadata from the blobs.

jpeg_exif_gpslatitude jpeg_exif_gpslongitude jpeg_exif_gpsimgdirection

 

If I use the RasterReplacer method I lose all exif metadata.

 

image

Best answer by nielsgerrits

Maybe I'm answering my own problem below - always the way where you post your question and find the answer a few minutes later.

 

BUT is there any way of obtaining exif data without writing out to files? blob to exif direct?

 

My method below wrote blob binary encoded out to file using the AttributeFileWriter and using a FeatureReader with the exif gps data exposed. Works.

 

image

I think this is as good as it gets. One optimization can be using a TempPathnameCreator to prevent the need to clean the files afterwards.

This post is closed to further activity.
It may be an old question, an answered question, an implemented idea, or a notification-only post.
Please check post dates before relying on any information in a question or answer.
For follow-up or related questions, please post a new question or idea.
If there is a genuine update to be made, please contact us and request that the post is reopened.

3 replies

peteratqfes
Contributor
Forum|alt.badge.img+6
  • Author
  • Contributor
  • 17 replies
  • January 9, 2023

Maybe I'm answering my own problem below - always the way where you post your question and find the answer a few minutes later.

 

BUT is there any way of obtaining exif data without writing out to files? blob to exif direct?

 

My method below wrote blob binary encoded out to file using the AttributeFileWriter and using a FeatureReader with the exif gps data exposed. Works.

 

image


nielsgerrits
VIP
Forum|alt.badge.img+60
  • 2938 replies
  • Best Answer
  • January 9, 2023

Maybe I'm answering my own problem below - always the way where you post your question and find the answer a few minutes later.

 

BUT is there any way of obtaining exif data without writing out to files? blob to exif direct?

 

My method below wrote blob binary encoded out to file using the AttributeFileWriter and using a FeatureReader with the exif gps data exposed. Works.

 

image

I think this is as good as it gets. One optimization can be using a TempPathnameCreator to prevent the need to clean the files afterwards.


peteratqfes
Contributor
Forum|alt.badge.img+6
  • Author
  • Contributor
  • 17 replies
  • January 9, 2023

I think this is as good as it gets. One optimization can be using a TempPathnameCreator to prevent the need to clean the files afterwards.

Thanks for the info and thanks for the advice on TempPathnameCreator.