Solved! Go to Solution.
Thanks for letting me know. Is this an idea I’m able to vote for?
I looked for existing KMZ/KML and photos as an existing idea but did not see one. I'd suggest creating one so it gets visibility with the ArcGIS Pro Developers.
This function has been submitted as an Idea. If you come across this post and are interested in this functionality, please vote for this idea!
Hi,
I have wrote a workaround, see also the attached pdf, based on the data of @jdruding It can be improved with python scripts to do all the steps in ArcGIS Pro but I cannot write them.
KML/KMZ data with attachments to ArcGIS Pro
In this workaround only two photo attachments per feature class can be added. Writing a python script will improve the process and could make it possible to add more photos as attachments to a feature class.
ArcGIS Pro
Excel
The next steps are done in Excel but it would be easier and quicker to use a Python script in Field Calculator à who can writing python script?
Location: 39.69032; -74.67498<br>
Elevation: 32.8 ft<br>
Time Created: 1/23/22; 4:22:49 PM EST<br>
<img src="5fb5160cf67690I1483434a2806f41547.jpg"><br><img src="715462I148e722e9d1ca07afI146570f14.jpg"><br>
=SUBSTITUTE(IFERROR(MID(I2;FIND("<img src=";I2)+10;37);"");"""";"")
=SUBSTITUTE(SUBSTITUTE(IF(LEN(I2)-LEN(SUBSTITUTE(I2;".jpg";""))>4;MID(RIGHT(I2;LEN(I2)-FIND("|";SUBSTITUTE(I2;"=";"|";LEN(I2)-LEN(SUBSTITUTE(I2;"=";"")))));2;38);"");">";"");"""";"")
Now a nice trick in ArcGIS Pro
Import attachments
Results
popup from the KML data opened in ArcGIS Pro
popup from the data converted to file geodatabase
Wow! Very cool. I'll have to give this a try! I don't know Python either, but Ive been wanting to learn 🙂
Did anyone ever figure this out? I am having the same issue with getting photos stored in my KML to upload.