<?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: Using jQuery for Intersects in ArcGIS REST APIs and Services Questions</title>
    <link>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/using-jquery-for-intersects/m-p/495426#M2370</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I had to convert the json object to an string: geometry: &lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;geometry: JSON.stringify(geo_countries.features[0].geometry)&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 27 Aug 2013 18:23:42 GMT</pubDate>
    <dc:creator>AlexandreDinnouti</dc:creator>
    <dc:date>2013-08-27T18:23:42Z</dc:date>
    <item>
      <title>Using jQuery for Intersects</title>
      <link>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/using-jquery-for-intersects/m-p/495425#M2369</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I am trying to do a intersect between a Polygon and Points, the first step I get the polygon goAjaxCountry() and then with the results I try to get the points inside of the polygon goAjaxPoints(). However the points are not being filtered, I think the problem is with my rest parameters in&amp;nbsp; goAjaxPoints(). Do you have any advice?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt; var url = 'someurl'; var country_response; var points_response;&amp;nbsp; function goAjaxCountry(){&amp;nbsp; restURL = url+'2/query';&amp;nbsp; restParm = { &amp;nbsp; where:"ISO3='MDG'", &amp;nbsp; f:'pjson'&amp;nbsp; };&amp;nbsp;&amp;nbsp; $.post(restURL, restParm, function(data, textStatus) { &amp;nbsp; console.log('goAjaxCountry - ' + textStatus); &amp;nbsp; console.log(data); &amp;nbsp; $('#country_json').html('done'); &amp;nbsp; country_response = data; &amp;nbsp; goAjaxPoints(data)&amp;nbsp; }, "json"); }&amp;nbsp; function goAjaxPoints(geo_country){&amp;nbsp;&amp;nbsp; restURL = restURL = url+ '0/query';&amp;nbsp; restParm = { &amp;nbsp; where:"acq_date='2013-08-20'", &amp;nbsp; f:'pjson', &amp;nbsp; geometry: geo_country.features[0].geometry, &amp;nbsp; geometryType: geo_country.geometryType,&amp;nbsp;&amp;nbsp; &amp;nbsp; spatialRel: 'esriSpatialRelIntersects'&amp;nbsp; };&amp;nbsp;&amp;nbsp;&amp;nbsp; $.post(restURL, restParm, function(data, textStatus) { &amp;nbsp; console.log('goAjaxPoints - ' + textStatus); &amp;nbsp; console.log(data); &amp;nbsp; console.log(data.features.length) &amp;nbsp; points_response = data;&amp;nbsp; }, "json"); }&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;--Alex&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Aug 2013 17:46:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/using-jquery-for-intersects/m-p/495425#M2369</guid>
      <dc:creator>AlexandreDinnouti</dc:creator>
      <dc:date>2013-08-27T17:46:39Z</dc:date>
    </item>
    <item>
      <title>Re: Using jQuery for Intersects</title>
      <link>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/using-jquery-for-intersects/m-p/495426#M2370</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I had to convert the json object to an string: geometry: &lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;geometry: JSON.stringify(geo_countries.features[0].geometry)&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Aug 2013 18:23:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/using-jquery-for-intersects/m-p/495426#M2370</guid>
      <dc:creator>AlexandreDinnouti</dc:creator>
      <dc:date>2013-08-27T18:23:42Z</dc:date>
    </item>
  </channel>
</rss>

