0

I'm working on exporting layers from ArcMap 10.6 to KMLs for use in Google Earth Pro. There is a field in the ArcMap feature class that has a file path link to our network drive to an image. The links do not stay connected when converted to KML.

First image is what I see in ArcMap. A functioning file path. This is the file path link in ArcMap.

This is the same file path in Google Earth Pro. The link is not active. This is the inactive file path link in Google Earth Pro

This is what I see in Google Earth Pro when I "Inspect" the file path. This is what I see when I right-click the file path in Google Earth Pro and hit "Inspect".

1 Answer 1

1

Are you saying that it's just text in the KML balloon, instead of being a clickable hyperlink? If so, that's because your balloon HTML has only text content, and does not have the text wrapped in a link tag:

<a href="{link URL}">{link text}</a>

To work as a link, it would have to look something like this:

<td>Photopath</td>    
<td>
  <a href="G:\Scanned Images\StructurePhotos\051 KennedyOwens\DSC01425.jpg">
    G:\Scanned Images\StructurePhotos\051 KennedyOwens\DSC01425.jpg
  </a>
</td>
7
  • How would I add the <a href= Text </a>? I've tried in Excel and Field Calculator for ArcMap but I'm having major issues. The few links I've googled all have different formulas. Commented May 13, 2021 at 22:31
  • In ArcMap, the field is a string type. I have thousands of scanned images on multiple feature classes. The file paths are copy/pasted from our network G: Drive. Apparently the path always worked for Google Earth until Google Earth Pro was released. Commented May 13, 2021 at 22:38
  • I wonder if something in GE Pro changed? I just created a field with <a href="C:\TEMP\thumbnail.png">Open Photo</a> and when loading it up, it didn't show a clickable link.
    – KHibma
    Commented May 14, 2021 at 11:58
  • @Irrigation_GIS, I'm not sure how to do it in ArcGIS, hopefully others can answer that. In my limited experience, ArcGIS has very limited support for customizing KML output, and the defaults are often not great. Commented May 14, 2021 at 19:33
  • @KHibma, we would need to see your full balloon HTML to debug. Unlikely to be due to a change in Earth pro. Commented May 14, 2021 at 19:33

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.