<?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: Use a Definition Query in a Model in ArcGIS Pro Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-questions/use-a-definition-query-in-a-model/m-p/1109444#M46955</link>
    <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/336448"&gt;@BarryFosberg&lt;/a&gt;&amp;nbsp;You will first set up your definition query in the Map layer.&amp;nbsp; Then the tools that are ran within ModelBuilder will honor them.&amp;nbsp; Any tool that operates against the map layer will check selected and definition queries.&amp;nbsp; Note if you run Copy Features against the data on disk, it will not check definition queryies or selections.&lt;/P&gt;</description>
    <pubDate>Wed, 20 Oct 2021 20:48:47 GMT</pubDate>
    <dc:creator>JonathanNeal</dc:creator>
    <dc:date>2021-10-20T20:48:47Z</dc:date>
    <item>
      <title>Use a Definition Query in a Model</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/use-a-definition-query-in-a-model/m-p/1109308#M46941</link>
      <description>&lt;P&gt;I am using ArcPro 2.8.&lt;/P&gt;&lt;P&gt;1. In a model, can&amp;nbsp; run a definition query?&lt;/P&gt;&lt;P&gt;2. If yes, Is there any advantage in a model to using a definition query over just adding a Select tool?&lt;/P&gt;&lt;P&gt;The examples I have tend to be a matter of one or more select by attribute statements which would be the same in either a definition query or a Select By tool.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 20 Oct 2021 15:55:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/use-a-definition-query-in-a-model/m-p/1109308#M46941</guid>
      <dc:creator>BarryFosberg</dc:creator>
      <dc:date>2021-10-20T15:55:50Z</dc:date>
    </item>
    <item>
      <title>Re: Use a Definition Query in a Model</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/use-a-definition-query-in-a-model/m-p/1109334#M46943</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/336448"&gt;@BarryFosberg&lt;/a&gt;&amp;nbsp;How all tools think of definition queries and selections are the same.&amp;nbsp; There is no advantage to using one over the other.&amp;nbsp; Some of the ModelBuilder iterators use definition queries to perform their functions.&amp;nbsp; But, for triva night, there is a Gotcha you can find yourself in that you may consider.&lt;BR /&gt;&lt;BR /&gt;Definition Query + Selection != Selection + Definition Query&lt;BR /&gt;&lt;BR /&gt;That is, if you do a selection first, that has elements that your definition query would have excluded, the tool will still act on those elements.&amp;nbsp; The result the tool will act on will be all elements that qualify in the selection and all elements that qualify in the definition query.&lt;/P&gt;&lt;P&gt;But, if you did the Definition query first, and the selection second, it will be the result will be the intersection of both filters.&lt;/P&gt;</description>
      <pubDate>Wed, 20 Oct 2021 16:34:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/use-a-definition-query-in-a-model/m-p/1109334#M46943</guid>
      <dc:creator>JonathanNeal</dc:creator>
      <dc:date>2021-10-20T16:34:59Z</dc:date>
    </item>
    <item>
      <title>Re: Use a Definition Query in a Model</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/use-a-definition-query-in-a-model/m-p/1109429#M46952</link>
      <description>&lt;P&gt;Thanks for the fast reply.&lt;/P&gt;&lt;P&gt;What started the quest was tiring to figure out how to put a definition query into a model. Definition query were not listing as a geoprocessing tool and copy feature did not have a place to enter a definition query.&lt;/P&gt;&lt;P&gt;How do you place the DQ into the model?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 20 Oct 2021 20:08:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/use-a-definition-query-in-a-model/m-p/1109429#M46952</guid>
      <dc:creator>BarryFosberg</dc:creator>
      <dc:date>2021-10-20T20:08:44Z</dc:date>
    </item>
    <item>
      <title>Re: Use a Definition Query in a Model</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/use-a-definition-query-in-a-model/m-p/1109444#M46955</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/336448"&gt;@BarryFosberg&lt;/a&gt;&amp;nbsp;You will first set up your definition query in the Map layer.&amp;nbsp; Then the tools that are ran within ModelBuilder will honor them.&amp;nbsp; Any tool that operates against the map layer will check selected and definition queries.&amp;nbsp; Note if you run Copy Features against the data on disk, it will not check definition queryies or selections.&lt;/P&gt;</description>
      <pubDate>Wed, 20 Oct 2021 20:48:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/use-a-definition-query-in-a-model/m-p/1109444#M46955</guid>
      <dc:creator>JonathanNeal</dc:creator>
      <dc:date>2021-10-20T20:48:47Z</dc:date>
    </item>
    <item>
      <title>Re: Use a Definition Query in a Model</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/use-a-definition-query-in-a-model/m-p/1109673#M46975</link>
      <description>&lt;P&gt;And thank you also.&lt;/P&gt;&lt;P&gt;The advice about how selects and DQ interact is subtle and important. Worth the thread by themselves.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I had been using , without knowing it, this solution. Part of my immediate problem is that I need the original data to be geo-located, then divided into 6 sub tables. I was hoping it would be more elegant to DQ this within the model.&amp;nbsp; As of now I have copy's in the Map Layer each with itsown DQ. I think that can be cleaned up using an iterator. Next I will be learning about iterators.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 21 Oct 2021 13:22:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/use-a-definition-query-in-a-model/m-p/1109673#M46975</guid>
      <dc:creator>BarryFosberg</dc:creator>
      <dc:date>2021-10-21T13:22:44Z</dc:date>
    </item>
  </channel>
</rss>

