<?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: Query Extent in .NET Maps SDK Questions</title>
    <link>https://community.esri.com/t5/net-maps-sdk-questions/query-extent/m-p/720285#M9072</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Cool, I was thinking we may need to do something like this!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 23 Oct 2015 19:25:33 GMT</pubDate>
    <dc:creator>ChrisSmith7</dc:creator>
    <dc:date>2015-10-23T19:25:33Z</dc:date>
    <item>
      <title>Query Extent</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/query-extent/m-p/720281#M9068</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is there a way in .NET that I can use a QueryTask to executeForExtent as in the JavaScript API?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Oct 2015 14:42:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/query-extent/m-p/720281#M9068</guid>
      <dc:creator>MarkCederholm</dc:creator>
      <dc:date>2015-10-23T14:42:04Z</dc:date>
    </item>
    <item>
      <title>Re: Query Extent</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/query-extent/m-p/720282#M9069</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Looking at the API documentation, I don't see it as a listed method:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://developers.arcgis.com/net/desktop/api-reference//html/T_Esri_ArcGISRuntime_Tasks_Query_QueryTask.htm" title="https://developers.arcgis.com/net/desktop/api-reference//html/T_Esri_ArcGISRuntime_Tasks_Query_QueryTask.htm"&gt;QueryTask Class&lt;/A&gt; &lt;A href="https://developers.arcgis.com/net/desktop/api-reference/" title="https://developers.arcgis.com/net/desktop/api-reference/"&gt;&lt;BR /&gt;&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Oct 2015 19:08:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/query-extent/m-p/720282#M9069</guid>
      <dc:creator>ChrisSmith7</dc:creator>
      <dc:date>2015-10-23T19:08:02Z</dc:date>
    </item>
    <item>
      <title>Re: Query Extent</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/query-extent/m-p/720283#M9070</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That being said, though, I wonder if you could get the extent from the query FeatureSet...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://developers.arcgis.com/net/desktop/api-reference//html/T_Esri_ArcGISRuntime_Data_FeatureSet.htm" title="https://developers.arcgis.com/net/desktop/api-reference//html/T_Esri_ArcGISRuntime_Data_FeatureSet.htm"&gt;FeatureSet Class&lt;/A&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I didn't see an extent property, however, so you may need some code to get the extent.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Oct 2015 19:16:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/query-extent/m-p/720283#M9070</guid>
      <dc:creator>ChrisSmith7</dc:creator>
      <dc:date>2015-10-23T19:16:54Z</dc:date>
    </item>
    <item>
      <title>Re: Query Extent</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/query-extent/m-p/720284#M9071</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Mark -&lt;/P&gt;&lt;P&gt;You can achieve the same result with a few extra lines of code. The example below will loop thru the results of a query and union the extents of all features to build the overall extent:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #4ec9b0;"&gt;Envelope&lt;/SPAN&gt; resultExtent &lt;SPAN style="color: #b4b4b4;"&gt;=&lt;/SPAN&gt; &lt;SPAN style="color: #569cd6;"&gt;null&lt;/SPAN&gt;;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #569cd6;"&gt;var&lt;/SPAN&gt; filter &lt;SPAN style="color: #b4b4b4;"&gt;=&lt;/SPAN&gt; &lt;SPAN style="color: #569cd6;"&gt;new&lt;/SPAN&gt; &lt;SPAN style="color: #4ec9b0;"&gt;Query&lt;/SPAN&gt;(&lt;SPAN style="color: #d69d85;"&gt;"areaname LIKE '%red%'"&lt;/SPAN&gt;);&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #569cd6;"&gt;var&lt;/SPAN&gt; queryTask &lt;SPAN style="color: #b4b4b4;"&gt;=&lt;/SPAN&gt; &lt;SPAN style="color: #569cd6;"&gt;new&lt;/SPAN&gt; &lt;SPAN style="color: #4ec9b0;"&gt;QueryTask&lt;/SPAN&gt;(&lt;SPAN style="color: #569cd6;"&gt;new&lt;/SPAN&gt; &lt;SPAN style="color: #4ec9b0;"&gt;Uri&lt;/SPAN&gt;(&lt;SPAN style="color: #d69d85;"&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=http%3A%2F%2Fsampleserver6.arcgisonline.com%2Farcgis%2Frest%2Fservices%2FUSA%2FMapServer%2F0" rel="nofollow" target="_blank"&gt;http://sampleserver6.arcgisonline.com/arcgis/rest/services/USA/MapServer/0&lt;/A&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: #569cd6;"&gt;var&lt;/SPAN&gt; results &lt;SPAN style="color: #b4b4b4;"&gt;=&lt;/SPAN&gt; &lt;SPAN style="color: #569cd6;"&gt;await&lt;/SPAN&gt; queryTask&lt;SPAN style="color: #b4b4b4;"&gt;.&lt;/SPAN&gt;ExecuteAsync(filter);&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #569cd6;"&gt;var&lt;/SPAN&gt; resultCount &lt;SPAN style="color: #b4b4b4;"&gt;=&lt;/SPAN&gt; results&lt;SPAN style="color: #b4b4b4;"&gt;.&lt;/SPAN&gt;FeatureSet&lt;SPAN style="color: #b4b4b4;"&gt;.&lt;/SPAN&gt;Features&lt;SPAN style="color: #b4b4b4;"&gt;.&lt;/SPAN&gt;Count;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #569cd6;"&gt;foreach&lt;/SPAN&gt; (&lt;SPAN style="color: #569cd6;"&gt;var&lt;/SPAN&gt; f &lt;SPAN style="color: #569cd6;"&gt;in&lt;/SPAN&gt; results&lt;SPAN style="color: #b4b4b4;"&gt;.&lt;/SPAN&gt;FeatureSet&lt;SPAN style="color: #b4b4b4;"&gt;.&lt;/SPAN&gt;Features)&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #569cd6;"&gt;var&lt;/SPAN&gt; ext &lt;SPAN style="color: #b4b4b4;"&gt;=&lt;/SPAN&gt; f&lt;SPAN style="color: #b4b4b4;"&gt;.&lt;/SPAN&gt;Geometry&lt;SPAN style="color: #b4b4b4;"&gt;.&lt;/SPAN&gt;Extent;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #569cd6;"&gt;if&lt;/SPAN&gt; (resultExtent &lt;SPAN style="color: #b4b4b4;"&gt;==&lt;/SPAN&gt; &lt;SPAN style="color: #569cd6;"&gt;null&lt;/SPAN&gt;)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; resultExtent &lt;SPAN style="color: #b4b4b4;"&gt;=&lt;/SPAN&gt; ext;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #569cd6;"&gt;else&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; resultExtent &lt;SPAN style="color: #b4b4b4;"&gt;=&lt;/SPAN&gt; resultExtent&lt;SPAN style="color: #b4b4b4;"&gt;.&lt;/SPAN&gt;Union(ext);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MyMapView&lt;SPAN style="color: #b4b4b4;"&gt;.&lt;/SPAN&gt;SetViewAsync(resultExtent);&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Oct 2015 19:19:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/query-extent/m-p/720284#M9071</guid>
      <dc:creator>ThadTilton</dc:creator>
      <dc:date>2015-10-23T19:19:27Z</dc:date>
    </item>
    <item>
      <title>Re: Query Extent</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/query-extent/m-p/720285#M9072</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Cool, I was thinking we may need to do something like this!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Oct 2015 19:25:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/query-extent/m-p/720285#M9072</guid>
      <dc:creator>ChrisSmith7</dc:creator>
      <dc:date>2015-10-23T19:25:33Z</dc:date>
    </item>
    <item>
      <title>Re: Query Extent</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/query-extent/m-p/720286#M9073</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm trying to avoid unnecessary network traffic.&amp;nbsp; It turns out, however, that in the REST API the returnExtentOnly option is only available on feature service layers.&amp;nbsp; Hopefully that will change in the next version of Server.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Oct 2015 19:31:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/query-extent/m-p/720286#M9073</guid>
      <dc:creator>MarkCederholm</dc:creator>
      <dc:date>2015-10-23T19:31:33Z</dc:date>
    </item>
  </channel>
</rss>

