<?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: Best way to select features within features in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/best-way-to-select-features-within-features/m-p/130154#M12085</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;OK, then use this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;map.on('layer-add-result', function (evt){&amp;nbsp; 
&amp;nbsp; var mp = new Multipoint();
&amp;nbsp; array.map(evt.layer.graphics, function(gra){
&amp;nbsp;&amp;nbsp;&amp;nbsp; mp.addPoint(gra.geometry);
&amp;nbsp; });
});&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 11 Dec 2021 07:19:48 GMT</pubDate>
    <dc:creator>RobertScheitlin__GISP</dc:creator>
    <dc:date>2021-12-11T07:19:48Z</dc:date>
    <item>
      <title>Best way to select features within features</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/best-way-to-select-features-within-features/m-p/130143#M12074</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey everybody,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am looking for a way to select points from a feature layer that fall within this feature layer: &lt;A href="http://coast.noaa.gov/arcgis/rest/services/FloodExposureMapper/CFEM_SeaLevelRise/MapServer/6" title="http://coast.noaa.gov/arcgis/rest/services/FloodExposureMapper/CFEM_SeaLevelRise/MapServer/6"&gt;Layer: Atl_slr_merged_2ft (ID: 6)&lt;/A&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It sounds easy enough if you use ArcGIS Desktop but in javascript I am running into issues.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Using the method described &lt;A _jive_internal="true" href="https://community.esri.com/thread/161626"&gt;here&lt;/A&gt; would work, union and then use the geometry of the union feature to select what falls within it. But if your feature layer has thousands of polygons, the union would take forever.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So my question is, am I approaching this issue wrong? Is my only option to union the layer before publishing it on a server ( which I sadly can't do, because I don't have the feature layer and rely on NOAA hosting it).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any input would be greatly appreciated!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tim &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Jul 2015 14:27:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/best-way-to-select-features-within-features/m-p/130143#M12074</guid>
      <dc:creator>TimWitt2</dc:creator>
      <dc:date>2015-07-17T14:27:36Z</dc:date>
    </item>
    <item>
      <title>Re: Best way to select features within features</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/best-way-to-select-features-within-features/m-p/130144#M12075</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Tim,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; You may need to consider your workflow for this. Do you really need to use all of the polygons from the NOAA map service in your app? Can you not set your workflow to minimize the intersect query before it is performed (i.e. have the user do some query to minimize the polygons evaluated or only query the polygons in the current map extent)?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Jul 2015 14:38:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/best-way-to-select-features-within-features/m-p/130144#M12075</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2015-07-17T14:38:03Z</dc:date>
    </item>
    <item>
      <title>Re: Best way to select features within features</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/best-way-to-select-features-within-features/m-p/130145#M12076</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Tim,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Are you thinking something like this? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.esri.com/message/447236"&gt;Webapp- Show points within a selected polygon&lt;/A&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Jul 2015 14:39:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/best-way-to-select-features-within-features/m-p/130145#M12076</guid>
      <dc:creator>RickeyFight</dc:creator>
      <dc:date>2015-07-17T14:39:57Z</dc:date>
    </item>
    <item>
      <title>Re: Best way to select features within features</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/best-way-to-select-features-within-features/m-p/130146#M12077</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Robert,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;that might be an idea. Maybe I should have explained what my goal is.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would like the user to be able to add their point featurlayer and see which points would fall within the flood zone.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tim&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Jul 2015 14:45:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/best-way-to-select-features-within-features/m-p/130146#M12077</guid>
      <dc:creator>TimWitt2</dc:creator>
      <dc:date>2015-07-17T14:45:32Z</dc:date>
    </item>
    <item>
      <title>Re: Best way to select features within features</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/best-way-to-select-features-within-features/m-p/130147#M12078</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Tim,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; What does their point FL represent? Will it be a handful of points, hundreds, thousands?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Jul 2015 14:54:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/best-way-to-select-features-within-features/m-p/130147#M12078</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2015-07-17T14:54:20Z</dc:date>
    </item>
    <item>
      <title>Re: Best way to select features within features</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/best-way-to-select-features-within-features/m-p/130148#M12079</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Robert,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would say anywhere between 10 - 200. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Jul 2015 14:56:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/best-way-to-select-features-within-features/m-p/130148#M12079</guid>
      <dc:creator>TimWitt2</dc:creator>
      <dc:date>2015-07-17T14:56:39Z</dc:date>
    </item>
    <item>
      <title>Re: Best way to select features within features</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/best-way-to-select-features-within-features/m-p/130149#M12080</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Tim,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; I would tackle this in a multi-step solution then.&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Take the users input point layer and add all the points to a new MultiPoint Geometry&lt;/LI&gt;&lt;LI&gt;Use the new MultiPoint geom to query the NOAA Polygons.&lt;/LI&gt;&lt;LI&gt;Take those NOAA Polygon results from the query and send then to the Geometry service to union them.&lt;/LI&gt;&lt;LI&gt;Take the unioned geom and do the intersect using the individual user points&lt;/LI&gt;&lt;/OL&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Jul 2015 15:11:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/best-way-to-select-features-within-features/m-p/130149#M12080</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2015-07-17T15:11:23Z</dc:date>
    </item>
    <item>
      <title>Re: Best way to select features within features</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/best-way-to-select-features-within-features/m-p/130150#M12081</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That is a great idea, I'll try that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I just wish the javascript API had a similar tool like ArcGIS Desktop "Select by location" &lt;IMG src="https://community.esri.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Jul 2015 15:15:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/best-way-to-select-features-within-features/m-p/130150#M12081</guid>
      <dc:creator>TimWitt2</dc:creator>
      <dc:date>2015-07-17T15:15:50Z</dc:date>
    </item>
    <item>
      <title>Re: Best way to select features within features</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/best-way-to-select-features-within-features/m-p/130151#M12082</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;One more question, how do I do step one?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I assume this happens here? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;map.on('layer-add-result', function (evt){
&amp;nbsp;&amp;nbsp;&amp;nbsp; //What code do I need?
});&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 07:19:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/best-way-to-select-features-within-features/m-p/130151#M12082</guid>
      <dc:creator>TimWitt2</dc:creator>
      <dc:date>2021-12-11T07:19:46Z</dc:date>
    </item>
    <item>
      <title>Re: Best way to select features within features</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/best-way-to-select-features-within-features/m-p/130152#M12083</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Tim,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Can one assume that the layer has been added as a FeayureLayer and thus you will have access to the layer geometry without doing a QueryTask?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Jul 2015 15:39:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/best-way-to-select-features-within-features/m-p/130152#M12083</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2015-07-17T15:39:43Z</dc:date>
    </item>
    <item>
      <title>Re: Best way to select features within features</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/best-way-to-select-features-within-features/m-p/130153#M12084</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, it will be a FeatureLayer.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Jul 2015 15:42:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/best-way-to-select-features-within-features/m-p/130153#M12084</guid>
      <dc:creator>TimWitt2</dc:creator>
      <dc:date>2015-07-17T15:42:47Z</dc:date>
    </item>
    <item>
      <title>Re: Best way to select features within features</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/best-way-to-select-features-within-features/m-p/130154#M12085</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;OK, then use this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;map.on('layer-add-result', function (evt){&amp;nbsp; 
&amp;nbsp; var mp = new Multipoint();
&amp;nbsp; array.map(evt.layer.graphics, function(gra){
&amp;nbsp;&amp;nbsp;&amp;nbsp; mp.addPoint(gra.geometry);
&amp;nbsp; });
});&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 07:19:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/best-way-to-select-features-within-features/m-p/130154#M12085</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2021-12-11T07:19:48Z</dc:date>
    </item>
  </channel>
</rss>

