<?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: How to query polygons of a layer which do not intersect polygons of another layer using arcgis server javascript api? in ArcGIS Server with JavaScript API Questions</title>
    <link>https://community.esri.com/t5/arcgis-server-with-javascript-api-questions/how-to-query-polygons-of-a-layer-which-do-not/m-p/806057#M306</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Vara,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;This is a big task to do on the web. Normally large spatial queries like this against whole featurelayers is best suited from the desktop environment. If for some reason you have to do this in a web app the performance is going to be really bad. You would have to first merge all the polygons from the first layer into one multipart polygon since geometry operations work on a one geometry to one geometry basis. Then execute your spatial query for intersects and query just for the IDs of the features that do intersect once you have that result you do a SQL query with an expression like "NOT ObjectID IN (' your array or single OID')".&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 30 Mar 2019 11:54:40 GMT</pubDate>
    <dc:creator>RobertScheitlin__GISP</dc:creator>
    <dc:date>2019-03-30T11:54:40Z</dc:date>
    <item>
      <title>How to query polygons of a layer which do not intersect polygons of another layer using arcgis server javascript api?</title>
      <link>https://community.esri.com/t5/arcgis-server-with-javascript-api-questions/how-to-query-polygons-of-a-layer-which-do-not/m-p/806056#M305</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Team,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We have two polygon feature layers with huge number of polygons. we need to query polygons of layer1 which do not intersect with any of polygons of layer2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could some one please tell me how to that using ArcGIS Server JS API 3.28&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.esri.com/migrated-users/3101"&gt;Robert Scheitlin, GISP&lt;/A&gt;‌, could you please give some insights. Thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With Regards,&lt;/P&gt;&lt;P&gt;Vara Prasad&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Mar 2019 16:34:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-server-with-javascript-api-questions/how-to-query-polygons-of-a-layer-which-do-not/m-p/806056#M305</guid>
      <dc:creator>Vara_PrasadM_S</dc:creator>
      <dc:date>2019-03-29T16:34:05Z</dc:date>
    </item>
    <item>
      <title>Re: How to query polygons of a layer which do not intersect polygons of another layer using arcgis server javascript api?</title>
      <link>https://community.esri.com/t5/arcgis-server-with-javascript-api-questions/how-to-query-polygons-of-a-layer-which-do-not/m-p/806057#M306</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Vara,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;This is a big task to do on the web. Normally large spatial queries like this against whole featurelayers is best suited from the desktop environment. If for some reason you have to do this in a web app the performance is going to be really bad. You would have to first merge all the polygons from the first layer into one multipart polygon since geometry operations work on a one geometry to one geometry basis. Then execute your spatial query for intersects and query just for the IDs of the features that do intersect once you have that result you do a SQL query with an expression like "NOT ObjectID IN (' your array or single OID')".&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 30 Mar 2019 11:54:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-server-with-javascript-api-questions/how-to-query-polygons-of-a-layer-which-do-not/m-p/806057#M306</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2019-03-30T11:54:40Z</dc:date>
    </item>
    <item>
      <title>Re: How to query polygons of a layer which do not intersect polygons of another layer using arcgis server javascript api?</title>
      <link>https://community.esri.com/t5/arcgis-server-with-javascript-api-questions/how-to-query-polygons-of-a-layer-which-do-not/m-p/806058#M307</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Robert,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks a lot!&lt;/P&gt;&lt;P&gt;I have same approach in my mind. I was just wondering if there is any other easy/better performance approach. Thanks for the information. Now I implemented the same.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With Regards,&lt;/P&gt;&lt;P&gt;Vara Prasad&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Apr 2019 08:28:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-server-with-javascript-api-questions/how-to-query-polygons-of-a-layer-which-do-not/m-p/806058#M307</guid>
      <dc:creator>Vara_PrasadM_S</dc:creator>
      <dc:date>2019-04-01T08:28:37Z</dc:date>
    </item>
    <item>
      <title>Re: How to query polygons of a layer which do not intersect polygons of another layer using arcgis server javascript api?</title>
      <link>https://community.esri.com/t5/arcgis-server-with-javascript-api-questions/how-to-query-polygons-of-a-layer-which-do-not/m-p/806059#M308</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;A _jive_internal="true" class="" data-containerid="-1" data-containertype="-1" data-objectid="3101" data-objecttype="3" href="https://community.esri.com/people/rscheitlin"&gt;Robert Scheitlin, GISP&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In below sentence you mentioned multipart polygon, is it same as creating a geometry by making union of all geometries of the layer? I did Union. Will it be same?&lt;/P&gt;&lt;P&gt;&amp;gt;&amp;gt;&lt;/P&gt;&lt;P&gt;"You would have to first merge all the polygons from the first layer into one multipart polygon since geometry operations work on a one geometry to one geometry basis"&lt;/P&gt;&lt;P&gt;If not, could you please let me know how can we create a multipart polygon?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;&lt;P&gt;Vara Prasad&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Apr 2019 06:10:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-server-with-javascript-api-questions/how-to-query-polygons-of-a-layer-which-do-not/m-p/806059#M308</guid>
      <dc:creator>Vara_PrasadM_S</dc:creator>
      <dc:date>2019-04-02T06:10:42Z</dc:date>
    </item>
    <item>
      <title>Re: How to query polygons of a layer which do not intersect polygons of another layer using arcgis server javascript api?</title>
      <link>https://community.esri.com/t5/arcgis-server-with-javascript-api-questions/how-to-query-polygons-of-a-layer-which-do-not/m-p/806060#M309</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;'dissolve' based on an attribute creates multipart features&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Apr 2019 09:33:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-server-with-javascript-api-questions/how-to-query-polygons-of-a-layer-which-do-not/m-p/806060#M309</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2019-04-02T09:33:08Z</dc:date>
    </item>
  </channel>
</rss>

