<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Script for creating KMZ files from features in shapefile in Python Snippets Questions</title>
    <link>https://community.esri.com/t5/python-snippets-questions/script-for-creating-kmz-files-from-features-in/m-p/790796#M195</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ravendra....getting a 403 error when trying to download.&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 25 Jul 2016 15:01:25 GMT</pubDate>
    <dc:creator>RebeccaStrauch__GISP</dc:creator>
    <dc:date>2016-07-25T15:01:25Z</dc:date>
    <item>
      <title>Script for creating KMZ files from features in shapefile</title>
      <link>https://community.esri.com/t5/python-snippets-questions/script-for-creating-kmz-files-from-features-in/m-p/790791#M190</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can someone please throw me a code sample to iterate through features in a Shapefile and export each as a KMZ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've been able go through a list of Shapefiles in a Data Frame and convert those to KMZs but cant get the syntax right to go through the individual features of a Shapefile and convert those to KMZs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Jul 2016 00:55:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-snippets-questions/script-for-creating-kmz-files-from-features-in/m-p/790791#M190</guid>
      <dc:creator>MarleneSanchez</dc:creator>
      <dc:date>2016-07-08T00:55:21Z</dc:date>
    </item>
    <item>
      <title>Re: Script for creating KMZ files from features in shapefile</title>
      <link>https://community.esri.com/t5/python-snippets-questions/script-for-creating-kmz-files-from-features-in/m-p/790792#M191</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;so this is the tool you are using &lt;A href="http://desktop.arcgis.com/en/arcmap/latest/tools/conversion-toolbox/layer-to-kml.htm" title="http://desktop.arcgis.com/en/arcmap/latest/tools/conversion-toolbox/layer-to-kml.htm"&gt;Layer To KML—Help | ArcGIS for Desktop&lt;/A&gt;&amp;nbsp; currently?&lt;/P&gt;&lt;P&gt;What code do you have since you will need to create a layer file for each feature or convert the kmz to kmls... can't remember but this is in my bookmarks&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.esri.com/thread/175492"&gt;convert *.kmz to *.kml&lt;/A&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Jul 2016 01:23:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-snippets-questions/script-for-creating-kmz-files-from-features-in/m-p/790792#M191</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2016-07-08T01:23:57Z</dc:date>
    </item>
    <item>
      <title>Re: Script for creating KMZ files from features in shapefile</title>
      <link>https://community.esri.com/t5/python-snippets-questions/script-for-creating-kmz-files-from-features-in/m-p/790793#M192</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I wasn't able to find a way to list the features in the Shapefile like you can list the Shapefiles in the Data Frame.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Taking the important parts from a larger script:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;import arcpy&lt;/P&gt;&lt;P&gt;from arcpy import env&lt;/P&gt;&lt;P&gt;import os&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;activeoutputfolder= "C:\\Users"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;mxd=arcpy.mapping.MapDocument("CURRENT")&amp;nbsp;&amp;nbsp; # The active Arcmap file&lt;/P&gt;&lt;P&gt;df= arcpy.mapping.ListDataFrames(mxd,"")[0] # "Layers"&lt;/P&gt;&lt;P&gt;lyr=arcpy.mapping.ListLayers(mxd,"",df)[0] # first thing in "Layers"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;#------kmz export part&lt;/P&gt;&lt;P&gt;for x in range (0,3):&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; namea= arcpy.mapping.ListLayers(mxd,"",df)&lt;X&gt;.name&lt;/X&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; outputfile= str(activeoutputfolder)+"\\"+str(namea)+".kmz"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; inputa= arcpy.mapping.ListLayers(mxd,"",df)&lt;X&gt;&lt;/X&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy.LayerToKML_conversion(str(inputa), str(outputfile), "0", "false", "DEFAULT", "1024", "96", "CLAMPED_TO_GROUND")&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Jul 2016 01:46:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-snippets-questions/script-for-creating-kmz-files-from-features-in/m-p/790793#M192</guid>
      <dc:creator>MarleneSanchez</dc:creator>
      <dc:date>2016-07-08T01:46:06Z</dc:date>
    </item>
    <item>
      <title>Re: Script for creating KMZ files from features in shapefile</title>
      <link>https://community.esri.com/t5/python-snippets-questions/script-for-creating-kmz-files-from-features-in/m-p/790794#M193</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;ahhh you want a search cursor (see code examples) to get the shapes prior to making them a temporary layer, then out to kml&lt;/P&gt;&lt;P&gt;&lt;A href="http://desktop.arcgis.com/en/arcmap/latest/analyze/arcpy-data-access/searchcursor-class.htm" title="http://desktop.arcgis.com/en/arcmap/latest/analyze/arcpy-data-access/searchcursor-class.htm"&gt;SearchCursor—Help | ArcGIS for Desktop&lt;/A&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Jul 2016 02:31:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-snippets-questions/script-for-creating-kmz-files-from-features-in/m-p/790794#M193</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2016-07-08T02:31:40Z</dc:date>
    </item>
    <item>
      <title>Re: Script for creating KMZ files from features in shapefile</title>
      <link>https://community.esri.com/t5/python-snippets-questions/script-for-creating-kmz-files-from-features-in/m-p/790795#M194</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please check my software Lidar viewer 1.0 free version . it will convert POI into kml file. After providing correct geodetic information.&lt;/P&gt;&lt;P&gt;LINK--&amp;nbsp; &lt;A href="http://lidarviewer.blogspot.com/" title="http://lidarviewer.blogspot.com/"&gt;LidarViewer&lt;/A&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Jul 2016 03:25:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-snippets-questions/script-for-creating-kmz-files-from-features-in/m-p/790795#M194</guid>
      <dc:creator>RavendraSingh</dc:creator>
      <dc:date>2016-07-08T03:25:59Z</dc:date>
    </item>
    <item>
      <title>Re: Script for creating KMZ files from features in shapefile</title>
      <link>https://community.esri.com/t5/python-snippets-questions/script-for-creating-kmz-files-from-features-in/m-p/790796#M195</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ravendra....getting a 403 error when trying to download.&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Jul 2016 15:01:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-snippets-questions/script-for-creating-kmz-files-from-features-in/m-p/790796#M195</guid>
      <dc:creator>RebeccaStrauch__GISP</dc:creator>
      <dc:date>2016-07-25T15:01:25Z</dc:date>
    </item>
    <item>
      <title>Re: Script for creating KMZ files from features in shapefile</title>
      <link>https://community.esri.com/t5/python-snippets-questions/script-for-creating-kmz-files-from-features-in/m-p/790797#M196</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hello Rebecca, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in my computer it is easily downloadable. please try again on this link.&lt;/P&gt;&lt;P&gt;&lt;A href="http://docs.google.com/uc?export=download&amp;amp;id=0B8sX5C0TZa-GeEJiSHY0TWZUUW8" title="http://docs.google.com/uc?export=download&amp;amp;id=0B8sX5C0TZa-GeEJiSHY0TWZUUW8"&gt;http://docs.google.com/uc?export=download&amp;amp;id=0B8sX5C0TZa-GeEJiSHY0TWZUUW8&lt;/A&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope it is working.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Jul 2016 16:19:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-snippets-questions/script-for-creating-kmz-files-from-features-in/m-p/790797#M196</guid>
      <dc:creator>RavendraSingh</dc:creator>
      <dc:date>2016-07-25T16:19:01Z</dc:date>
    </item>
    <item>
      <title>Re: Script for creating KMZ files from features in shapefile</title>
      <link>https://community.esri.com/t5/python-snippets-questions/script-for-creating-kmz-files-from-features-in/m-p/790798#M197</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;not for me, but maybe it's blocked on my network&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="image-1 jive-image" height="168" src="https://community.esri.com/legacyfs/online/213117_pastedImage_0.png" style="width: 451px; height: 168.034px;" width="451" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Jul 2016 16:39:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-snippets-questions/script-for-creating-kmz-files-from-features-in/m-p/790798#M197</guid>
      <dc:creator>RebeccaStrauch__GISP</dc:creator>
      <dc:date>2016-07-25T16:39:34Z</dc:date>
    </item>
    <item>
      <title>Re: Script for creating KMZ files from features in shapefile</title>
      <link>https://community.esri.com/t5/python-snippets-questions/script-for-creating-kmz-files-from-features-in/m-p/790799#M198</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hello ,&lt;/P&gt;&lt;P&gt;sorry its my fault . it did not activate the link in google drive. now link is ok.&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=http%3A%2F%2Fdocs.google.com%2Fuc%3Fexport%3Ddownload%26id%3D0B8sX5C0TZa-GeEJiSHY0TWZUUW8" rel="nofollow" style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #000000; text-decoration: underline;" target="_blank"&gt;http://docs.google.com/uc?export=download&amp;amp;id=0B8sX5C0TZa-GeEJiSHY0TWZUUW8&lt;/A&gt;&lt;/P&gt;&lt;P&gt;please try it. and thanks for downloading.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Jul 2016 17:56:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-snippets-questions/script-for-creating-kmz-files-from-features-in/m-p/790799#M198</guid>
      <dc:creator>RavendraSingh</dc:creator>
      <dc:date>2016-07-25T17:56:55Z</dc:date>
    </item>
    <item>
      <title>Re: Script for creating KMZ files from features in shapefile</title>
      <link>https://community.esri.com/t5/python-snippets-questions/script-for-creating-kmz-files-from-features-in/m-p/790800#M199</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;download worked now.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Jul 2016 18:10:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-snippets-questions/script-for-creating-kmz-files-from-features-in/m-p/790800#M199</guid>
      <dc:creator>RebeccaStrauch__GISP</dc:creator>
      <dc:date>2016-07-25T18:10:50Z</dc:date>
    </item>
  </channel>
</rss>

