How to convert all shapefiles in folder into KML using ArcPy?

المشرف العام

Administrator
طاقم الإدارة
I was trying to convert all the shp in a folder into kml.

featureclasses = arcpy.ListFeatureClasses()

for fc in featureclasses:

# Set Local Variables composite = 'COMPOSITE' pixels = 1024 dpi = 96 clamped = 'CLAMPED_TO_GROUND' scale = 1 outKML = fc[:-4] + ".kmz" arcpy.LayerToKML_conversion(fc,outKML, scale, composite,'', pixels, dpi, clamped)​
It always saysFailed to execute. Parameters are not valid.ERROR 000732: Layer: Dataset ZZZ.shp does not exist or is not supportedFailed to execute (LayerToKML).

But I can manually do it within ArcMap 10.1 Desktop...



أكثر...
 
أعلى