<?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 Online REST Feature Layer Query: specifying distance returns no results?? in ArcGIS Online Developers Questions</title>
    <link>https://community.esri.com/t5/arcgis-online-developers-questions/arcgis-online-rest-feature-layer-query-specifying/m-p/301777#M365</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try changing your Spatial Relationship from Within to Intersects&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 17 Feb 2016 19:59:12 GMT</pubDate>
    <dc:creator>KyleBalke__GISP</dc:creator>
    <dc:date>2016-02-17T19:59:12Z</dc:date>
    <item>
      <title>ArcGIS Online REST Feature Layer Query: specifying distance returns no results??</title>
      <link>https://community.esri.com/t5/arcgis-online-developers-questions/arcgis-online-rest-feature-layer-query-specifying/m-p/301776#M364</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am trying to query against this public feature service (point geometry):&amp;nbsp; &lt;A href="http://services2.arcgis.com/Gypl21NmiWS1cM7h/ArcGIS/rest/services/TrafficCounts/FeatureServer/0" title="http://services2.arcgis.com/Gypl21NmiWS1cM7h/ArcGIS/rest/services/TrafficCounts/FeatureServer/0"&gt;http://services2.arcgis.com/Gypl21NmiWS1cM7h/ArcGIS/rest/services/TrafficCounts/FeatureServer/0&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I input the exact coordinates for a station, that station is returned:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://services2.arcgis.com/Gypl21NmiWS1cM7h/arcgis/rest/services/TrafficCounts/FeatureServer/0/query?geometry=-9350573.1647%2C+4270275.5371999964%0D%0A&amp;amp;geometryType=esriGeometryPoint&amp;amp;geohash=&amp;amp;inSR=3857&amp;amp;spatialRel=esriSpatialRelWithin&amp;amp;distance=&amp;amp;units=esriSRUnit_Meter&amp;amp;outFields=*&amp;amp;returnGeometry=true&amp;amp;" title="http://services2.arcgis.com/Gypl21NmiWS1cM7h/arcgis/rest/services/TrafficCounts/FeatureServer/0/query?geometry=-9350573.1647%2C+4270275.5371999964%0D%0A&amp;amp;geometryType=esriGeometryPoint&amp;amp;geohash=&amp;amp;inSR=3857&amp;amp;spatialRel=esriSpatialRelWithin&amp;amp;distance=&amp;amp;units=esriSRUnit_Meter&amp;amp;outFields=*&amp;amp;returnGeometry=true&amp;amp;"&gt;http://services2.arcgis.com/Gypl21NmiWS1cM7h/arcgis/rest/services/TrafficCounts/FeatureServer/0/query?geometry=-9350573.…&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But if I add 2000 to the 'distance' parameter, I get no results:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://services2.arcgis.com/Gypl21NmiWS1cM7h/arcgis/rest/services/TrafficCounts/FeatureServer/0/query?geometry=-9350573.1647%2C+4270275.5371999964%0D%0A&amp;amp;geometryType=esriGeometryPoint&amp;amp;geohash=&amp;amp;inSR=3857&amp;amp;spatialRel=esriSpatialRelWithin&amp;amp;distance=2000&amp;amp;units=esriSRUnit_Meter&amp;amp;outFields=*&amp;amp;returnGeometry=true&amp;amp;" title="http://services2.arcgis.com/Gypl21NmiWS1cM7h/arcgis/rest/services/TrafficCounts/FeatureServer/0/query?geometry=-9350573.1647%2C+4270275.5371999964%0D%0A&amp;amp;geometryType=esriGeometryPoint&amp;amp;geohash=&amp;amp;inSR=3857&amp;amp;spatialRel=esriSpatialRelWithin&amp;amp;distance=2000&amp;amp;units=esriSRUnit_Meter&amp;amp;outFields=*&amp;amp;returnGeometry=true&amp;amp;"&gt;http://services2.arcgis.com/Gypl21NmiWS1cM7h/arcgis/rest/services/TrafficCounts/FeatureServer/0/query?geometry=-9350573.…&lt;/A&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've tried this with WKID &lt;SPAN style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;102100&amp;nbsp; as well.&amp;nbsp; Same behavior.&amp;nbsp; &lt;/SPAN&gt;There are other stations within 2000 meters of that station, as shown below.&amp;nbsp; Any idea what is causing this?&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.JPG" class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/183421_Capture.JPG" style="width: 620px; height: 617px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Feb 2016 19:48:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-developers-questions/arcgis-online-rest-feature-layer-query-specifying/m-p/301776#M364</guid>
      <dc:creator>AZendel</dc:creator>
      <dc:date>2016-02-17T19:48:55Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS Online REST Feature Layer Query: specifying distance returns no results??</title>
      <link>https://community.esri.com/t5/arcgis-online-developers-questions/arcgis-online-rest-feature-layer-query-specifying/m-p/301777#M365</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try changing your Spatial Relationship from Within to Intersects&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Feb 2016 19:59:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-developers-questions/arcgis-online-rest-feature-layer-query-specifying/m-p/301777#M365</guid>
      <dc:creator>KyleBalke__GISP</dc:creator>
      <dc:date>2016-02-17T19:59:12Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS Online REST Feature Layer Query: specifying distance returns no results??</title>
      <link>https://community.esri.com/t5/arcgis-online-developers-questions/arcgis-online-rest-feature-layer-query-specifying/m-p/301778#M366</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That did the trick.&amp;nbsp; I was thinking that the "within" spatial relationship option that maps to esriSpatialRelWithin meant "are within distance of" like the option in the "Select by location" dialog in ArcMap.&amp;nbsp; As did one of my co-workers.&amp;nbsp; If any ESRI folks read this, consider changing "within" to "contained within" on the HTML form.&amp;nbsp; I realize that changing esriSpatialRelWithin to something else will break code all over the world and is therefore infeasible.&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Feb 2016 20:08:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-developers-questions/arcgis-online-rest-feature-layer-query-specifying/m-p/301778#M366</guid>
      <dc:creator>AZendel</dc:creator>
      <dc:date>2016-02-17T20:08:56Z</dc:date>
    </item>
  </channel>
</rss>

