<?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: Output parameter for Feature Class only in Geoprocessing Questions</title>
    <link>https://community.esri.com/t5/geoprocessing-questions/output-parameter-for-feature-class-only/m-p/143805#M4880</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Yep, but I believe he's trying to do the opposite. Disallow the user from specifying a shapefile as the output, and allow geodatabase feature classes only.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It might be best to fix the underlying cause for the script failing however, as it would be good practice to have your script output to any feature class, not just GDB feature classes.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 10 Nov 2010 20:45:03 GMT</pubDate>
    <dc:creator>LoganPugh</dc:creator>
    <dc:date>2010-11-10T20:45:03Z</dc:date>
    <item>
      <title>Output parameter for Feature Class only</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/output-parameter-for-feature-class-only/m-p/143802#M4877</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;While adding a script as a tool, I'm specifying parameters for a Python script.&amp;nbsp; One of my outputs is a feature class; &lt;/SPAN&gt;&lt;SPAN style="text-decoration:underline;"&gt;it cannot be a shapefile&lt;/SPAN&gt;&lt;SPAN&gt; since the field names are cropped and the script will fail.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Specifying the data type as 'Feature Class' still allows the user specify a shapefile as output, how can I ensure that the only possible output is a geodatabase feature class?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks-&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Paul&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Nov 2010 13:23:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/output-parameter-for-feature-class-only/m-p/143802#M4877</guid>
      <dc:creator>PaulSchneider</dc:creator>
      <dc:date>2010-11-10T13:23:24Z</dc:date>
    </item>
    <item>
      <title>Re: Output parameter for Feature Class only</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/output-parameter-for-feature-class-only/m-p/143803#M4878</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You could edit the ToolValidator code to look for ".shp" at the end of the value of the output feature class parameter and if found, set an error message. Otherwise I do not think there is a filter that allows only geodatabase feature classes.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Nov 2010 17:01:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/output-parameter-for-feature-class-only/m-p/143803#M4878</guid>
      <dc:creator>LoganPugh</dc:creator>
      <dc:date>2010-11-10T17:01:06Z</dc:date>
    </item>
    <item>
      <title>Re: Output parameter for Feature Class only</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/output-parameter-for-feature-class-only/m-p/143804#M4879</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;While adding a script as a tool, I'm specifying parameters for a Python script.&amp;nbsp; One of my outputs is a feature class; &lt;SPAN style="text-decoration:underline;"&gt;it cannot be a shapefile&lt;/SPAN&gt; since the field names are cropped and the script will fail.&lt;BR /&gt;&lt;BR /&gt;Specifying the data type as 'Feature Class' still allows the user specify a shapefile as output, how can I ensure that the only possible output is a geodatabase feature class?&lt;BR /&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;In the Parameters tab of the script tool properties, you can specify Shapefile as the output data type. This should work.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Nov 2010 20:28:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/output-parameter-for-feature-class-only/m-p/143804#M4879</guid>
      <dc:creator>curtvprice</dc:creator>
      <dc:date>2010-11-10T20:28:58Z</dc:date>
    </item>
    <item>
      <title>Re: Output parameter for Feature Class only</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/output-parameter-for-feature-class-only/m-p/143805#M4880</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Yep, but I believe he's trying to do the opposite. Disallow the user from specifying a shapefile as the output, and allow geodatabase feature classes only.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It might be best to fix the underlying cause for the script failing however, as it would be good practice to have your script output to any feature class, not just GDB feature classes.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Nov 2010 20:45:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/output-parameter-for-feature-class-only/m-p/143805#M4880</guid>
      <dc:creator>LoganPugh</dc:creator>
      <dc:date>2010-11-10T20:45:03Z</dc:date>
    </item>
  </channel>
</rss>

