<?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.list = [&amp;quot;Raster&amp;quot;] is Wrong? in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/filter-list-quot-raster-quot-is-wrong/m-p/374646#M29608</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Well, your link goes to your training record from which nothing can be accessed.&lt;/P&gt;&lt;P&gt;Perhaps if you share the actual error message it might help and confirm that the space in line 8 after param1 and .filter is just a copying issue.&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 10 May 2017 23:41:33 GMT</pubDate>
    <dc:creator>DanPatterson_Retired</dc:creator>
    <dc:date>2017-05-10T23:41:33Z</dc:date>
    <item>
      <title>filter.list = ["Raster"] is Wrong?</title>
      <link>https://community.esri.com/t5/python-questions/filter-list-quot-raster-quot-is-wrong/m-p/374643#M29605</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;I am trying to build a Python Toolbox, like in the following code snippet.&amp;nbsp;However I got error because of the last line (Filter) . I have to filter the files because without the filter the output window shows all kind of data including Feature class.&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="comment token"&gt;# First parameter&amp;nbsp; &lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; param1 &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; arcpy&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;Parameter&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp; displayName&lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"Output Raster Dataset"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp; name&lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"in_rasterdataset"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp; datatype&lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"Raster Dataset"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp; parameterType&lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"Required"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp; direction&lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"Output "&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp; param1 &lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;filter&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;list &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"Raster"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;&amp;nbsp; ‍‍‍‍‍‍‍‍&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 17:20:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/filter-list-quot-raster-quot-is-wrong/m-p/374643#M29605</guid>
      <dc:creator>MohammadrezaNikfal1</dc:creator>
      <dc:date>2021-12-11T17:20:30Z</dc:date>
    </item>
    <item>
      <title>Re: filter.list = ["Raster"] is Wrong?</title>
      <link>https://community.esri.com/t5/python-questions/filter-list-quot-raster-quot-is-wrong/m-p/374644#M29606</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Perhaps you need to use "Raster Dataset" instead of "Raster"?&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Jim&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 May 2017 18:31:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/filter-list-quot-raster-quot-is-wrong/m-p/374644#M29606</guid>
      <dc:creator>JimCousins</dc:creator>
      <dc:date>2017-05-10T18:31:20Z</dc:date>
    </item>
    <item>
      <title>Re: filter.list = ["Raster"] is Wrong?</title>
      <link>https://community.esri.com/t5/python-questions/filter-list-quot-raster-quot-is-wrong/m-p/374645#M29607</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have already tried "Raster", "RASTER",&amp;nbsp;&lt;SPAN style="background-color: #ffffff;"&gt;"Raster Dataset" etc.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;It does not work.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;Thanks&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 May 2017 18:51:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/filter-list-quot-raster-quot-is-wrong/m-p/374645#M29607</guid>
      <dc:creator>MohammadrezaNikfal1</dc:creator>
      <dc:date>2017-05-10T18:51:59Z</dc:date>
    </item>
    <item>
      <title>Re: filter.list = ["Raster"] is Wrong?</title>
      <link>https://community.esri.com/t5/python-questions/filter-list-quot-raster-quot-is-wrong/m-p/374646#M29608</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Well, your link goes to your training record from which nothing can be accessed.&lt;/P&gt;&lt;P&gt;Perhaps if you share the actual error message it might help and confirm that the space in line 8 after param1 and .filter is just a copying issue.&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 May 2017 23:41:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/filter-list-quot-raster-quot-is-wrong/m-p/374646#M29608</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2017-05-10T23:41:33Z</dc:date>
    </item>
    <item>
      <title>Re: filter.list = ["Raster"] is Wrong?</title>
      <link>https://community.esri.com/t5/python-questions/filter-list-quot-raster-quot-is-wrong/m-p/374647#M29609</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I reformatted your code. It does look like you have a syntax error, but maybe it is just a copy error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you want a python toolbox template, I suggest you try New &amp;gt; Python Toolbox or use the one in the help.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="http://desktop.arcgis.com/en/arcmap/latest/analyze/creating-tools/a-template-for-python-toolboxes.htm" title="http://desktop.arcgis.com/en/arcmap/latest/analyze/creating-tools/a-template-for-python-toolboxes.htm"&gt;The Python toolbox template—Help | ArcGIS Desktop&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="http://desktop.arcgis.com/en/arcmap/latest/analyze/creating-tools/defining-parameters-in-a-python-toolbox.htm" title="http://desktop.arcgis.com/en/arcmap/latest/analyze/creating-tools/defining-parameters-in-a-python-toolbox.htm"&gt;Defining parameters in a Python toolbox—Help | ArcGIS Desktop&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="http://desktop.arcgis.com/en/arcmap/latest/analyze/creating-tools/defining-parameter-data-types-in-a-python-toolbox.htm" title="http://desktop.arcgis.com/en/arcmap/latest/analyze/creating-tools/defining-parameter-data-types-in-a-python-toolbox.htm"&gt;Defining parameter data types in a Python toolbox—Help | ArcGIS Desktop&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The help has the keywords you want, for example, for datatype&amp;nbsp;you probably want "GPRasterLayer" or "DERasterDataset", not "Raster". If there's only one, you should only specify the string, not a list.&lt;/P&gt;&lt;P&gt;If you get the datatype keyword correct, I don't think you need to define param.filter.list.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 May 2017 02:29:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/filter-list-quot-raster-quot-is-wrong/m-p/374647#M29609</guid>
      <dc:creator>curtvprice</dc:creator>
      <dc:date>2017-05-11T02:29:13Z</dc:date>
    </item>
  </channel>
</rss>

