<?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 ArcGIS Rest API - Query(Feature Service) - Spatial Query Returns too Many Records in ArcGIS Online Questions</title>
    <link>https://community.esri.com/t5/arcgis-online-questions/arcgis-rest-api-query-feature-service-spatial/m-p/1557042#M62285</link>
    <description>&lt;P&gt;I am having trouble with the query rest endpoint of a feature service. I confirmed in ArcGIS Desktop that the layer being searched should have only 1 feature that intersects with the point but the query is returning 2 records. The other record is close by but does not overlap the one that should be selected. They don't even share a common boundary.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried reducing the distance but anything smaller than 0.01 will result in no feature getting selected.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="MichaelWen_Timmons_0-1731104055075.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/119204iAC056AC5921C73E1/image-size/medium?v=v2&amp;amp;px=400" role="button" title="MichaelWen_Timmons_0-1731104055075.png" alt="MichaelWen_Timmons_0-1731104055075.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 08 Nov 2024 22:18:25 GMT</pubDate>
    <dc:creator>MichaelWen_Timmons</dc:creator>
    <dc:date>2024-11-08T22:18:25Z</dc:date>
    <item>
      <title>ArcGIS Rest API - Query(Feature Service) - Spatial Query Returns too Many Records</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/arcgis-rest-api-query-feature-service-spatial/m-p/1557042#M62285</link>
      <description>&lt;P&gt;I am having trouble with the query rest endpoint of a feature service. I confirmed in ArcGIS Desktop that the layer being searched should have only 1 feature that intersects with the point but the query is returning 2 records. The other record is close by but does not overlap the one that should be selected. They don't even share a common boundary.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried reducing the distance but anything smaller than 0.01 will result in no feature getting selected.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="MichaelWen_Timmons_0-1731104055075.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/119204iAC056AC5921C73E1/image-size/medium?v=v2&amp;amp;px=400" role="button" title="MichaelWen_Timmons_0-1731104055075.png" alt="MichaelWen_Timmons_0-1731104055075.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 08 Nov 2024 22:18:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/arcgis-rest-api-query-feature-service-spatial/m-p/1557042#M62285</guid>
      <dc:creator>MichaelWen_Timmons</dc:creator>
      <dc:date>2024-11-08T22:18:25Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS Rest API - Query(Feature Service) - Spatial Query Returns too Many Records</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/arcgis-rest-api-query-feature-service-spatial/m-p/1558099#M62336</link>
      <description>&lt;P&gt;More details -&amp;nbsp;&lt;/P&gt;&lt;P&gt;I ran the same query in ArcGIS Pro using the same project used to publish the map service and it did not select multiple records.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I played with different 'Spatial Relationship' and 'Distance' settings on the REST endpoint and could only get either 0 or 2 records returned. The correct result is 1 record.&lt;/P&gt;</description>
      <pubDate>Wed, 13 Nov 2024 16:17:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/arcgis-rest-api-query-feature-service-spatial/m-p/1558099#M62336</guid>
      <dc:creator>MichaelWen_Timmons</dc:creator>
      <dc:date>2024-11-13T16:17:36Z</dc:date>
    </item>
  </channel>
</rss>

