If creating a point, then attaching an image (file) via the 'Properties' popup, and then exporting that file the following happens:
a) The output kmz does not include that image in the 'files' subfolder (after changing .kmz to .zip to inspect contents) and the size of the kmz reflects that (i.e. a few KB versus say, a couple of MB if including a photo)
b) the doc.kml references the image, but that reference is incorrect. (i.e.![CDATA[ <img src='files/xxxxx.jpg'>]].
xxxx.jpg is not the original filename of the image and that file is not present in the files subdirectory. This is especially frustrating as this means I can't even write a python script to load the images or update the doc.kml (?!)
Can functionality be added so that
1) Images are saved into exported KMZ (like Google Earth did)
2) That option is selectable between saving inline local files into KMZ and not (to avoid unwanted situations where inline images blow out the size of the kmz without the user realizing)
KML/KMZ is a great format for commonly digested simple geodata- Clients are readily available and the format is well understood and symbology is included. By including local files, the user can package up a bunch of geo data and associated documents in one place.
arcgis earth #arcgis earth; pop-up
Thanks for your feedback. Currently the save as KMZ file workflow includes:
- Custom icon set to a placemark is saved to the "res" subfolder when "Save as..." to the KMZ file.
- Local file added in a drawing placemark pop-up is saved to "files" subfolder when "Save as..." to the KMZ file.
- Image url is saved in the "doc.kml" when "Save as..." to the KMZ file.
Use the above panel to insert the images and it should work. Will come up with a more complete workflow for KML editing in the future release.
- Local file added in a drawing placemark pop-up is saved to "files" subfolder when "Save as..." to the KMZ file.
This is the piece that does not work, but I've narrowed it down slightly- This won't work over files of a certain size- I'm unsure if that is size in pixels or bytes..but adding a jpeg photo of size 4128x3096 pixels and 3,548 KB will not save the file into the 'Files' folder. No error or warning is given.
Using a smaller file (1136x1958 pixels, 28KB) does work.
Can you advise if there is a limit?
Thanks for clarifying and digging into the problem! I am able to reproduce it. This is currently a known issue in our backlog and will be worked on as bug fixing in the coming release.