Skip to main content
Solved

Extracting latitude and longitude exif from blobs


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

peteratqfes wrote:

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.

View original
Did this help you find an answer to your question?

3 replies

peteratqfes
Contributor
Forum|alt.badge.img+6
  • Author
  • Contributor
  • 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+54
  • Best Answer
  • January 9, 2023
peteratqfes wrote:

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
  • January 9, 2023
nielsgerrits wrote:

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.


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings