<?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 JS-API: featureLayer.selectFeatures in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/js-api-featurelayer-selectfeatures/m-p/309777#M28492</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, &lt;/P&gt;&lt;P&gt;is there any posibility to select only the Features &lt;STRONG&gt;located inside&lt;/STRONG&gt; the Selection-Geometry?&lt;BR /&gt;The Method featureLayer.selectFeatures(query,FeatureLayer.SELECTION_NEW) as well takes &lt;BR /&gt;the Features intersecting the shape of the Selection-Geometry&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Chris&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 30 Nov 2015 13:43:28 GMT</pubDate>
    <dc:creator>ChrisPag</dc:creator>
    <dc:date>2015-11-30T13:43:28Z</dc:date>
    <item>
      <title>JS-API: featureLayer.selectFeatures</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/js-api-featurelayer-selectfeatures/m-p/309777#M28492</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, &lt;/P&gt;&lt;P&gt;is there any posibility to select only the Features &lt;STRONG&gt;located inside&lt;/STRONG&gt; the Selection-Geometry?&lt;BR /&gt;The Method featureLayer.selectFeatures(query,FeatureLayer.SELECTION_NEW) as well takes &lt;BR /&gt;the Features intersecting the shape of the Selection-Geometry&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Chris&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Nov 2015 13:43:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/js-api-featurelayer-selectfeatures/m-p/309777#M28492</guid>
      <dc:creator>ChrisPag</dc:creator>
      <dc:date>2015-11-30T13:43:28Z</dc:date>
    </item>
    <item>
      <title>Re: JS-API: featureLayer.selectFeatures</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/js-api-featurelayer-selectfeatures/m-p/309778#M28493</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can set the &lt;A href="https://developers.arcgis.com/javascript/jsapi/query-amd.html#spatialrelationship"&gt;spatialRelationship&lt;/A&gt; method of the Query task. By default, it's &lt;CODE&gt;SPATIAL_REL_INTERSECTS&lt;/CODE&gt;, but you can set it to &lt;CODE&gt;&lt;CODE&gt;SPATIAL_REL_WITHIN&lt;/CODE&gt;.&lt;/CODE&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Nov 2015 13:49:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/js-api-featurelayer-selectfeatures/m-p/309778#M28493</guid>
      <dc:creator>KenBuja</dc:creator>
      <dc:date>2015-11-30T13:49:33Z</dc:date>
    </item>
    <item>
      <title>Re: JS-API: featureLayer.selectFeatures</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/js-api-featurelayer-selectfeatures/m-p/309779#M28494</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;Hi, &lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; thank you for the response. Your Suggestion works in the wrong direction.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; I want to select all PolygonFeatures from FLayer located completly in&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; a handdrawn Polygon called geo.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; SPATIAL_REL_WITHIN gives a result if geo is complete located in one Feature&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; of FLayer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;function clipFLayer(geo) {&lt;/P&gt;&lt;P&gt;&amp;nbsp; var selectionQuery = new esri.tasks.Query();&lt;/P&gt;&lt;P&gt;&amp;nbsp; selectionQuery.spatialRelationship = esri.tasks.Query.SPATIAL_REL_WITHIN;&lt;/P&gt;&lt;P&gt;&amp;nbsp; selectionQuery.geometry = geo;&lt;/P&gt;&lt;P&gt;&amp;nbsp; FLayer = new esri.layers.FeatureLayer(theService, {outFields: ["*"]});&lt;/P&gt;&lt;P&gt;&amp;nbsp; FLayer.selectFeatures(selectionQuery,esri.layers.FeatureLayer.SELECTION_NEW);&lt;/P&gt;&lt;P&gt;&amp;nbsp; FLayer.on("selection-complete", findRelatedRecords); &lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Dec 2015 10:09:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/js-api-featurelayer-selectfeatures/m-p/309779#M28494</guid>
      <dc:creator>ChrisPag</dc:creator>
      <dc:date>2015-12-01T10:09:27Z</dc:date>
    </item>
    <item>
      <title>Re: JS-API: featureLayer.selectFeatures</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/js-api-featurelayer-selectfeatures/m-p/309780#M28495</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You're correct. That should have been SPATIAL_REL_CONTAINS&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Dec 2015 13:56:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/js-api-featurelayer-selectfeatures/m-p/309780#M28495</guid>
      <dc:creator>KenBuja</dc:creator>
      <dc:date>2015-12-01T13:56:48Z</dc:date>
    </item>
    <item>
      <title>Re: JS-API: featureLayer.selectFeatures</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/js-api-featurelayer-selectfeatures/m-p/309781#M28496</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you! &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Dec 2015 14:40:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/js-api-featurelayer-selectfeatures/m-p/309781#M28496</guid>
      <dc:creator>ChrisPag</dc:creator>
      <dc:date>2015-12-01T14:40:43Z</dc:date>
    </item>
  </channel>
</rss>

