<?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: Filter in Python toolbox does not do the job in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/filter-in-python-toolbox-does-not-do-the-job/m-p/176621#M13593</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have responded to this question on &lt;A href="http://gis.stackexchange.com/questions/116266/arcgis-getting-python-toolbox-to-function-properly"&gt;GIS Stack exchange&lt;/A&gt;.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 06 Oct 2014 13:47:22 GMT</pubDate>
    <dc:creator>DuncanHornby</dc:creator>
    <dc:date>2014-10-06T13:47:22Z</dc:date>
    <item>
      <title>Filter in Python toolbox does not do the job</title>
      <link>https://community.esri.com/t5/python-questions/filter-in-python-toolbox-does-not-do-the-job/m-p/176618#M13590</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;as the header says, I do have a problem in getting only the datasets I want. In the following my parameter definition is shown, where from I would expect to get only feature classes of type point to be shown.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="python" __jive_macro_name="code" class="jive_macro_code _jivemacro_uid_14123298462946525 jive_text_macro" jivemacro_uid="_14123298462946525" modifiedtitle="true"&gt;
&lt;P&gt;p_envWorkS = arcpy.Parameter(&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; displayName = 'Workspace',&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; name = 'in_ws',&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; datatype = 'DEWorkspace',&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; parameterType = 'Required',&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; direction = 'Input',&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; category = '1. Input Settings')&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;p_envPoints = arcpy.Parameter(&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; displayName = 'Input FeatureClass',&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; name = 'in_fc',&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; datatype = 'DEFeatureClass',&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; parameterType = 'Required',&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; direction = 'Input',&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; category = '1. Input Settings')&lt;/P&gt;
&lt;P&gt;p_envPoints.parameterDependencies = [p_envWorkS.name]&lt;/P&gt;
&lt;P&gt;p_envPoints.filter.list = ['POINT']&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;However, the following screenshot shows all kind of content. Even feature datasets are listed... hence the name 'roads' shows twice.&lt;/P&gt;&lt;P&gt;&lt;IMG alt="param.png" class="jive-image image-1" src="https://community.esri.com/legacyfs/online/17230_param.png" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;Does some of you know where I am going wrong or what I am missing the get the correct feature type shown?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Thomas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Oct 2014 09:58:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/filter-in-python-toolbox-does-not-do-the-job/m-p/176618#M13590</guid>
      <dc:creator>TomGeo</dc:creator>
      <dc:date>2014-10-03T09:58:17Z</dc:date>
    </item>
    <item>
      <title>Re: Filter in Python toolbox does not do the job</title>
      <link>https://community.esri.com/t5/python-questions/filter-in-python-toolbox-does-not-do-the-job/m-p/176619#M13591</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use GPFeatureLayer as your datatype instead.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Oct 2014 16:49:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/filter-in-python-toolbox-does-not-do-the-job/m-p/176619#M13591</guid>
      <dc:creator>JasonScheirer</dc:creator>
      <dc:date>2014-10-03T16:49:50Z</dc:date>
    </item>
    <item>
      <title>Re: Filter in Python toolbox does not do the job</title>
      <link>https://community.esri.com/t5/python-questions/filter-in-python-toolbox-does-not-do-the-job/m-p/176620#M13592</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jason,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;there is no difference in the resulting list if I replace DEFeatureClass in line 12 by GPFeatureLayer.&lt;/P&gt;&lt;P&gt;Reading the definition below it looks to me as if GPFeatureLayer is in my case actually a detour to the datasets requested.&lt;/P&gt;&lt;P&gt;What escapes me at this point as well is why GPFeatureLayer should work, respectively why does it work anyway.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;According to the &lt;A href="http://resources.arcgis.com/en/help/main/10.2/index.html#/Defining_parameter_data_types_in_a_Python_toolbox/001500000035000000/"&gt;Resource Center&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DEFeatureClass = A collection of spatial data with the same shape type: point, multipoint, polyline, and polygon.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="arcpyref"&gt;GPFeatureLayer = A reference to a feature class, including symbology and rendering properties.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="arcpyref"&gt;finally,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="arcpyref"&gt;a &lt;SPAN class="arcpyref"&gt;DEFeatureDataset = A collection of feature classes that share a common geographic area and the same spatial reference system.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="arcpyref"&gt;&lt;SPAN class="arcpyref"&gt;By my understanding, GPFeatureClass would be&amp;nbsp; the way to go, FeatureDatasets should not appear, and the filter list set should only populate the list of FeatureClasses with datasets of type point.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="arcpyref"&gt;&lt;SPAN class="arcpyref"&gt;Any other suggestions for the problem at hand?&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried to create a minimal example and wrapped it in the attached file. It contains a minimalistic FGDB and the toolbox.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="arcpyref"&gt;&lt;SPAN class="arcpyref"&gt;Cheers, Thomas&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Oct 2014 07:56:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/filter-in-python-toolbox-does-not-do-the-job/m-p/176620#M13592</guid>
      <dc:creator>TomGeo</dc:creator>
      <dc:date>2014-10-06T07:56:17Z</dc:date>
    </item>
    <item>
      <title>Re: Filter in Python toolbox does not do the job</title>
      <link>https://community.esri.com/t5/python-questions/filter-in-python-toolbox-does-not-do-the-job/m-p/176621#M13593</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have responded to this question on &lt;A href="http://gis.stackexchange.com/questions/116266/arcgis-getting-python-toolbox-to-function-properly"&gt;GIS Stack exchange&lt;/A&gt;.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Oct 2014 13:47:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/filter-in-python-toolbox-does-not-do-the-job/m-p/176621#M13593</guid>
      <dc:creator>DuncanHornby</dc:creator>
      <dc:date>2014-10-06T13:47:22Z</dc:date>
    </item>
  </channel>
</rss>

