<?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: Intersect  for javascript in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/intersect-for-javascript/m-p/709488#M65985</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ana,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if you have got your polygon and point geometry object, then you can use contains on your polygon geometry.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://developers.arcgis.com/javascript/jsapi/polygon-amd.html#contains" title="https://developers.arcgis.com/javascript/jsapi/polygon-amd.html#contains"&gt;polygon-amd | API Reference | ArcGIS API for JavaScript&lt;/A&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 29 Aug 2014 01:52:40 GMT</pubDate>
    <dc:creator>RiyasDeen</dc:creator>
    <dc:date>2014-08-29T01:52:40Z</dc:date>
    <item>
      <title>Intersect  for javascript</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/intersect-for-javascript/m-p/709485#M65982</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi i need examples of Intersect method in javascript&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Aug 2014 20:31:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/intersect-for-javascript/m-p/709485#M65982</guid>
      <dc:creator>ana_salgado</dc:creator>
      <dc:date>2014-08-28T20:31:10Z</dc:date>
    </item>
    <item>
      <title>Re: Intersect  for javascript</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/intersect-for-javascript/m-p/709486#M65983</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here is an example from ESRI server. I hope it helps. &lt;A href="http://sampleserver3.arcgisonline.com/arcgis/rest/services/Geometry/GeometryServer/intersect?sr=4269&amp;amp;geometries={%22geometryType%22+%3A+%22esriGeometryPolygon%22%2C%22spatialReference%22+%3A{%22wkid%22+%3A+4269}%2C%22geometries%22+%3A[{%22rings%22+%3A+[[[-75.48928066099995%2C39.714858219000064]%2C[-75.4759742679999%2C39.720084384000074]%2C[-75.47476845699993%2C39.741832093000085]%2C[-75.46039411899994%2C39.763362027000085]%2C[-74.73882472699995%2C40.17772564400008]%2C[-74.9166543419999%2C39.17063854200006]%2C[-75.01440707699993%2C39.198363837000045]%2C[-75.11995811199995%2C39.18469178100008]%2C[-75.4156722749999%2C39.374971842000036]%2C[-75.55276303999995%2C39.49051430700007]%2C[-75.5166888839999%2C39.56656841600005]%2C[-75.57023418699993%2C39.61773496300009]%2C[-75.48928066099995%2C39.714858219000064]]]}]}&amp;amp;geometry={%22geometryType%22+%3A+%22esriGeometryPolygon%22%2C%22spatialReference%22+%3A{%22wkid%22+%3A+4269}%2C%22geometry%22+%3A{%22rings%22+%3A+[[[-75.48928066099995%2C39.714858219000064]%2C[-75.4759742679999%2C39.720084384000074]%2C[-75.47476845699993%2C39.741832093000085]%2C[-75.46039411899994%2C39.763362027000085]%2C[-74.73882472699995%2C40.17772564400008]%2C[-75.48928066099995%2C39.714858219000064]]]}}&amp;amp;f=html" title="http://sampleserver3.arcgisonline.com/arcgis/rest/services/Geometry/GeometryServer/intersect?sr=4269&amp;amp;geometries={%22geometryType%22+%3A+%22esriGeometryPolygon%22%2C%22spatialReference%22+%3A{%22wkid%22+%3A+4269}%2C%22geometries%22+%3A[{%22rings%22+%3A+[[[-75.48928066099995%2C39.714858219000064]%2C[-75.4759742679999%2C39.720084384000074]%2C[-75.47476845699993%2C39.741832093000085]%2C[-75.46039411899994%2C39.763362027000085]%2C[-74.73882472699995%2C40.17772564400008]%2C[-74.9166543419999%2C39.17063854200006]%2C[-75.01440707699993%2C39.198363837000045]%2C[-75.11995811199995%2C39.18469178100008]%2C[-75.4156722749999%2C39.374971842000036]%2C[-75.55276303999995%2C39.49051430700007]%2C[-75.5166888839999%2C39.56656841600005]%2C[-75.57023418699993%2C39.61773496300009]%2C[-75.48928066099995%2C39.714858219000064]]]}]}&amp;amp;geometry={%22geometryType%22+%3A+%22esriGeometryPolygon%22%2C%22spatialReference%22+%3A{%22wkid%22+%3A+4269}%2C%22geometry%22+%3A{%22rings%22+%3A+[[[-75.48928066099995%2C39.714858219000064]%2C[-75.4759742679999%2C39.720084384000074]%2C[-75.47476845699993%2C39.741832093000085]%2C[-75.46039411899994%2C39.763362027000085]%2C[-74.73882472699995%2C40.17772564400008]%2C[-75.48928066099995%2C39.714858219000064]]]}}&amp;amp;f=html"&gt;Intersect (Geometry)&lt;/A&gt;&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Aug 2014 21:20:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/intersect-for-javascript/m-p/709486#M65983</guid>
      <dc:creator>GorkemTolan</dc:creator>
      <dc:date>2014-08-28T21:20:34Z</dc:date>
    </item>
    <item>
      <title>Re: Intersect  for javascript</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/intersect-for-javascript/m-p/709487#M65984</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hello, thank you very much for responding, I have a problem I want to insert a point on the map, that point should make Intersect a service that has a polygon maps and see that point come into polygons. want to know a little more of the Intersect method &lt;IMG src="https://community.esri.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Aug 2014 21:32:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/intersect-for-javascript/m-p/709487#M65984</guid>
      <dc:creator>ana_salgado</dc:creator>
      <dc:date>2014-08-28T21:32:22Z</dc:date>
    </item>
    <item>
      <title>Re: Intersect  for javascript</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/intersect-for-javascript/m-p/709488#M65985</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ana,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if you have got your polygon and point geometry object, then you can use contains on your polygon geometry.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://developers.arcgis.com/javascript/jsapi/polygon-amd.html#contains" title="https://developers.arcgis.com/javascript/jsapi/polygon-amd.html#contains"&gt;polygon-amd | API Reference | ArcGIS API for JavaScript&lt;/A&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Aug 2014 01:52:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/intersect-for-javascript/m-p/709488#M65985</guid>
      <dc:creator>RiyasDeen</dc:creator>
      <dc:date>2014-08-29T01:52:40Z</dc:date>
    </item>
    <item>
      <title>Re: Intersect  for javascript</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/intersect-for-javascript/m-p/709489#M65986</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I can suggest two ways one of the is if you have a polygon as a geometry in the map then you may use polygon.contains(point) as long as they are in the same spatial reference, it's a synchronous method, which means process wait until it completes. The other option is GeometryService.instersect([polygon], point, successFunction, errorFunction)&lt;/P&gt;&lt;P&gt;GeometryService allows you to intersect multiple geometries to a geometry in the same spatial reference. This method is a asynchronous method, which means the process will be done in the background. Once it completes calls the successFunction, if there is no error. I'm assuming the map service's geometry type is polygon. So another option I can think is Identify the point in the polygon. If it returns with results then the point intersects to the polygon. &lt;/P&gt;&lt;P&gt;&lt;SPAN class="kwd" style="color: #000088;"&gt;var&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt; identify &lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #666600;"&gt;=&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN class="kwd" style="color: #000088;"&gt;new&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN class="typ" style="color: #000000;"&gt;IdentifyTask&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #666600;"&gt;(url&lt;/SPAN&gt;&lt;SPAN class="str" style="color: #999999;"&gt;);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="pln" style="color: #000000;"&gt;identifyParams&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #666600;"&gt;.&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt;geometry &lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #666600;"&gt;=&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt; evt&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #666600;"&gt;.&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt;mapPoint&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #666600;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="pun" style="color: #666600;"&gt;&lt;SPAN class="pln" style="color: #000000;"&gt;identifyParams&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #666600;"&gt;.&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt;mapExtent &lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #666600;"&gt;=&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt; map&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #666600;"&gt;.&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt;extent&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #666600;"&gt;;&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt;&lt;BR /&gt;identify&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #666600;"&gt;.&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt;execute&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #666600;"&gt;(&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt;identifyParams, successFunction, errorFunction&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #666600;"&gt;);&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="pun" style="color: #666600;"&gt;&lt;SPAN class="pun" style="color: #666600;"&gt;I hope it helps. &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Aug 2014 03:48:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/intersect-for-javascript/m-p/709489#M65986</guid>
      <dc:creator>GorkemTolan</dc:creator>
      <dc:date>2014-08-29T03:48:08Z</dc:date>
    </item>
    <item>
      <title>Re: Intersect  for javascript</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/intersect-for-javascript/m-p/709490#M65987</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;yes, I'll do it with GeometryService, but my polygons are a map service I want to know how to put this in my function I have something like gs.intersect &lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; var gs = new esri.tasks.GeometryService("&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://tasks.arcgisonline.com/ArcGIS/rest/services/Geometry/GeometryServer" rel="nofollow" target="_blank"&gt;http://tasks.arcgisonline.com/ArcGIS/rest/services/Geometry/GeometryServer&lt;/A&gt;&lt;SPAN&gt;");&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;gs.intersect (mispuntos, my service, onCompleteFunc, onErrorFunc); &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;mispuntos = user are assigned &lt;/P&gt;&lt;P&gt;my service = is a mapping service that is defined.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Sep 2014 21:36:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/intersect-for-javascript/m-p/709490#M65987</guid>
      <dc:creator>ana_salgado</dc:creator>
      <dc:date>2014-09-01T21:36:15Z</dc:date>
    </item>
  </channel>
</rss>

