<?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: Query Polygon Intersection, exclude adjacent polygons or slight overlap? in ArcGIS REST APIs and Services Questions</title>
    <link>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/query-polygon-intersection-exclude-adjacent/m-p/1206493#M4257</link>
    <description>&lt;P&gt;I solved this by first using the&amp;nbsp;&lt;EM&gt;Buffer&lt;/EM&gt; geometry service with a negative distance to slightly reduce the size of the polygon. Then I use that result in my query. I would rather get it all done with one API call but if that's impossible, this is a good solution.&lt;/P&gt;</description>
    <pubDate>Thu, 25 Aug 2022 19:21:45 GMT</pubDate>
    <dc:creator>JasonWood</dc:creator>
    <dc:date>2022-08-25T19:21:45Z</dc:date>
    <item>
      <title>Query Polygon Intersection, exclude adjacent polygons or slight overlap?</title>
      <link>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/query-polygon-intersection-exclude-adjacent/m-p/1206001#M4255</link>
      <description>&lt;P&gt;Please refer to this query result:&lt;/P&gt;&lt;P&gt;&lt;A href="https://services2.arcgis.com/EFg39h3DBNzpxORa/ArcGIS/rest/services/Riverview_Zoning/FeatureServer/1/query?where=&amp;amp;objectIds=&amp;amp;time=&amp;amp;geometry=%7B%22rings%22%3A%5B%5B%5B2632869.44998882%2C7451399.60001902%5D%2C%5B2632863.4499898%2C7451422.60001523%5D%2C%5B2632896.49998436%2C7451431.25001381%5D%2C%5B2632902.54998337%2C7451408.30001758%5D%2C%5B2632869.44998882%2C7451399.60001902%5D%5D%5D%7D&amp;amp;geometryType=esriGeometryPolygon&amp;amp;inSR=&amp;amp;spatialRel=esriSpatialRelIntersects&amp;amp;resultType=none&amp;amp;distance=0.0&amp;amp;units=esriSRUnit_Meter&amp;amp;relationParam=&amp;amp;returnGeodetic=false&amp;amp;outFields=*&amp;amp;returnGeometry=false&amp;amp;returnCentroid=false&amp;amp;featureEncoding=esriDefault&amp;amp;multipatchOption=xyFootprint&amp;amp;maxAllowableOffset=&amp;amp;geometryPrecision=&amp;amp;outSR=&amp;amp;defaultSR=&amp;amp;datumTransformation=&amp;amp;applyVCSProjection=false&amp;amp;returnIdsOnly=false&amp;amp;returnUniqueIdsOnly=false&amp;amp;returnCountOnly=false&amp;amp;returnExtentOnly=false&amp;amp;returnQueryGeometry=false&amp;amp;returnDistinctValues=false&amp;amp;cacheHint=false&amp;amp;returnZ=false&amp;amp;returnM=false&amp;amp;returnExceededLimitFeatures=true&amp;amp;sqlFormat=none&amp;amp;f=html" target="_blank"&gt;https://services2.arcgis.com/EFg39h3DBNzpxORa/ArcGIS/rest/services/Riverview_Zoning/FeatureServer/1/query?where=&amp;amp;objectIds=&amp;amp;time=&amp;amp;geometry=%7B%22rings%22%3A%5B%5B%5B2632869.44998882%2C7451399.60001902%5D%2C%5B2632863.4499898%2C7451422.60001523%5D%2C%5B2632896.49998436%2C7451431.25001381%5D%2C%5B2632902.54998337%2C7451408.30001758%5D%2C%5B2632869.44998882%2C7451399.60001902%5D%5D%5D%7D&amp;amp;geometryType=esriGeometryPolygon&amp;amp;inSR=&amp;amp;spatialRel=esriSpatialRelIntersects&amp;amp;resultType=none&amp;amp;distance=0.0&amp;amp;units=esriSRUnit_Meter&amp;amp;relationParam=&amp;amp;returnGeodetic=false&amp;amp;outFields=*&amp;amp;returnGeometry=false&amp;amp;returnCentroid=false&amp;amp;featureEncoding=esriDefault&amp;amp;multipatchOption=xyFootprint&amp;amp;maxAllowableOffset=&amp;amp;geometryPrecision=&amp;amp;outSR=&amp;amp;defaultSR=&amp;amp;datumTransformation=&amp;amp;applyVCSProjection=false&amp;amp;returnIdsOnly=false&amp;amp;returnUniqueIdsOnly=false&amp;amp;returnCountOnly=false&amp;amp;returnExtentOnly=false&amp;amp;returnQueryGeometry=false&amp;amp;returnDistinctValues=false&amp;amp;cacheHint=false&amp;amp;returnZ=false&amp;amp;returnM=false&amp;amp;returnExceededLimitFeatures=true&amp;amp;sqlFormat=none&amp;amp;f=html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;As you can see, this returns 2 polygons.&lt;/P&gt;&lt;P&gt;The input geometry is represented by the teal rectangle in this picture. The results are the yellow polygon and the blue polygon.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="JasonWood_1-1661366781570.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/49335iC29FECB7D10E0C8E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="JasonWood_1-1661366781570.png" alt="JasonWood_1-1661366781570.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I do not want the blue polygon returned as it does not extend inside my input geometry.&lt;/P&gt;&lt;P&gt;I tried setting the distance to -1 meters. I thought this would shrink the input geometry by 1m and therefore effectively require any query matches to extend at least 1m inside the provided boundary, but negative numbers in distance do not seem to have any effect.&lt;/P&gt;&lt;P&gt;Is there any way to adjust my query so that it excludes such matches?&lt;/P&gt;</description>
      <pubDate>Wed, 24 Aug 2022 18:47:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/query-polygon-intersection-exclude-adjacent/m-p/1206001#M4255</guid>
      <dc:creator>JasonWood</dc:creator>
      <dc:date>2022-08-24T18:47:21Z</dc:date>
    </item>
    <item>
      <title>Re: Query Polygon Intersection, exclude adjacent polygons or slight overlap?</title>
      <link>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/query-polygon-intersection-exclude-adjacent/m-p/1206493#M4257</link>
      <description>&lt;P&gt;I solved this by first using the&amp;nbsp;&lt;EM&gt;Buffer&lt;/EM&gt; geometry service with a negative distance to slightly reduce the size of the polygon. Then I use that result in my query. I would rather get it all done with one API call but if that's impossible, this is a good solution.&lt;/P&gt;</description>
      <pubDate>Thu, 25 Aug 2022 19:21:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/query-polygon-intersection-exclude-adjacent/m-p/1206493#M4257</guid>
      <dc:creator>JasonWood</dc:creator>
      <dc:date>2022-08-25T19:21:45Z</dc:date>
    </item>
    <item>
      <title>Re: Query Polygon Intersection, exclude adjacent polygons or slight overlap?</title>
      <link>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/query-polygon-intersection-exclude-adjacent/m-p/1269250#M4410</link>
      <description>&lt;P&gt;hi. i've come across the same issue. and i would filter those queried features. like this :&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;const&lt;/SPAN&gt; &lt;SPAN&gt;realFeatures&lt;/SPAN&gt;&lt;SPAN&gt; = &lt;/SPAN&gt;&lt;SPAN&gt;features&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;filter&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ({ &lt;/SPAN&gt;&lt;SPAN&gt;geometry&lt;/SPAN&gt;&lt;SPAN&gt; }) &lt;/SPAN&gt;&lt;SPAN&gt;=&amp;gt;&lt;/SPAN&gt;&lt;SPAN&gt; !&lt;/SPAN&gt;&lt;SPAN&gt;geometryEngine&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;touches&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;queryGeometry&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;geometry&lt;/SPAN&gt;&lt;SPAN&gt;),&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; );&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Sun, 19 Mar 2023 10:21:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/query-polygon-intersection-exclude-adjacent/m-p/1269250#M4410</guid>
      <dc:creator>liqiuping</dc:creator>
      <dc:date>2023-03-19T10:21:36Z</dc:date>
    </item>
  </channel>
</rss>

