<?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 ERROR Only polygon shapefiles allowed in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/error-only-polygon-shapefiles-allowed/m-p/634904#M49454</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I use a python script tool in ArcMap which has two input parameters. The tool only allows to use shapefiles as input. My problem is, that the data I use is organized in feature classes within a geodatabase. Is there a possibility to change the code so that the tool works either with shapefiles and also with (polygon) feature classes? I thought, maybe if the tool recognizes that the input data is a feature class it can automatically convert it like with FeatureClassToShapefile_conversion.&lt;/P&gt;&lt;P&gt;Thanks in advance. &lt;/P&gt;&lt;P&gt;python arcpy‌ arcmap 10.6‌ tool parameters‌ &lt;A href="https://community.esri.com/t5/tag/parameter invalid/tg-p"&gt;#parameter invalid&lt;/A&gt;‌&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 07 Apr 2018 09:04:12 GMT</pubDate>
    <dc:creator>Simeon_FranzWetzel</dc:creator>
    <dc:date>2018-04-07T09:04:12Z</dc:date>
    <item>
      <title>ERROR Only polygon shapefiles allowed</title>
      <link>https://community.esri.com/t5/python-questions/error-only-polygon-shapefiles-allowed/m-p/634904#M49454</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I use a python script tool in ArcMap which has two input parameters. The tool only allows to use shapefiles as input. My problem is, that the data I use is organized in feature classes within a geodatabase. Is there a possibility to change the code so that the tool works either with shapefiles and also with (polygon) feature classes? I thought, maybe if the tool recognizes that the input data is a feature class it can automatically convert it like with FeatureClassToShapefile_conversion.&lt;/P&gt;&lt;P&gt;Thanks in advance. &lt;/P&gt;&lt;P&gt;python arcpy‌ arcmap 10.6‌ tool parameters‌ &lt;A href="https://community.esri.com/t5/tag/parameter invalid/tg-p"&gt;#parameter invalid&lt;/A&gt;‌&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 07 Apr 2018 09:04:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/error-only-polygon-shapefiles-allowed/m-p/634904#M49454</guid>
      <dc:creator>Simeon_FranzWetzel</dc:creator>
      <dc:date>2018-04-07T09:04:12Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR Only polygon shapefiles allowed</title>
      <link>https://community.esri.com/t5/python-questions/error-only-polygon-shapefiles-allowed/m-p/634905#M49455</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Although there are some, there are very few Esri geoprocessing tools that only accept shape files and not feature classes.&amp;nbsp; What geoprocessing tools is the Python script tool using?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 07 Apr 2018 16:03:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/error-only-polygon-shapefiles-allowed/m-p/634905#M49455</guid>
      <dc:creator>JoshuaBixby</dc:creator>
      <dc:date>2018-04-07T16:03:05Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR Only polygon shapefiles allowed</title>
      <link>https://community.esri.com/t5/python-questions/error-only-polygon-shapefiles-allowed/m-p/634906#M49456</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;or... Copy Features and save it as a shapefile&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 07 Apr 2018 16:49:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/error-only-polygon-shapefiles-allowed/m-p/634906#M49456</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2018-04-07T16:49:15Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR Only polygon shapefiles allowed</title>
      <link>https://community.esri.com/t5/python-questions/error-only-polygon-shapefiles-allowed/m-p/634907#M49457</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;that works, but it is not very convenient for a big amount of data &lt;IMG src="https://community.esri.com/legacyfs/online/emoticons/sad.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Apr 2018 15:26:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/error-only-polygon-shapefiles-allowed/m-p/634907#M49457</guid>
      <dc:creator>Simeon_FranzWetzel</dc:creator>
      <dc:date>2018-04-09T15:26:28Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR Only polygon shapefiles allowed</title>
      <link>https://community.esri.com/t5/python-questions/error-only-polygon-shapefiles-allowed/m-p/634908#M49458</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;perhaps, but that only leaves you the option of writing your own implementation &lt;IMG src="https://community.esri.com/legacyfs/online/emoticons/wink.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Apr 2018 16:29:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/error-only-polygon-shapefiles-allowed/m-p/634908#M49458</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2018-04-09T16:29:08Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR Only polygon shapefiles allowed</title>
      <link>https://community.esri.com/t5/python-questions/error-only-polygon-shapefiles-allowed/m-p/634909#M49459</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Im not sure because there are a great deal of geoprocessing tools implemented into my tool. May I ask which tools you know that do not take shapefiles?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Apr 2018 18:29:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/error-only-polygon-shapefiles-allowed/m-p/634909#M49459</guid>
      <dc:creator>Simeon_FranzWetzel</dc:creator>
      <dc:date>2018-04-09T18:29:01Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR Only polygon shapefiles allowed</title>
      <link>https://community.esri.com/t5/python-questions/error-only-polygon-shapefiles-allowed/m-p/634910#M49460</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you share more information about the script tool?&amp;nbsp;Or even the tool itself?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Apr 2018 18:34:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/error-only-polygon-shapefiles-allowed/m-p/634910#M49460</guid>
      <dc:creator>RandyBurton</dc:creator>
      <dc:date>2018-04-09T18:34:27Z</dc:date>
    </item>
  </channel>
</rss>

