<?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 Feature Count Within Geometry in QML in Qt Maps SDK Questions</title>
    <link>https://community.esri.com/t5/qt-maps-sdk-questions/feature-count-within-geometry-in-qml/m-p/372306#M1861</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have &lt;SPAN style="color: #800080;"&gt;GeodatabaseFeatureServiceTable &lt;SPAN style="color: #303030;"&gt;and point&amp;nbsp; &lt;SPAN style="color: #800080;"&gt;FeatureLayer &lt;SPAN style="color: #303030;"&gt;like below&lt;/SPAN&gt; &lt;SPAN style="color: #303030;"&gt;and I have geometry(ex:map extent), how can I find point &lt;SPAN style="color: #e23d39;"&gt;feature count&lt;/SPAN&gt; within that geometry.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #c0c0c0;"&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #800080;"&gt;FeatureLayer&lt;/SPAN&gt;&lt;SPAN style="color: #c0c0c0;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #c0c0c0;"&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #800000;"&gt;id&lt;/SPAN&gt;:&lt;SPAN style="font-style: italic; color: #000000;"&gt;featureLayer&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #c0c0c0;"&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #800000;"&gt;featureTable&lt;/SPAN&gt;:&lt;SPAN style="color: #c0c0c0;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;geodatabaseTable&lt;/SPAN&gt;&lt;SPAN style="color: #c0c0c0;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #c0c0c0;"&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #800080;"&gt;GeodatabaseFeatureServiceTable&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #800000;"&gt;id&lt;/SPAN&gt;:&lt;SPAN style="color: #000000;"&gt;geodatabaseTable&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #c0c0c0;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000;"&gt;url&lt;/SPAN&gt;:&lt;SPAN style="color: #008000;"&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=http://..................................................../MapServer/0" rel="nofollow" target="_blank"&gt;http://..................................................../MapServer/0&lt;/A&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #c0c0c0;"&gt; &lt;/SPAN&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 02 Sep 2015 18:53:55 GMT</pubDate>
    <dc:creator>KK2014</dc:creator>
    <dc:date>2015-09-02T18:53:55Z</dc:date>
    <item>
      <title>Feature Count Within Geometry in QML</title>
      <link>https://community.esri.com/t5/qt-maps-sdk-questions/feature-count-within-geometry-in-qml/m-p/372306#M1861</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have &lt;SPAN style="color: #800080;"&gt;GeodatabaseFeatureServiceTable &lt;SPAN style="color: #303030;"&gt;and point&amp;nbsp; &lt;SPAN style="color: #800080;"&gt;FeatureLayer &lt;SPAN style="color: #303030;"&gt;like below&lt;/SPAN&gt; &lt;SPAN style="color: #303030;"&gt;and I have geometry(ex:map extent), how can I find point &lt;SPAN style="color: #e23d39;"&gt;feature count&lt;/SPAN&gt; within that geometry.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #c0c0c0;"&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #800080;"&gt;FeatureLayer&lt;/SPAN&gt;&lt;SPAN style="color: #c0c0c0;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #c0c0c0;"&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #800000;"&gt;id&lt;/SPAN&gt;:&lt;SPAN style="font-style: italic; color: #000000;"&gt;featureLayer&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #c0c0c0;"&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #800000;"&gt;featureTable&lt;/SPAN&gt;:&lt;SPAN style="color: #c0c0c0;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;geodatabaseTable&lt;/SPAN&gt;&lt;SPAN style="color: #c0c0c0;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #c0c0c0;"&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #800080;"&gt;GeodatabaseFeatureServiceTable&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #800000;"&gt;id&lt;/SPAN&gt;:&lt;SPAN style="color: #000000;"&gt;geodatabaseTable&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #c0c0c0;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000;"&gt;url&lt;/SPAN&gt;:&lt;SPAN style="color: #008000;"&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=http://..................................................../MapServer/0" rel="nofollow" target="_blank"&gt;http://..................................................../MapServer/0&lt;/A&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #c0c0c0;"&gt; &lt;/SPAN&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Sep 2015 18:53:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/qt-maps-sdk-questions/feature-count-within-geometry-in-qml/m-p/372306#M1861</guid>
      <dc:creator>KK2014</dc:creator>
      <dc:date>2015-09-02T18:53:55Z</dc:date>
    </item>
    <item>
      <title>Re: Feature Count Within Geometry in QML</title>
      <link>https://community.esri.com/t5/qt-maps-sdk-questions/feature-count-within-geometry-in-qml/m-p/372307#M1862</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;KK-&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You should query the feature table, either with queryds or queryFeatures &lt;A href="https://developers.arcgis.com/qt/qml/api-reference/class_feature_table.html#ac06d850feab2b047f3a8e772e585fe90" title="https://developers.arcgis.com/qt/qml/api-reference/class_feature_table.html#ac06d850feab2b047f3a8e772e585fe90"&gt;ArcGIS Runtime SDK for Qt QML API: FeatureTable Class Reference&lt;/A&gt; . &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Both of these methods require you pass in a Query object &lt;A href="https://developers.arcgis.com/qt/qml/api-reference/class_query.html#aa44c76f9c237f35b144a5a38d460ba6b" title="https://developers.arcgis.com/qt/qml/api-reference/class_query.html#aa44c76f9c237f35b144a5a38d460ba6b"&gt;ArcGIS Runtime SDK for Qt QML API: Query Class Reference&lt;/A&gt;. If you want all features within that geometry, make sure to set the where clause to "1=1" to get everything. If you just want a subset, specify your own SQL query. Make sure to set the spatialRelationship that you want (within, intersects, overlaps, etc), and this is what will filter based on geometry &lt;A href="https://developers.arcgis.com/qt/qml/api-reference/class_enums.html#a386ba80308778f1e676978bff85a01b5" title="https://developers.arcgis.com/qt/qml/api-reference/class_enums.html#a386ba80308778f1e676978bff85a01b5"&gt;ArcGIS Runtime SDK for Qt QML API: Enums Class Reference&lt;/A&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This will return a FeatureResult, which has a feature count &lt;A href="https://developers.arcgis.com/qt/qml/api-reference/class_feature_result.html" title="https://developers.arcgis.com/qt/qml/api-reference/class_feature_result.html"&gt;ArcGIS Runtime SDK for Qt QML API: FeatureResult Class Reference&lt;/A&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Luke&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Sep 2015 19:49:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/qt-maps-sdk-questions/feature-count-within-geometry-in-qml/m-p/372307#M1862</guid>
      <dc:creator>LucasDanzinger</dc:creator>
      <dc:date>2015-09-02T19:49:20Z</dc:date>
    </item>
  </channel>
</rss>

