<?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: Analyse Query Definition in ArcObjects SDK Questions</title>
    <link>https://community.esri.com/t5/arcobjects-sdk-questions/analyse-query-definition/m-p/548101#M14818</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;ArcMap has to check it before display the objects in map.&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp; This isn't how it works.&amp;nbsp; ArcMap executes the definition query against the data source and draws whatever features are returned by the query.&amp;nbsp; It doesn't parse (or analyze) the query or anything like that.&amp;nbsp; If you want to check to see if features with a certain attribute value are visible then one of the easiest ways is to just query the layer for them and see if you get anything back.&amp;nbsp; If you don't get any results from your query, then none are visible.&amp;nbsp; In order to do this, you need to use a Search method that is aware of the definition query.&amp;nbsp; You can use IDisplayTable.SearchDisplayTable(), IGeoFeatureLayer.SearchDisplayFeatures() or IFeatureLayer.Search().&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 24 Sep 2010 12:18:32 GMT</pubDate>
    <dc:creator>NeilClemmons</dc:creator>
    <dc:date>2010-09-24T12:18:32Z</dc:date>
    <item>
      <title>Analyse Query Definition</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/analyse-query-definition/m-p/548100#M14817</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi, &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;We use ArcGIS 9.3 and C#.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;In Layer Properties Definition Query whe define that only Features with restricted GTYPE_ID should be visible in map.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Some query definition for example:&lt;/SPAN&gt;&lt;BR /&gt;&lt;UL&gt;&lt;BR /&gt;&lt;LI&gt;(GTYPE_ID = 3 or GTYPE_ID = 4) and STATUS &amp;lt;= 4&lt;/LI&gt;&lt;BR /&gt;&lt;LI&gt;(GTYPE_ID=15 or GTYPE_ID=20 or GTYPE_ID=18 or GTYPE_ID=26 or GTYPE_ID=29 or GTYPE_ID=32) and STATUS &amp;lt;= 4&lt;/LI&gt;&lt;BR /&gt;&lt;LI&gt;(GTYPE_ID &amp;lt;= 100 AND GTYPE_ID &amp;gt;= 90) OR (GTYPE_ID &amp;lt;= 20 and GTYPE&amp;gt;=10) and not GTYPE_ID =15&lt;/LI&gt;&lt;BR /&gt;&lt;/UL&gt;&lt;STRONG&gt;Is there a API to check whether GTYPE_ID 5 is visible in map.&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;ArcMap has to check it before display the objects in map. Can I use the same methods?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Question example: Is GTYPE_ID 5 excludet in Featurelayer?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Alternatively: Is GYTYPE 5 displayes in Featurelayer?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If I develop my own function I have to look for and, or, (), &amp;lt;= and/or &amp;gt;=.... &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Maybe someone has an example or only a hint for me. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;best regards Simona&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Sep 2010 11:00:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/analyse-query-definition/m-p/548100#M14817</guid>
      <dc:creator>SimonaSchlange</dc:creator>
      <dc:date>2010-09-24T11:00:02Z</dc:date>
    </item>
    <item>
      <title>Re: Analyse Query Definition</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/analyse-query-definition/m-p/548101#M14818</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;ArcMap has to check it before display the objects in map.&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp; This isn't how it works.&amp;nbsp; ArcMap executes the definition query against the data source and draws whatever features are returned by the query.&amp;nbsp; It doesn't parse (or analyze) the query or anything like that.&amp;nbsp; If you want to check to see if features with a certain attribute value are visible then one of the easiest ways is to just query the layer for them and see if you get anything back.&amp;nbsp; If you don't get any results from your query, then none are visible.&amp;nbsp; In order to do this, you need to use a Search method that is aware of the definition query.&amp;nbsp; You can use IDisplayTable.SearchDisplayTable(), IGeoFeatureLayer.SearchDisplayFeatures() or IFeatureLayer.Search().&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Sep 2010 12:18:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/analyse-query-definition/m-p/548101#M14818</guid>
      <dc:creator>NeilClemmons</dc:creator>
      <dc:date>2010-09-24T12:18:32Z</dc:date>
    </item>
    <item>
      <title>Re: Analyse Query Definition</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/analyse-query-definition/m-p/548102#M14819</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks Neil for the explanation! But sorry, it doesn't help.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have to check the parameterization. For example: Is every define featureclass/subtype in group layer (and not exclude in query definition)? The problem is that it can be that there are no features in featureclass for a valid subtype. That happens when define a new subtype. I have to find errors when someone in a team define a new subtype and no one add the subtype in the query definition for layer. So the data never displays in map.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Maybe I have to change my requirements.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Best regards.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Simona&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Sep 2010 07:42:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/analyse-query-definition/m-p/548102#M14819</guid>
      <dc:creator>SimonaSchlange</dc:creator>
      <dc:date>2010-09-27T07:42:23Z</dc:date>
    </item>
    <item>
      <title>Re: Analyse Query Definition</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/analyse-query-definition/m-p/548103#M14820</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Has anybody else an idea to check if subtype and featureclass is valid in layer without features in featureclass?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Sep 2010 06:30:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/analyse-query-definition/m-p/548103#M14820</guid>
      <dc:creator>SimonaSchlange</dc:creator>
      <dc:date>2010-09-29T06:30:27Z</dc:date>
    </item>
  </channel>
</rss>

