<?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 Identify Feature Classes within a GDB by shape type? in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/identify-feature-classes-within-a-gdb-by-shape/m-p/1145280#M63801</link>
    <description>&lt;P&gt;Hi everyone,&lt;/P&gt;&lt;P&gt;Is there a script to identify on polylines or whatever shape type I'm looking for within a gdb?&amp;nbsp;&lt;/P&gt;&lt;P&gt;For example, I want a script that finds all the polylines in a gdb.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
    <pubDate>Thu, 17 Feb 2022 18:28:15 GMT</pubDate>
    <dc:creator>SteveKim1</dc:creator>
    <dc:date>2022-02-17T18:28:15Z</dc:date>
    <item>
      <title>Identify Feature Classes within a GDB by shape type?</title>
      <link>https://community.esri.com/t5/python-questions/identify-feature-classes-within-a-gdb-by-shape/m-p/1145280#M63801</link>
      <description>&lt;P&gt;Hi everyone,&lt;/P&gt;&lt;P&gt;Is there a script to identify on polylines or whatever shape type I'm looking for within a gdb?&amp;nbsp;&lt;/P&gt;&lt;P&gt;For example, I want a script that finds all the polylines in a gdb.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Thu, 17 Feb 2022 18:28:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/identify-feature-classes-within-a-gdb-by-shape/m-p/1145280#M63801</guid>
      <dc:creator>SteveKim1</dc:creator>
      <dc:date>2022-02-17T18:28:15Z</dc:date>
    </item>
    <item>
      <title>Re: Identify Feature Classes within a GDB by shape type?</title>
      <link>https://community.esri.com/t5/python-questions/identify-feature-classes-within-a-gdb-by-shape/m-p/1145353#M63807</link>
      <description>&lt;P&gt;2 options:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;arcpy.ListFeatureClasses built in search function&lt;/STRONG&gt;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;arcpy.env.workspace = gdb # your path 
polyline_fcs = arcpy.ListFeatureClasses(feature_type="Polyline")&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Use arcpy.Describe instead&lt;/STRONG&gt;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;arcpy.env.workspace = gdb # your path 
polyline_fcs = [fc for fc in arcpy.ListFeatureClasses() if arcpy.Describe(fc).shapeType == "Polyline"]&lt;/LI-CODE&gt;</description>
      <pubDate>Thu, 17 Feb 2022 20:54:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/identify-feature-classes-within-a-gdb-by-shape/m-p/1145353#M63807</guid>
      <dc:creator>HuubZwart</dc:creator>
      <dc:date>2022-02-17T20:54:22Z</dc:date>
    </item>
  </channel>
</rss>

