7 Replies Latest reply on Feb 12, 2015 8:01 AM by khibma-esristaff

    Geotagged pictures to kml

    eddytorial
      I am currently working on a project that requires geo-tagged pictures to be uploaded as .kmz file on google earth. What esri product can be of help?
        • Re: Geotagged pictures to kml
          alextaochen
          Any updates?
          • Re: Geotagged pictures to kml
            yinmingshu
            Any news coming out yet?
            I need convert the photo with point feature to KMZ file so that I can view data information and image information in Google earth .
            does anyone has good idea?
              • Re: Geotagged pictures to kml
                xander_bakker

                Judging from this thread (Google Groups ), it appear that you can use the Picasa desktop application to import the geotagged photo's and create a kmz from it.

                • Re: Geotagged pictures to kml
                  mbockenhauer-esristaff

                  Here is one way you could accomplish creating a KMZ file of geotagged point locations that also shows the picture in the popup window.

                   

                  Using ArcMap - ArcToolbox use the "Geotagged photo to points" tool.

                  geotagphototopointool.png

                  Select the folder that your Geotagged photos are in. and specify your output location for the feature class.

                   

                  geotaggphotoinput.png

                   

                  Click OK and this will add your features to ArcMap.  If you use the popup tool and click on the feature you will see something similar to the following:

                  htmlpoppathtopicture.png

                   

                  We will change this path, so that the resulting KML will work as desired.

                   

                  To do this, Right Click on the Layer and Open the Attribute table.

                  oopenattributetable.png

                   

                  Start Editing

                  startediting.png

                   

                  From the Attribute Table use Find and Replace to change the path attribute.

                   

                  findandreplace.png

                   

                  Do two Find and Replaces to change the string from

                  C:\Users\Public\Pictures\photo\build1.jpg

                  to

                  <img src="files/build1.jpg" width=200/>
                  

                   

                  Depending on your picture size may want to experiment with the width.

                   

                  Find Replace one

                  findreplace1.png

                  Find Replace two.

                  findreplace2.png

                   

                  Save your edits and stop editing.

                  saveeditsandstopediting.png

                   

                  If you look at the popup now,  you will see that is shows a broken image.

                   

                  brokenimage.png

                   

                  Next, use the Layer to KML tool in ArcToolbox to create a KMZ file of your layer.

                   

                  layertokml.png

                  In your windows file browser, browse to the location of the KMZ file that you just created.

                  Rename the .KMZ file to a .ZIP file.

                   

                  renamekmztozip.png

                   

                  Extract the zip file.

                   

                  extractall.png

                   

                  Browse into the extracted folder and add a new "files" folder, this matches the attribute path update made earlier.

                  newfolder.png

                  files folder created.

                  folderfiles.png

                   

                  Next, Copy your Geotagged photos into the files folder.

                   

                  copyintofilesfolder.png

                   

                  Now open the doc.kml file in Google Earth.   The popup in Google Earth should show the pictures.

                  From Google Earth "Save Place as..." and save it to a KMZ file.  this will create a KMZ file with the Point nodes and Photos zipped up inside.

                   

                  I have attached an example created with the process above.

                   

                  Mark

                  2 of 2 people found this helpful
                    • Re: Geotagged pictures to kml
                      xander_bakker

                      Hi Mark Bockenhauer,

                       

                      I think this explanation deserved a place of its own. Might want to copy and paste it into a blog post. Thanx for the contribution +1 for that.

                       

                      Kind regards, Xander

                      • Re: Geotagged pictures to kml
                        savon_specservices

                        Another option is to link the photo with the following html code (Add a column to the attribute column and make sure the contents matches the code below)

                         

                        <a href="&""""&"file:///"& [Path]&""""&">"& [Path]&"</a>

                         

                        Export to KML and all your points will now contain links to the images.

                         

                        The downside of this method is that the html pop-up in google earth contains a link to the image and once you click that link the image takes up the entire screen.

                         

                        The upside to this method is that it can be easily automated and requires very little effort.

                         

                        Does anyone know if an image added as a link can be resized so that it does not take up the entire screen?

                      • Re: Geotagged pictures to kml
                        khibma-esristaff

                        I put a tool up on arcgis.com which basically wraps the Layer to KML tool and does many of the steps Mark outlines above.

                        http://www.arcgis.com/home/item.html?id=5d8704c938ea4715b59eebabcd96c1d9

                        The tool was designed to work specifically with a points layer that already has image attachments embedded. (Because it injects a < img > tag into the KML).

                        1 of 1 people found this helpful