<?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: Trying to get envelope information in ArcGIS Runtime SDK for iOS Questions</title>
    <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/trying-to-get-envelope-information/m-p/374979#M3223</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Your code should be...&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;AGSGraphic *graphic = [featureSet.features objectAtIndex:0];&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;AGSEnvelope *env = (AGSEnvelope *)graphic.geometry.envelope;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Nimesh&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 15 Dec 2011 15:36:06 GMT</pubDate>
    <dc:creator>NimeshJarecha</dc:creator>
    <dc:date>2011-12-15T15:36:06Z</dc:date>
    <item>
      <title>Trying to get envelope information</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/trying-to-get-envelope-information/m-p/374978#M3222</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;SPAN&gt;I'm new at this, I'm trying to get envelope information from a AGSFeatureSet.&amp;nbsp; My query works, it returns 1 object.&amp;nbsp; I also used the returnGeometry = YES in my setup of the query.&amp;nbsp; The problem I'm having is I cannot write the statement correctly to get the envelope information.&amp;nbsp; My statement keeps giving me an error when I add .geometry.&amp;nbsp; Here is the code:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;- (void)queryTask:(AGSQueryTask *)queryTask operation:(NSOperation *)op didExecuteWithFeatureSetResult:(AGSFeatureSet *)featureSet &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;{&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; AGSEnvelope *env = [((AGSFeatureSet*)[featureSet.features objectAtIndex:0]).geometry];&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; [self.mapView zoomToEnvelope:env animated:YES];&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Any help would be appreciated,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Jerry&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Dec 2011 20:28:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/trying-to-get-envelope-information/m-p/374978#M3222</guid>
      <dc:creator>JerryChapman</dc:creator>
      <dc:date>2011-12-14T20:28:31Z</dc:date>
    </item>
    <item>
      <title>Re: Trying to get envelope information</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/trying-to-get-envelope-information/m-p/374979#M3223</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Your code should be...&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;AGSGraphic *graphic = [featureSet.features objectAtIndex:0];&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;AGSEnvelope *env = (AGSEnvelope *)graphic.geometry.envelope;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Nimesh&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Dec 2011 15:36:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/trying-to-get-envelope-information/m-p/374979#M3223</guid>
      <dc:creator>NimeshJarecha</dc:creator>
      <dc:date>2011-12-15T15:36:06Z</dc:date>
    </item>
    <item>
      <title>Re: Trying to get envelope information</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/trying-to-get-envelope-information/m-p/374980#M3224</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Nimesh,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for the quick response.&amp;nbsp; Your solution worked great.&amp;nbsp; ESRI has always had excellent support for there products.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Jerry&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Dec 2011 19:28:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/trying-to-get-envelope-information/m-p/374980#M3224</guid>
      <dc:creator>JerryChapman</dc:creator>
      <dc:date>2011-12-15T19:28:24Z</dc:date>
    </item>
    <item>
      <title>Re: Trying to get envelope information</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/trying-to-get-envelope-information/m-p/374981#M3225</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You're most welcome! &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Nimesh&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Dec 2011 19:31:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/trying-to-get-envelope-information/m-p/374981#M3225</guid>
      <dc:creator>NimeshJarecha</dc:creator>
      <dc:date>2011-12-15T19:31:23Z</dc:date>
    </item>
  </channel>
</rss>

