<?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: Exporting Feature to KMZ  in the batch mode in Google Earth Questions</title>
    <link>https://community.esri.com/t5/google-earth-questions/exporting-feature-to-kmz-in-the-batch-mode/m-p/789371#M12</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;See &lt;A href="http://resources.arcgis.com/en/help/main/10.1/index.html#//00210000000w000000"&gt;this help page&lt;/A&gt; for how to use the Check Values button to generate output file names, based on inputs:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="GUID-9803A4E7-CA14-4BE7-BA15-E1FA8C2B9BAD-web.png" class="image-1 jive-image" src="http://resources.arcgis.com/en/help/main/10.1/0021/GUID-9803A4E7-CA14-4BE7-BA15-E1FA8C2B9BAD-web.png" style="height: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 24 Mar 2015 20:55:51 GMT</pubDate>
    <dc:creator>DarrenWiens2</dc:creator>
    <dc:date>2015-03-24T20:55:51Z</dc:date>
    <item>
      <title>Exporting Feature to KMZ  in the batch mode</title>
      <link>https://community.esri.com/t5/google-earth-questions/exporting-feature-to-kmz-in-the-batch-mode/m-p/789370#M11</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;STRONG&gt;Hi,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;am facing a problem exporting features to KMZ please if any one could help .&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt; well&amp;nbsp; i am exporting a huge number&amp;nbsp; of features&amp;nbsp; almost&amp;nbsp; "1800"&amp;nbsp; so am using&amp;nbsp; export layer to kml&amp;nbsp; in the batch mode .&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;so here's the problems&amp;nbsp; the tool just truncated the names of the features&amp;nbsp; but if i entered the full name by typing , it exports it pretty will !&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;so how can i export the features&amp;nbsp; with there names&amp;nbsp; there must be a way to do it beside &lt;STRONG&gt;typing name for each !&lt;/STRONG&gt;&amp;nbsp; . right ?&lt;IMG src="https://community.esri.com/legacyfs/online/emoticons/plain.png" /&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Mar 2015 19:27:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/google-earth-questions/exporting-feature-to-kmz-in-the-batch-mode/m-p/789370#M11</guid>
      <dc:creator>AhmedAbdelnasser1</dc:creator>
      <dc:date>2015-03-24T19:27:24Z</dc:date>
    </item>
    <item>
      <title>Re: Exporting Feature to KMZ  in the batch mode</title>
      <link>https://community.esri.com/t5/google-earth-questions/exporting-feature-to-kmz-in-the-batch-mode/m-p/789371#M12</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;See &lt;A href="http://resources.arcgis.com/en/help/main/10.1/index.html#//00210000000w000000"&gt;this help page&lt;/A&gt; for how to use the Check Values button to generate output file names, based on inputs:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="GUID-9803A4E7-CA14-4BE7-BA15-E1FA8C2B9BAD-web.png" class="image-1 jive-image" src="http://resources.arcgis.com/en/help/main/10.1/0021/GUID-9803A4E7-CA14-4BE7-BA15-E1FA8C2B9BAD-web.png" style="height: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Mar 2015 20:55:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/google-earth-questions/exporting-feature-to-kmz-in-the-batch-mode/m-p/789371#M12</guid>
      <dc:creator>DarrenWiens2</dc:creator>
      <dc:date>2015-03-24T20:55:51Z</dc:date>
    </item>
    <item>
      <title>Re: Exporting Feature to KMZ  in the batch mode</title>
      <link>https://community.esri.com/t5/google-earth-questions/exporting-feature-to-kmz-in-the-batch-mode/m-p/789372#M13</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thank you&amp;nbsp; Darren ,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;i see&amp;nbsp; the link you sent&amp;nbsp; but it doesn't&amp;nbsp; work&amp;nbsp; for my case here . &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the out buts are&amp;nbsp; based in the inputs but its not the exact same&amp;nbsp; , in my case when i &lt;SPAN style="color: #4d4d4d; font-family: Arial, Helvetica, sans-serif; font-size: 12.8000001907349px;"&gt; &lt;/SPAN&gt;&lt;SPAN class="uicontrol" style="font-size: 11.5200004577637px; font-weight: bold; color: #4d4d4d; font-family: Arial, Helvetica, sans-serif;"&gt;Check Values&lt;/SPAN&gt;&lt;SPAN style="color: #4d4d4d; font-family: Arial, Helvetica, sans-serif; font-size: 12.8000001907349px;"&gt; button &lt;/SPAN&gt;&lt;SPAN style="color: #4d4d4d; font-family: Arial, Helvetica, sans-serif; font-size: 12.8000001907349px;"&gt; to &lt;/SPAN&gt;validate the output ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the names truncated to a smaller names ! &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i need it to be the same as the input without the need to do it one by one .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i need the arc to automatically&amp;nbsp; &lt;SPAN style="color: #4d4d4d; font-family: Arial, Helvetica, sans-serif; font-size: 12.8000001907349px;"&gt;generates output but with the exact&lt;/SPAN&gt; names given in the input . &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;is that possible ?!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thank you .&lt;STRONG style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Mar 2015 07:36:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/google-earth-questions/exporting-feature-to-kmz-in-the-batch-mode/m-p/789372#M13</guid>
      <dc:creator>AhmedAbdelnasser1</dc:creator>
      <dc:date>2015-03-25T07:36:15Z</dc:date>
    </item>
    <item>
      <title>Re: Exporting Feature to KMZ  in the batch mode</title>
      <link>https://community.esri.com/t5/google-earth-questions/exporting-feature-to-kmz-in-the-batch-mode/m-p/789373#M14</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Probably not possible in batch processing. Possibly possible in model builder using an iterator. Definitely possible using python.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Mar 2015 14:51:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/google-earth-questions/exporting-feature-to-kmz-in-the-batch-mode/m-p/789373#M14</guid>
      <dc:creator>DarrenWiens2</dc:creator>
      <dc:date>2015-03-25T14:51:31Z</dc:date>
    </item>
    <item>
      <title>Re: Exporting Feature to KMZ  in the batch mode</title>
      <link>https://community.esri.com/t5/google-earth-questions/exporting-feature-to-kmz-in-the-batch-mode/m-p/789374#M15</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ahmed,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a python script that searches through a directory/geodatabase and creates KMZ files.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What it does is create an replica of the input workspace(folder/geodatabase) and produce .kmz files.&lt;/P&gt;&lt;P&gt;Not sure how familiar you are with python but I will copy my code here:&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;def export_to_kml(input_workspace, output_workspace):
