AnsweredAssumed Answered

Need help running 'layer to kml' tool on a directory location with all of my geotiff images

Question asked by vonmoosa Champion on Aug 15, 2019
Latest reply on Aug 16, 2019 by Dan_Patterson

I need assistance modifying the following code to convert a whole folder rather than a single image.

# Local variables:
SP0013_tif = "SP0013.tif"
SP0013_LayerToKML_kmz = "C:\\Users\\anthonyv\\Documents\\ArcGIS\\SP0013_LayerToKML.kmz"

# Process: Layer To KML
arcpy.LayerToKML_conversion(SP0013_tif, SP0013_LayerToKML_kmz, "0", "NO_COMPOSITE", "DEFAULT", "15000", "5000", "CLAMPED_TO_GROUND")

Outcomes