Skip to main content
Question

KML - hyper-linking to photos on local drive (relatively)

  • August 15, 2025
  • 3 replies
  • 39 views

bush_walker
Contributor
Forum|alt.badge.img+2

Hi all,

I’m having issues trying to generate links within a kml file to a photos in the same folder.

First I generate the Hyperlink:

<a href="@Value(fme_basename).jpg">@Value(fme_basename)</a> 

Then I use the KMLPropertySetter

 

The link comes into Google Earth:

 

But the link doesn’t work:

\\img_2416.jpg

Not sure why there are two extra slashes!  Weirdly if I copy and paste the link into outlook or even this post, the link works, but it doesn’t work when you click on it in Google Earth.  Please can someone help me with the syntax?  Thanks.

 

p.s. I’m after a relative link so I can zip up the folder and send it on

 

 

3 replies

j.botterill
Influencer
Forum|alt.badge.img+53
  • Influencer
  • August 15, 2025

<a href="$(FME_MF_DIR)\@Value(fme_basename)">@Value(fme_basename)</a>


crutledge
Influencer
Forum|alt.badge.img+43
  • Influencer
  • August 15, 2025

I was going to say <a href="IMG_2416.JPG">IMG_2416</a> will work for you. And I can’t figure out why you would have double back slashes from the fme_basename attribute. How are you reading in the jpg to parameterize the path or name?


crutledge
Influencer
Forum|alt.badge.img+43
  • Influencer
  • August 15, 2025

And to follow-up the link works when you right click and open link. not on click left click. I figure you are trying to keep this as  simple as possible for a client.