&amp;nbsp;&amp;nbsp;&amp;nbsp; """
&amp;nbsp;&amp;nbsp;&amp;nbsp; This function extracts the feature classes from a geodatabase
&amp;nbsp;&amp;nbsp;&amp;nbsp; and converts them to .kmz files directory structure is maintained
&amp;nbsp;&amp;nbsp;&amp;nbsp; by folders being created based on the feature dataset.
&amp;nbsp;&amp;nbsp;&amp;nbsp; input_workspace ==&amp;gt; Path to a: Geodatabase, Folder which contains
&amp;nbsp;&amp;nbsp;&amp;nbsp; Feature Classes or Shapefiles.&amp;nbsp; (EX: 'H:\GIS DATA\Counties.gdb')
&amp;nbsp;&amp;nbsp;&amp;nbsp; output_workspace ==&amp;gt; Path to the location you want the .kmz files
&amp;nbsp;&amp;nbsp;&amp;nbsp; to go.&amp;nbsp; (EX: 'H:\GIS DATA')
&amp;nbsp;&amp;nbsp;&amp;nbsp; """
&amp;nbsp;&amp;nbsp;&amp;nbsp; # Searches through all sub-directories within the input workspace
&amp;nbsp;&amp;nbsp;&amp;nbsp; import os
&amp;nbsp;&amp;nbsp;&amp;nbsp; for dirpath, dirnames, filenames in arcpy.da.Walk(input_workspace):
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; for dirname in dirnames:
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; # vars
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; dir_path = os.path.join(dirpath, dirname)
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy.env.workspace = dir_path
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; fcs = arcpy.ListFeatureClasses()
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; print("Processing Feature Dataset/Folder:{0}\nFeature Classes/Shapefiles:{1}\n".format(dir_path, fcs))
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy.CreateFolder_management(output_workspace, dirname)
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; suboutput = os.path.join(output_workspace, dirname)
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; count = 0
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; for fc in fcs:
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; print("Converting: {0}".format(fc))
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; count = count + 1
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; layer = 'layer' + fc
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; out_kmz_file = os.path.join(suboutput, fc + '.kmz')
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; layer_output_scale = 0
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; is_composite = 'false'
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; boundary_box_extent = '#'
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; image_size = 1024
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; dpi = 300
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; zvalue = 'CLAMPED_TO_GROUND'
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy.MakeFeatureLayer_management(fc, layer) # Creates a layer to convert to the .kmz
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy.LayerToKML_conversion(layer, out_kmz_file, layer_output_scale, is_composite,
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; boundary_box_extent, image_size, dpi, zvalue)
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; print("{0} complete\n".format(count))&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The way that you can run this is by opening the python window and copy and pasting this script(attched a .txt to make it easy) into the command line.&lt;/P&gt;&lt;P&gt;from there you can type out:&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&amp;gt;&amp;gt;&amp;gt;export_to_kml('H:\input\geodatabase.gdb', 'C:\Users\XXXXX\Desktop\kmz')
 # first value is your input folder/gdb second value is your output location&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let me know if you need any help with it&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also this will create the kmz file with the orginal name of your shapefile/feature class&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 09:01:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/google-earth-questions/exporting-feature-to-kmz-in-the-batch-mode/m-p/789374#M15</guid>
      <dc:creator>MatthewRusso</dc:creator>
      <dc:date>2021-12-12T09:01:50Z</dc:date>
    </item>
  </channel>
</rss>

