<?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: Python code to check geometry type in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/python-code-to-check-geometry-type/m-p/156351#M12051</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Worked like a charm thanks!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 15 Sep 2011 23:55:07 GMT</pubDate>
    <dc:creator>philiptivel</dc:creator>
    <dc:date>2011-09-15T23:55:07Z</dc:date>
    <item>
      <title>Python code to check geometry type</title>
      <link>https://community.esri.com/t5/python-questions/python-code-to-check-geometry-type/m-p/156349#M12049</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I want to create an if else statement involving geometry types.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If geometry is a point run one process&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;elsif geometry is a line run different process.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Is there a way to do this using python?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Sep 2011 02:50:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/python-code-to-check-geometry-type/m-p/156349#M12049</guid>
      <dc:creator>philiptivel</dc:creator>
      <dc:date>2011-09-15T02:50:26Z</dc:date>
    </item>
    <item>
      <title>Re: Python code to check geometry type</title>
      <link>https://community.esri.com/t5/python-questions/python-code-to-check-geometry-type/m-p/156350#M12050</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Layer below can be full path and shapefile or a feature layer etc.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;desc = arcpy.Describe('C:/shapefile.shp')&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;geometryType = desc.shapeType&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;if geometryType == 'polygon':&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; print 'Polygon'&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;elif geometryType == 'point'&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;...&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Sep 2011 03:00:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/python-code-to-check-geometry-type/m-p/156350#M12050</guid>
      <dc:creator>HenryColgate</dc:creator>
      <dc:date>2011-09-15T03:00:08Z</dc:date>
    </item>
    <item>
      <title>Re: Python code to check geometry type</title>
      <link>https://community.esri.com/t5/python-questions/python-code-to-check-geometry-type/m-p/156351#M12051</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Worked like a charm thanks!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Sep 2011 23:55:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/python-code-to-check-geometry-type/m-p/156351#M12051</guid>
      <dc:creator>philiptivel</dc:creator>
      <dc:date>2011-09-15T23:55:07Z</dc:date>
    </item>
    <item>
      <title>Re: Python code to check geometry type</title>
      <link>https://community.esri.com/t5/python-questions/python-code-to-check-geometry-type/m-p/156352#M12052</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Worked for me , but only after changing 'polygon' to 'Polygon' and 'point' to 'Point' (uppercase P) for some reason...&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Apr 2012 13:56:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/python-code-to-check-geometry-type/m-p/156352#M12052</guid>
      <dc:creator>StevenBowley1</dc:creator>
      <dc:date>2012-04-04T13:56:09Z</dc:date>
    </item>
  </channel>
</rss>

