<?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: Filter ArcGISDynamicMapServiceLayer to get Imges in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/filter-arcgisdynamicmapservicelayer-to-get-imges/m-p/196699#M18228</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Henry,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;No there is no such ability as setting the definition expression by a geometry. But one way to do this is to use the geometry in QueryTask to query for object Ids and then use that to set the layers definition expression. If you are sometimes expecting a million results then you will have to consider the inverse of the queries where clause.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 26 Jun 2019 12:38:58 GMT</pubDate>
    <dc:creator>RobertScheitlin__GISP</dc:creator>
    <dc:date>2019-06-26T12:38:58Z</dc:date>
    <item>
      <title>Filter ArcGISDynamicMapServiceLayer to get Imges</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/filter-arcgisdynamicmapservicelayer-to-get-imges/m-p/196698#M18227</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, I have a points ArcGISDynamicMapServiceLayer. In my JavaScript API code, is it possible to generate map images&amp;nbsp;by using a geometry (such as a polygon) to intersect with the points?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I want is to have a polygon as an input geometry, then get the intersecting points back as &lt;EM&gt;&lt;STRONG&gt;images&lt;/STRONG&gt;&lt;/EM&gt; - not features/graphics (so using a QueryTask or feature service will not satisfy the requirement). I want images and not graphics/features as potentially there could be almost millions of points.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I know you can use layer definitions on&amp;nbsp;&lt;SPAN&gt;ArcGISDynamicMapServiceLayer&lt;/SPAN&gt; but it is essentially a textual where-clause, not a geometry. I am hoping for something like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;var myMapService = new ArcGISDynamicMapServiceLayer(url, {...});&lt;/P&gt;&lt;P&gt;myMapService.setLayerDefinitionWithGeometry(new Polygon(...)); // Similar to&amp;nbsp;&lt;SPAN&gt;setLayerDefinition() but with geometry.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I am using JavaScript API 3.22 with ArcGIS for Server 10.6.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Jun 2019 02:27:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/filter-arcgisdynamicmapservicelayer-to-get-imges/m-p/196698#M18227</guid>
      <dc:creator>HenryKo2</dc:creator>
      <dc:date>2019-06-26T02:27:09Z</dc:date>
    </item>
    <item>
      <title>Re: Filter ArcGISDynamicMapServiceLayer to get Imges</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/filter-arcgisdynamicmapservicelayer-to-get-imges/m-p/196699#M18228</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Henry,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;No there is no such ability as setting the definition expression by a geometry. But one way to do this is to use the geometry in QueryTask to query for object Ids and then use that to set the layers definition expression. If you are sometimes expecting a million results then you will have to consider the inverse of the queries where clause.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Jun 2019 12:38:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/filter-arcgisdynamicmapservicelayer-to-get-imges/m-p/196699#M18228</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2019-06-26T12:38:58Z</dc:date>
    </item>
    <item>
      <title>Re: Filter ArcGISDynamicMapServiceLayer to get Imges</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/filter-arcgisdynamicmapservicelayer-to-get-imges/m-p/196700#M18229</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Robert. Using ObjectID is definitely one option, although I need to find out if there are limits to how long the layer definition string would be and performance. Another option, which will take longer time to develop (we have a very tight deadline), is to do the intersect in the back-end (e.g. GP service), then store the intersected points IDs in a database table against a unique ID (e.g. username with timestamp), join this table with the map service, and filter the map service with definition expression using the unique ID.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Jun 2019 01:14:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/filter-arcgisdynamicmapservicelayer-to-get-imges/m-p/196700#M18229</guid>
      <dc:creator>HenryKo2</dc:creator>
      <dc:date>2019-06-27T01:14:19Z</dc:date>
    </item>
    <item>
      <title>Re: Filter ArcGISDynamicMapServiceLayer to get Imges</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/filter-arcgisdynamicmapservicelayer-to-get-imges/m-p/196701#M18230</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Henry,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; Using a SQL "IN ( OID1, OID2)" Where clause will keep the size of the string down and is more&amp;nbsp;works better than an&amp;nbsp; Where using OR. Just FYI.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Jun 2019 01:23:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/filter-arcgisdynamicmapservicelayer-to-get-imges/m-p/196701#M18230</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2019-06-27T01:23:29Z</dc:date>
    </item>
  </channel>
</rss>

