<?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: Layers from geobatabase missing using arcpy.mapping.ExportToPNG in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/layers-from-geobatabase-missing-using-arcpy/m-p/694702#M53860</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I found the solution myself.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The problem is that Personnal geodatabases are no longer supported by 64-bits geoprocessing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To workaround, I had to change my system PATH variable from &lt;/P&gt;&lt;P&gt;C:\Python27\ArcGISx6410.2 to C:\Python27\ArcGIS10.2&lt;/P&gt;&lt;P&gt;(for using along with batch script) as well as my file association (for double-clicking on the .py file).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 06 Aug 2014 20:01:49 GMT</pubDate>
    <dc:creator>SébastienMartin</dc:creator>
    <dc:date>2014-08-06T20:01:49Z</dc:date>
    <item>
      <title>Layers from geobatabase missing using arcpy.mapping.ExportToPNG</title>
      <link>https://community.esri.com/t5/python-questions/layers-from-geobatabase-missing-using-arcpy/m-p/694701#M53859</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have several MXD projects that I export with arcpy.mapping.ExportToPNG. In these MXDs, there are some layers wich are shapefiles, and other layers that are stored in a personal geodatabase.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When I use python for exporting, only the layers that are shapefiles appear on the PNG file.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When I execute my script directly in ArcCatalalog, I don't have this problem. It's only when I execute the script by double-clicking on the .py file.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any idea of what's wrong?&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;import arcpy, os&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;folderPath = r"D:\Projet\MRC\Incendie\2014-03_Intervention\Temps d'invervention"&lt;/P&gt;&lt;P&gt;for filename in os.listdir(folderPath):&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; fullpath = os.path.join(folderPath, filename)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; if os.path.isfile(fullpath):&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; basename, extension = os.path.splitext(fullpath)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if extension.lower() == ".mxd":&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; mxd = arcpy.mapping.MapDocument(fullpath)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy.mapping.ExportToPNG(mxd, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; basename + '.png', &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; data_frame = "PAGE_LAYOUT", &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; df_export_width = 6800,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; df_export_height = 4400,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; resolution = 400,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; world_file = False,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; color_mode = "24-BIT_TRUE_COLOR",&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; background_color = "255, 255, 255",&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; interlaced = False)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;del mxd&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Aug 2014 14:33:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/layers-from-geobatabase-missing-using-arcpy/m-p/694701#M53859</guid>
      <dc:creator>SébastienMartin</dc:creator>
      <dc:date>2014-08-06T14:33:25Z</dc:date>
    </item>
    <item>
      <title>Re: Layers from geobatabase missing using arcpy.mapping.ExportToPNG</title>
      <link>https://community.esri.com/t5/python-questions/layers-from-geobatabase-missing-using-arcpy/m-p/694702#M53860</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I found the solution myself.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The problem is that Personnal geodatabases are no longer supported by 64-bits geoprocessing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To workaround, I had to change my system PATH variable from &lt;/P&gt;&lt;P&gt;C:\Python27\ArcGISx6410.2 to C:\Python27\ArcGIS10.2&lt;/P&gt;&lt;P&gt;(for using along with batch script) as well as my file association (for double-clicking on the .py file).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Aug 2014 20:01:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/layers-from-geobatabase-missing-using-arcpy/m-p/694702#M53860</guid>
      <dc:creator>SébastienMartin</dc:creator>
      <dc:date>2014-08-06T20:01:49Z</dc:date>
    </item>
  </channel>
</rss>

