8 Replies Latest reply on Aug 5, 2015 8:12 AM by gabrisch

    Geotagged pictures to kml

      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
          Any updates?
          • Re: Geotagged pictures to kml
            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

                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

                  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.


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




                  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:



                  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.



                  Start Editing



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




                  Do two Find and Replaces to change the string from



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


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


                  Find Replace one


                  Find Replace two.



                  Save your edits and stop editing.



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




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



                  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.




                  Extract the zip file.




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


                  files folder created.



                  Next, Copy your Geotagged photos into the files folder.




                  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.



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

                      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

                        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

                        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.


                        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
                      • Re: Geotagged pictures to kml

                        Here is a tool that will take a directory of geotagged images and output a KML file (and a CSV file) into the same directory as the directory of images.  The KML file can be opened in Google Earth and each point location is given the name of the image.  If you click on a point in Google Earth, the image will open.  You can then click the image to see the image in its full resolution.  After execution, you can move/share the image directory (with the KML) with others since the paths to the images is relative.


                        The tool requires several Python addin libraries.  To free you from the burden of installing the libraries to run the scrip I have packaged it as a Python executable.  Because  tool does NOT require an ArcGIS installation, nor a Python installation, the tool size is rather large since everything is bundled in the tool.

                        After downloading and unzipping the executable is located in"..\GeotaggedImagesToKMLandCSV\dist\GeotaggedImage2KML_CSV.exe".  You can create a shortcut to the .EXE in Windows after the tool is unzipped.


                        The CSV can be imported into ArcGIS using WGS84.


                        Download here.....