<?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: ArcGIS Rest API - Query(Feature Service/Layer) - Spatial Query Not Working in ArcGIS Online Questions</title>
    <link>https://community.esri.com/t5/arcgis-online-questions/arcgis-rest-api-query-feature-service-layer/m-p/1037106#M38956</link>
    <description>&lt;P&gt;1.&amp;nbsp; What is the coordinate system of the service?&amp;nbsp; Have you tried using the same coordinate type (i.e. meters)?&lt;/P&gt;&lt;P&gt;2.&amp;nbsp; What is the geometry type of the service? i.e. polygon&amp;nbsp; If you are working with polygons or lines, have you tried changing the Spatial Relationship to &lt;STRONG&gt;Intersects&lt;/STRONG&gt;?&lt;/P&gt;</description>
    <pubDate>Tue, 16 Mar 2021 13:34:08 GMT</pubDate>
    <dc:creator>JakeSkinner</dc:creator>
    <dc:date>2021-03-16T13:34:08Z</dc:date>
    <item>
      <title>ArcGIS Rest API - Query(Feature Service/Layer) - Spatial Query Not Working</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/arcgis-rest-api-query-feature-service-layer/m-p/1037073#M38948</link>
      <description>&lt;P&gt;Hey,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm looking to pull up the records of any survey123 reports that fall within 100m of a certain location. I can't seem to get the query to work. I insert a location that has one record less than a meter away and the query returns nothing. It isn't a public feature service but here's a screenshot of what I've entered:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Careen_Jonathan_0-1615895883393.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/8577i851DE381CBE25C4A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Careen_Jonathan_0-1615895883393.png" alt="Careen_Jonathan_0-1615895883393.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I've also flipped the coordinates around and still no luck.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Jon&lt;/P&gt;</description>
      <pubDate>Tue, 16 Mar 2021 11:59:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/arcgis-rest-api-query-feature-service-layer/m-p/1037073#M38948</guid>
      <dc:creator>Jonathan1517</dc:creator>
      <dc:date>2021-03-16T11:59:13Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS Rest API - Query(Feature Service/Layer) - Spatial Query Not Working</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/arcgis-rest-api-query-feature-service-layer/m-p/1037087#M38951</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/101734"&gt;@Jonathan1517&lt;/a&gt; , what is the coordinate system of your service?&amp;nbsp; The coordinates you are specifying are WGS 84.&amp;nbsp; However, these will default to whatever your coordinate system of your service is in.&amp;nbsp; Try specifying &lt;STRONG&gt;4326&lt;/STRONG&gt; for the &lt;STRONG&gt;Input&amp;nbsp; Spatial Reference&lt;/STRONG&gt; parameter.&lt;/P&gt;</description>
      <pubDate>Tue, 16 Mar 2021 12:40:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/arcgis-rest-api-query-feature-service-layer/m-p/1037087#M38951</guid>
      <dc:creator>JakeSkinner</dc:creator>
      <dc:date>2021-03-16T12:40:07Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS Rest API - Query(Feature Service/Layer) - Spatial Query Not Working</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/arcgis-rest-api-query-feature-service-layer/m-p/1037101#M38954</link>
      <description>&lt;P&gt;Hey&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/10527"&gt;@JakeSkinner&lt;/a&gt;, I forgot to fill that in in the screenshot but I do have that filled and also ended up getting no results.&lt;/P&gt;</description>
      <pubDate>Tue, 16 Mar 2021 13:17:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/arcgis-rest-api-query-feature-service-layer/m-p/1037101#M38954</guid>
      <dc:creator>Jonathan1517</dc:creator>
      <dc:date>2021-03-16T13:17:41Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS Rest API - Query(Feature Service/Layer) - Spatial Query Not Working</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/arcgis-rest-api-query-feature-service-layer/m-p/1037106#M38956</link>
      <description>&lt;P&gt;1.&amp;nbsp; What is the coordinate system of the service?&amp;nbsp; Have you tried using the same coordinate type (i.e. meters)?&lt;/P&gt;&lt;P&gt;2.&amp;nbsp; What is the geometry type of the service? i.e. polygon&amp;nbsp; If you are working with polygons or lines, have you tried changing the Spatial Relationship to &lt;STRONG&gt;Intersects&lt;/STRONG&gt;?&lt;/P&gt;</description>
      <pubDate>Tue, 16 Mar 2021 13:34:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/arcgis-rest-api-query-feature-service-layer/m-p/1037106#M38956</guid>
      <dc:creator>JakeSkinner</dc:creator>
      <dc:date>2021-03-16T13:34:08Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS Rest API - Query(Feature Service/Layer) - Spatial Query Not Working</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/arcgis-rest-api-query-feature-service-layer/m-p/1037118#M38957</link>
      <description>&lt;P&gt;1.&amp;nbsp;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Careen_Jonathan_0-1615903315351.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/8583i35AC2514F8D5F638/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Careen_Jonathan_0-1615903315351.png" alt="Careen_Jonathan_0-1615903315351.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I'm gonna try a different coordinate system here now to see if that works.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;2. It's just a point layer. I did some searching around and found that the within works for points.&lt;/P&gt;</description>
      <pubDate>Tue, 16 Mar 2021 14:04:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/arcgis-rest-api-query-feature-service-layer/m-p/1037118#M38957</guid>
      <dc:creator>Jonathan1517</dc:creator>
      <dc:date>2021-03-16T14:04:13Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS Rest API - Query(Feature Service/Layer) - Spatial Query Not Working</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/arcgis-rest-api-query-feature-service-layer/m-p/1037129#M38960</link>
      <description>&lt;P&gt;Here is a service you can test with:&lt;/P&gt;&lt;P&gt;&lt;A href="https://sampleserver6.arcgisonline.com/arcgis/rest/services/DamageAssessment/FeatureServer/0/query" target="_blank"&gt;https://sampleserver6.arcgisonline.com/arcgis/rest/services/DamageAssessment/FeatureServer/0/query&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Input Geometry:&amp;nbsp; -100.3858152,38.4981439&lt;/P&gt;&lt;P&gt;Spatial Reference:&amp;nbsp; 4326&lt;/P&gt;&lt;P&gt;Distance:&amp;nbsp; 2000&lt;/P&gt;&lt;P&gt;Units:&amp;nbsp; Meters&lt;/P&gt;&lt;P&gt;This should return 2 points.&lt;/P&gt;</description>
      <pubDate>Tue, 16 Mar 2021 14:18:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/arcgis-rest-api-query-feature-service-layer/m-p/1037129#M38960</guid>
      <dc:creator>JakeSkinner</dc:creator>
      <dc:date>2021-03-16T14:18:43Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS Rest API - Query(Feature Service/Layer) - Spatial Query Not Working</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/arcgis-rest-api-query-feature-service-layer/m-p/1037165#M38963</link>
      <description>&lt;P&gt;Hey Jake,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I got it to work, I originally jumped straight to using Within but when I did that sample service you had there I left it on Intersects and got a count of 2. When I changed it to Within it came back with no records. So I switched mine to Intersects and worked fine. I should have gave it a go without looking too far into it first lol. Thanks for all the help!&lt;/P&gt;</description>
      <pubDate>Tue, 16 Mar 2021 15:41:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/arcgis-rest-api-query-feature-service-layer/m-p/1037165#M38963</guid>
      <dc:creator>Jonathan1517</dc:creator>
      <dc:date>2021-03-16T15:41:45Z</dc:date>
    </item>
  </channel>
</rss>

