<?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: No Maps or Layers returned by arcpy.da.Walk() in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/no-maps-or-layers-returned-by-arcpy-da-walk/m-p/304909#M23677</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;If walk doesn't go into mxd's, then wouldn't they particularly useless?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Would be nice if they removed the "auto filter" that blocks the .lyr, .mxd, etc files.&amp;nbsp; Should be able to report it as well as other .extention files.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I posted an enhancement on the ideas page, you may want to promote it.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://c.na9.visual.force.com/apex/ideaView?id=087E00000004eZ1&amp;amp;returnUrl=%2Fapex%2FideaList%3Fc%3D09a300000004xET%26sort%3Drecent"&gt;https://c.na9.visual.force.com/apex/ideaView?id=087E00000004eZ1&amp;amp;returnUrl=%2Fapex%2FideaList%3Fc%3D09a300000004xET%26sort%3Drecent&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;R_&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 29 May 2013 19:34:03 GMT</pubDate>
    <dc:creator>RhettZufelt</dc:creator>
    <dc:date>2013-05-29T19:34:03Z</dc:date>
    <item>
      <title>No Maps or Layers returned by arcpy.da.Walk()</title>
      <link>https://community.esri.com/t5/python-questions/no-maps-or-layers-returned-by-arcpy-da-walk/m-p/304904#M23672</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I have been trying to implement arcpy.da.Walk() as a replacement for the os.walk when looking for spatial data.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;My code is very simple:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;with open(output, 'wb') as csvfile:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; csvwriter = csv.writer(csvfile)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; for dirpath, dirnames, filenames in arcpy.da.Walk(workspace,followlinks = True):&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; for filename in filenames:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; desc = arcpy.Describe(os.path.join(dirpath, filename))&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; csvwriter.writerow([desc.catalogPath, desc.name, desc.dataType])&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The output contains most items (e.g. tables, geodatabases, feature classes) but does not contain .mxd, .lyr and .mpk files.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;When I checked the documentation, this function should pick up these files. I have tested it on several paths and still cannot get these items in my output.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 May 2013 09:11:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/no-maps-or-layers-returned-by-arcpy-da-walk/m-p/304904#M23672</guid>
      <dc:creator>EssamElhalhuli</dc:creator>
      <dc:date>2013-05-29T09:11:57Z</dc:date>
    </item>
    <item>
      <title>Re: No Maps or Layers returned by arcpy.da.Walk()</title>
      <link>https://community.esri.com/t5/python-questions/no-maps-or-layers-returned-by-arcpy-da-walk/m-p/304905#M23673</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Curious as to what documentation you looked at.&amp;nbsp; I looked here &lt;/SPAN&gt;&lt;A href="http://resources.arcgis.com/en/help/main/10.1/index.html#//018w00000023000000"&gt;http://resources.arcgis.com/en/help/main/10.1/index.html#//018w00000023000000&lt;/A&gt;&lt;SPAN&gt; and don't even see the mention of mxd, lyr, or mpk anywhere on the page.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Looks to me like it is reporting exactly what it says it will.&amp;nbsp; Might have to grab the "missing" files with the old os.walk option.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;R_&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 May 2013 15:14:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/no-maps-or-layers-returned-by-arcpy-da-walk/m-p/304905#M23673</guid>
      <dc:creator>RhettZufelt</dc:creator>
      <dc:date>2013-05-29T15:14:18Z</dc:date>
    </item>
    <item>
      <title>Re: No Maps or Layers returned by arcpy.da.Walk()</title>
      <link>https://community.esri.com/t5/python-questions/no-maps-or-layers-returned-by-arcpy-da-walk/m-p/304906#M23674</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;In the list of data types on that page you have the below items:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;�?�Any �??All data types are returned. Equivalent to using None or skipping the argument.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;�?�CadDrawing �??�?�CadastralFabric �??�?�Container �??�?�FeatureClass �??�?�FeatureDataset �??�?�Geo �??�?�GeometricNetwork �??�?�LasDataset �??�?�&lt;/SPAN&gt;&lt;SPAN style="text-decoration:underline;"&gt;Layer&lt;/SPAN&gt;&lt;SPAN&gt; �??�?�Locator �??�?�&lt;/SPAN&gt;&lt;SPAN style="text-decoration:underline;"&gt;Map&lt;/SPAN&gt;&lt;SPAN&gt; �??�?�MosaicDataset �??�?�PlanarGraph �??�?�RasterBand �??�?�RasterCatalog �??�?�RasterDataset �??�?�RelationshipClass �??�?�RepresentationClass �??�?�SchematicDataset �??�?�Style �??�?�Table �??�?�Terrain �??�?�Text �??�?�Tin �??�?�Tool �??�?�Toolbox �??�?�Topology �??&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 May 2013 16:05:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/no-maps-or-layers-returned-by-arcpy-da-walk/m-p/304906#M23674</guid>
      <dc:creator>EssamElhalhuli</dc:creator>
      <dc:date>2013-05-29T16:05:23Z</dc:date>
    </item>
    <item>
      <title>Re: No Maps or Layers returned by arcpy.da.Walk()</title>
      <link>https://community.esri.com/t5/python-questions/no-maps-or-layers-returned-by-arcpy-da-walk/m-p/304907#M23675</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Guess I'm used to seeing Layer as a reference to the layer object (can be pointed to inside a layer file (just a pointer)), so not sure if that is supposed to list .lyr files, or just layers themselves (as when running in ArcMap).&amp;nbsp; As far as Map, I don't see any definition/explanation about what that is supposed to be.&amp;nbsp; Everywhere else in the docs, the refer to a map document/mxd.&amp;nbsp; Seems like they need to include some definitions in the documentation to clarify.&amp;nbsp; they give valid raster types and valid feature types, why not valid all types??&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So if they are actually referring to *.lyr and *.mxd files as a datatype rather than a pointer file, then you are correct, they do not report these.&amp;nbsp; I guess in any case you are correct, as these types of files appear to be ignored by da.walk.&amp;nbsp; In any case, it seems like an oversight.&amp;nbsp; If it reports .dwg, .shp, .txt, .jpg, .etc., one would think it would easily report .lyr and .mxd as well.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;R_&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 May 2013 17:13:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/no-maps-or-layers-returned-by-arcpy-da-walk/m-p/304907#M23675</guid>
      <dc:creator>RhettZufelt</dc:creator>
      <dc:date>2013-05-29T17:13:56Z</dc:date>
    </item>
    <item>
      <title>Re: No Maps or Layers returned by arcpy.da.Walk()</title>
      <link>https://community.esri.com/t5/python-questions/no-maps-or-layers-returned-by-arcpy-da-walk/m-p/304908#M23676</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Map and Layer refer to Map and Layer objects, not files. Since Walk does not go into MXD files at 10.1, these filters aren't particularly useful.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 May 2013 19:12:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/no-maps-or-layers-returned-by-arcpy-da-walk/m-p/304908#M23676</guid>
      <dc:creator>JasonScheirer</dc:creator>
      <dc:date>2013-05-29T19:12:24Z</dc:date>
    </item>
    <item>
      <title>Re: No Maps or Layers returned by arcpy.da.Walk()</title>
      <link>https://community.esri.com/t5/python-questions/no-maps-or-layers-returned-by-arcpy-da-walk/m-p/304909#M23677</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;If walk doesn't go into mxd's, then wouldn't they particularly useless?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Would be nice if they removed the "auto filter" that blocks the .lyr, .mxd, etc files.&amp;nbsp; Should be able to report it as well as other .extention files.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I posted an enhancement on the ideas page, you may want to promote it.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://c.na9.visual.force.com/apex/ideaView?id=087E00000004eZ1&amp;amp;returnUrl=%2Fapex%2FideaList%3Fc%3D09a300000004xET%26sort%3Drecent"&gt;https://c.na9.visual.force.com/apex/ideaView?id=087E00000004eZ1&amp;amp;returnUrl=%2Fapex%2FideaList%3Fc%3D09a300000004xET%26sort%3Drecent&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;R_&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 May 2013 19:34:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/no-maps-or-layers-returned-by-arcpy-da-walk/m-p/304909#M23677</guid>
      <dc:creator>RhettZufelt</dc:creator>
      <dc:date>2013-05-29T19:34:03Z</dc:date>
    </item>
  </channel>
</rss>

