<?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 ModelBuilder Iterate Files file extension matches too many files in Geoprocessing Questions</title>
    <link>https://community.esri.com/t5/geoprocessing-questions/modelbuilder-iterate-files-file-extension-matches/m-p/294673#M10243</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm writing a model to find all the .las files in a folder and create a Las Dataset from those .las files.&amp;nbsp; I'm using the IterateFiles iterator and set the extension to "las", the period before the extension is not needed.&amp;nbsp; The problem is that there's already a .lasd file in the folder and the IterateFiles iterator matches this.&amp;nbsp; It matches "lasd" in addition to "las".&amp;nbsp; So I end up trying to create a Las Dataset from some las files and a .lasd file, which fails of course.&amp;nbsp; Is there a way to filter out the .lasd file from the file collection?&amp;nbsp; I tried using wildcards in the IterateFiles, like *.las or *.las$ but that didn't work either.&amp;nbsp; I'm using arc gis 10.2.1.&amp;nbsp; Here's a screen shot of the model.&lt;/P&gt;&lt;P&gt;&lt;IMG alt="findLasFiles.PNG" class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/111228_findLasFiles.PNG" style="width: 620px; height: 357px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 18 Jun 2015 20:45:30 GMT</pubDate>
    <dc:creator>TedRakel</dc:creator>
    <dc:date>2015-06-18T20:45:30Z</dc:date>
    <item>
      <title>ModelBuilder Iterate Files file extension matches too many files</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/modelbuilder-iterate-files-file-extension-matches/m-p/294673#M10243</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm writing a model to find all the .las files in a folder and create a Las Dataset from those .las files.&amp;nbsp; I'm using the IterateFiles iterator and set the extension to "las", the period before the extension is not needed.&amp;nbsp; The problem is that there's already a .lasd file in the folder and the IterateFiles iterator matches this.&amp;nbsp; It matches "lasd" in addition to "las".&amp;nbsp; So I end up trying to create a Las Dataset from some las files and a .lasd file, which fails of course.&amp;nbsp; Is there a way to filter out the .lasd file from the file collection?&amp;nbsp; I tried using wildcards in the IterateFiles, like *.las or *.las$ but that didn't work either.&amp;nbsp; I'm using arc gis 10.2.1.&amp;nbsp; Here's a screen shot of the model.&lt;/P&gt;&lt;P&gt;&lt;IMG alt="findLasFiles.PNG" class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/111228_findLasFiles.PNG" style="width: 620px; height: 357px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Jun 2015 20:45:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/modelbuilder-iterate-files-file-extension-matches/m-p/294673#M10243</guid>
      <dc:creator>TedRakel</dc:creator>
      <dc:date>2015-06-18T20:45:30Z</dc:date>
    </item>
    <item>
      <title>Re: ModelBuilder Iterate Files file extension matches too many files</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/modelbuilder-iterate-files-file-extension-matches/m-p/294674#M10244</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;could you just move the Las Dataset to another folder other than the one with all the .las files?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In model builder there I'm not sure there is a&amp;nbsp; way to fix this, but with python you could check if the file ended with the letter d, then remove it from the list of files for input. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Jun 2015 20:54:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/modelbuilder-iterate-files-file-extension-matches/m-p/294674#M10244</guid>
      <dc:creator>IanMurray</dc:creator>
      <dc:date>2015-06-18T20:54:34Z</dc:date>
    </item>
  </channel>
</rss>

