<?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: Using extent.intersect with feature layer in ArcGIS API for Flex Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/using-extent-intersect-with-feature-layer/m-p/654438#M14624</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;mei76,&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; What you are attempting to do is just a simple spatial query.&lt;BR /&gt;&lt;BR /&gt;Look at this example&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://resources.esri.com/help/9.3/arcgisserver/apis/flex/samples/index.html?sample=ShowPointsWithinMapExtent"&gt;http://resources.esri.com/help/9.3/arcgisserver/apis/flex/samples/index.html?sample=ShowPointsWithinMapExtent&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;It is querying points based on the current maps extent but the principle is the same for your requirements instead of the using the map extent geometry as the spatial portion of the query you would just pass the water catchment polygon to the query and the query would be using the hydrological features as the layer to query.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks Robert.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I already understand that there's a sample of that. What I was trying to find out is whether it was possible to just send 1 query to the server, instead of looping for every water catchment polygon, since that would mean n number of queries to the server, which won't be efficient. Also, if this is possible, can the returned results be grouped by each catchment?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 03 Jun 2010 23:59:25 GMT</pubDate>
    <dc:creator>mei09</dc:creator>
    <dc:date>2010-06-03T23:59:25Z</dc:date>
    <item>
      <title>Using extent.intersect with feature layer</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/using-extent-intersect-with-feature-layer/m-p/654434#M14620</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi evrybody&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have some problem to loop over a featureLayer to retreve geometry for eatch feature and use it with extent.intersect&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;someting like the select with extent sample but with a featureLayer&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;thanks for your help&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Apr 2010 12:22:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/using-extent-intersect-with-feature-layer/m-p/654434#M14620</guid>
      <dc:creator>louisversailles</dc:creator>
      <dc:date>2010-04-22T12:22:55Z</dc:date>
    </item>
    <item>
      <title>Using extent.intersect with feature layer</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/using-extent-intersect-with-feature-layer/m-p/654435#M14621</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You can loop over the feature layer's graphicProvider to iterate over each Graphic in the layer, but an easier solution could be to use the feature layer's selectFeatures() method. You can give it a Query object who's geometry is the Extent you want to be selected.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Reference:&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://help.arcgis.com/en/webapi/flex/apiref/com/esri/ags/layers/FeatureLayer.html#selectFeatures("&gt;http://help.arcgis.com/en/webapi/flex/apiref/com/esri/ags/layers/FeatureLayer.html#selectFeatures(&lt;/A&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Apr 2010 15:42:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/using-extent-intersect-with-feature-layer/m-p/654435#M14621</guid>
      <dc:creator>DasaPaddock</dc:creator>
      <dc:date>2010-04-22T15:42:10Z</dc:date>
    </item>
    <item>
      <title>Re: Using extent.intersect with feature layer</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/using-extent-intersect-with-feature-layer/m-p/654436#M14622</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;You can loop over the feature layer's graphicProvider to iterate over each Graphic in the layer, but an easier solution could be to use the feature layer's selectFeatures() method. You can give it a Query object who's geometry is the Extent you want to be selected.&lt;BR /&gt;&lt;BR /&gt;Reference:&lt;BR /&gt;&lt;A href="http://help.arcgis.com/en/webapi/flex/apiref/com/esri/ags/layers/FeatureLayer.html#selectFeatures("&gt;http://help.arcgis.com/en/webapi/flex/apiref/com/esri/ags/layers/FeatureLayer.html#selectFeatures(&lt;/A&gt;)&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;If we are using ArcGIS Server 9.3.1, and ARCGIS Flex API 1.3,&amp;nbsp; is this available?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;for eg: 1 feature class has all the country's water catchment polygons&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1 feature class has all the different hydrological features (rivers, tributaries etc)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;what should be done to have an efficient query to do the following:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;for each water catchment polygon, find the hydrological features and display this in a datagrid.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;any advice would be much help, since i don't think looping through each water catchment polygon is efficient.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;thanks&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Jun 2010 11:43:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/using-extent-intersect-with-feature-layer/m-p/654436#M14622</guid>
      <dc:creator>mei09</dc:creator>
      <dc:date>2010-06-03T11:43:33Z</dc:date>
    </item>
    <item>
      <title>Re: Using extent.intersect with feature layer</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/using-extent-intersect-with-feature-layer/m-p/654437#M14623</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;mei76,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; What you are attempting to do is just a simple spatial query.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Look at this example&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://resources.esri.com/help/9.3/arcgisserver/apis/flex/samples/index.html?sample=ShowPointsWithinMapExtent"&gt;http://resources.esri.com/help/9.3/arcgisserver/apis/flex/samples/index.html?sample=ShowPointsWithinMapExtent&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It is querying points based on the current maps extent but the principle is the same for your requirements instead of the using the map extent geometry as the spatial portion of the query you would just pass the water catchment polygon to the query and the query would be using the hydrological features as the layer to query.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Jun 2010 13:37:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/using-extent-intersect-with-feature-layer/m-p/654437#M14623</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2010-06-03T13:37:52Z</dc:date>
    </item>
    <item>
      <title>Re: Using extent.intersect with feature layer</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/using-extent-intersect-with-feature-layer/m-p/654438#M14624</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;mei76,&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; What you are attempting to do is just a simple spatial query.&lt;BR /&gt;&lt;BR /&gt;Look at this example&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://resources.esri.com/help/9.3/arcgisserver/apis/flex/samples/index.html?sample=ShowPointsWithinMapExtent"&gt;http://resources.esri.com/help/9.3/arcgisserver/apis/flex/samples/index.html?sample=ShowPointsWithinMapExtent&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;It is querying points based on the current maps extent but the principle is the same for your requirements instead of the using the map extent geometry as the spatial portion of the query you would just pass the water catchment polygon to the query and the query would be using the hydrological features as the layer to query.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks Robert.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I already understand that there's a sample of that. What I was trying to find out is whether it was possible to just send 1 query to the server, instead of looping for every water catchment polygon, since that would mean n number of queries to the server, which won't be efficient. Also, if this is possible, can the returned results be grouped by each catchment?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Jun 2010 23:59:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/using-extent-intersect-with-feature-layer/m-p/654438#M14624</guid>
      <dc:creator>mei09</dc:creator>
      <dc:date>2010-06-03T23:59:25Z</dc:date>
    </item>
    <item>
      <title>Re: Using extent.intersect with feature layer</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/using-extent-intersect-with-feature-layer/m-p/654439#M14625</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;mei 09,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; So what is the design and workflow of your app that you would need to get all of the water catchments and their hydrological features at the same time?...&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This can be done using the GeometryService Relation method. You will have to run two queries on to return all the water catchments and then another to return all the hydrological features so that you can feed them into the GeometryService.Relation method. The results of the Relation will have values like "geometry1Index = 999 and geometry2Index = 0" which means that the geometry in the first array with the id of 999 meet the relation requirement that you specified in relation to the geometry in array 2 with the id of geometry2Index of 0.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Jun 2010 12:02:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/using-extent-intersect-with-feature-layer/m-p/654439#M14625</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2010-06-04T12:02:31Z</dc:date>
    </item>
  </channel>
</rss>

