Skip to main content
Solved

How to create a KML file from a set of jpg geotagged


Hello, I am new in FME.

I need to create a KML that contains a set of placemarks with every jpg geotagged photo.

INPUT: Set of jpg geotagged

OUPUT: KML with photo icons that I clic and show me the photo in a window.

 

Thanks for your answers.

Best answer by srg

@galensonet

Please find attached the solution template created using FME 2018.1

I noticed from the sample you had sent that you are using photos which are online.

In the StringConcatenator, modify the first constant here to change the path to your photos online.

You can read the JPEGs on your local folder or from the web and then create a KML file with embedded photos as desired.

You can also add a title to your photos.

Let me know if this is what you were looking at.

happy fme-ing 😃

srg

EmbedImages-in-KML.fmwt

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

3 replies

srg
Forum|alt.badge.img+10
  • January 5, 2019

@galensonet

Give the PhotoCoordinateExtractor transformer from FME Hub a try.

PhotoCoordinateExtractor

It extracts and parses latitude, longitude coordinates, altitude and rotation from JPEG GPS Exif attributes if they exist.

It takes Raster JPEG photos taken by a camera which include JPEG GPS Exif attributes and generates raster features with the following new attributes:

_latitude in LL84

_longitude in LL84

_altitude in metres

_rotation in degrees

Attributes are added to the raster features but no georeferencing or rotation is done.

Use the 2DPointReplacer with the _latitude and _longitude attributes to create point geometry at the photo location or use the RasterGeoreferencer to georeference the photo to the geographic location if necessary. To rotate images use the Rotator transformer and then RasterRotationApplier.

You can finally use the KML Writer to write to KML format.

Let me know if you need further help.

Do share me some photos and I will build a workspace for you.

happy fme-ing :-)

srg


  • Author
  • January 5, 2019
srg wrote:

@galensonet

Give the PhotoCoordinateExtractor transformer from FME Hub a try.

PhotoCoordinateExtractor

It extracts and parses latitude, longitude coordinates, altitude and rotation from JPEG GPS Exif attributes if they exist.

It takes Raster JPEG photos taken by a camera which include JPEG GPS Exif attributes and generates raster features with the following new attributes:

_latitude in LL84

_longitude in LL84

_altitude in metres

_rotation in degrees

Attributes are added to the raster features but no georeferencing or rotation is done.

Use the 2DPointReplacer with the _latitude and _longitude attributes to create point geometry at the photo location or use the RasterGeoreferencer to georeference the photo to the geographic location if necessary. To rotate images use the Rotator transformer and then RasterRotationApplier.

You can finally use the KML Writer to write to KML format.

Let me know if you need further help.

Do share me some photos and I will build a workspace for you.

happy fme-ing :-)

srg

Thanks @srg for your answer.

In this drive I was upload my request and my test, and a screen capture video to show that I Need to create.

https://drive.google.com/open?id=1_quBwR9ZpnIyNfqRagZJoXTT0M-wKf8J

I will thanks if you give me the correct workspace.

 

Regards.


srg
Forum|alt.badge.img+10
  • Best Answer
  • January 7, 2019

@galensonet

Please find attached the solution template created using FME 2018.1

I noticed from the sample you had sent that you are using photos which are online.

In the StringConcatenator, modify the first constant here to change the path to your photos online.

You can read the JPEGs on your local folder or from the web and then create a KML file with embedded photos as desired.

You can also add a title to your photos.

Let me know if this is what you were looking at.

happy fme-ing 😃

srg

EmbedImages-in-KML.fmwt


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