<?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 Definition Query in ModelBuilder in Geoprocessing Questions</title>
    <link>https://community.esri.com/t5/geoprocessing-questions/definition-query-in-modelbuilder/m-p/636528#M21204</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Is is possible to create and apply a definition query in ModelBuilder?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The model would be the same as in the attached screenshot except that the tool would be "Definition Query" not "Select Layer By Attribute".&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;[ATTACH=CONFIG]26204[/ATTACH]&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I feel like this should be easy to do.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any help is appreciated.&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;pbh&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 25 Jul 2013 13:29:08 GMT</pubDate>
    <dc:creator>PeterHugger</dc:creator>
    <dc:date>2013-07-25T13:29:08Z</dc:date>
    <item>
      <title>Definition Query in ModelBuilder</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/definition-query-in-modelbuilder/m-p/636528#M21204</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Is is possible to create and apply a definition query in ModelBuilder?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The model would be the same as in the attached screenshot except that the tool would be "Definition Query" not "Select Layer By Attribute".&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;[ATTACH=CONFIG]26204[/ATTACH]&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I feel like this should be easy to do.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any help is appreciated.&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;pbh&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Jul 2013 13:29:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/definition-query-in-modelbuilder/m-p/636528#M21204</guid>
      <dc:creator>PeterHugger</dc:creator>
      <dc:date>2013-07-25T13:29:08Z</dc:date>
    </item>
    <item>
      <title>Re: Definition Query in ModelBuilder</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/definition-query-in-modelbuilder/m-p/636529#M21205</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Is is possible to create and apply a definition query in ModelBuilder?&lt;BR /&gt;&lt;BR /&gt;The model would be the same as in the attached screenshot except that the tool would be "Definition Query" not "Select Layer By Attribute".&lt;BR /&gt;&lt;BR /&gt;[ATTACH=CONFIG]26204[/ATTACH]&lt;BR /&gt;&lt;BR /&gt;I feel like this should be easy to do.&lt;BR /&gt;&lt;BR /&gt;Any help is appreciated.&lt;BR /&gt;&lt;BR /&gt;Thanks.&lt;BR /&gt;&lt;BR /&gt;pbh&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Use the Make Feature Layer tool with the query option specified.&amp;nbsp; That is the definition query of the layer as far as I know.&amp;nbsp; A layer without a query can feed a layer with one, but not the other way around as far as I know.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Jul 2013 14:00:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/definition-query-in-modelbuilder/m-p/636529#M21205</guid>
      <dc:creator>RichardFairhurst</dc:creator>
      <dc:date>2013-07-25T14:00:48Z</dc:date>
    </item>
    <item>
      <title>Re: Definition Query in ModelBuilder</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/definition-query-in-modelbuilder/m-p/636530#M21206</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks for your reply.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am having trouble getting this to work. The Make Feature Layer tool doesn't seem apply it's query/expression to the input layer (it creates a separate (temporary) layer). I think your solution would work if I needed to create a new layer or temporary layer to be processed further. This is not what I am trying to do. Basically I am trying to simplify the application of a definition query. For example: Instead of having the users [right click &amp;gt; properties &amp;gt; definition query &amp;gt; create SQL query] they would [double click tool &amp;gt; specify the expression value]. Once applied the definition query will only show the features that meet the expression criteria (this is incredibly useful when editing in an area with many features).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Perhaps this cannot be done in ModelBuilder.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks anyways.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Jul 2013 14:49:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/definition-query-in-modelbuilder/m-p/636530#M21206</guid>
      <dc:creator>PeterHugger</dc:creator>
      <dc:date>2013-07-25T14:49:51Z</dc:date>
    </item>
    <item>
      <title>Re: Definition Query in ModelBuilder</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/definition-query-in-modelbuilder/m-p/636531#M21207</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Thanks for your reply.&lt;BR /&gt;&lt;BR /&gt;I am having trouble getting this to work. The Make Feature Layer tool doesn't seem apply it's query/expression to the input layer (it creates a separate (temporary) layer). I think your solution would work if I needed to create a new layer or temporary layer to be processed further. This is not what I am trying to do. Basically I am trying to simplify the application of a definition query. For example: Instead of having the users [right click &amp;gt; properties &amp;gt; definition query &amp;gt; create SQL query] they would [double click tool &amp;gt; specify the expression value]. Once applied the definition query will only show the features that meet the expression criteria (this is incredibly useful when editing in an area with many features).&lt;BR /&gt;&lt;BR /&gt;Perhaps this cannot be done in ModelBuilder.&lt;BR /&gt;&lt;BR /&gt;Thanks anyways.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Python could do it more easily than Model Builder, except Model Builder has some SQL validation support for the end users that Python doesn't have without custom programming.&amp;nbsp; Nonetheless, getting a particular layer in a map and settings its definition query based on user input would be a pretty straight forward script.&amp;nbsp; A Python Add-In button would probably let the users launch it.&amp;nbsp; Check the Python forum for examples of setting layer definition queries.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Jul 2013 15:04:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/definition-query-in-modelbuilder/m-p/636531#M21207</guid>
      <dc:creator>RichardFairhurst</dc:creator>
      <dc:date>2013-07-25T15:04:42Z</dc:date>
    </item>
  </channel>
</rss>

