<?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: validate point geometery with location in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/validate-point-geometery-with-location/m-p/701004#M65298</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Depends on how you are loading the points, you can check point within polygon using the following method;&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://developers.arcgis.com/javascript/3/jsapi/polygon-amd.html#contains" title="https://developers.arcgis.com/javascript/3/jsapi/polygon-amd.html#contains"&gt;Polygon | API Reference | ArcGIS API for JavaScript 3.27&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;let boolean = PolygonFeature.contains(PointFeature); //This returns a boolean that will let you know if the point lies within a polygon.&lt;/P&gt;&lt;P&gt;you can use this to set attributes to the point feature and then use Unique Value Renderer, or you can run a loop to check condition and then change the color of the point using setColor or setSymbol methods.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 04 Feb 2019 04:52:06 GMT</pubDate>
    <dc:creator>HezronPhilip</dc:creator>
    <dc:date>2019-02-04T04:52:06Z</dc:date>
    <item>
      <title>validate point geometery with location</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/validate-point-geometery-with-location/m-p/701003#M65297</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;in my case i have some graphic points and i'm looking for filtering points based on geometry&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for example&lt;/P&gt;&lt;P&gt;assigning color to graphic points&lt;/P&gt;&lt;P&gt;if point is inside los angeles then green color&lt;/P&gt;&lt;P&gt;else red color&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;no idea how to validate point geometry with area&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any suggestions?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Feb 2019 17:50:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/validate-point-geometery-with-location/m-p/701003#M65297</guid>
      <dc:creator>Pa_Lotus</dc:creator>
      <dc:date>2019-02-01T17:50:10Z</dc:date>
    </item>
    <item>
      <title>Re: validate point geometery with location</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/validate-point-geometery-with-location/m-p/701004#M65298</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Depends on how you are loading the points, you can check point within polygon using the following method;&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://developers.arcgis.com/javascript/3/jsapi/polygon-amd.html#contains" title="https://developers.arcgis.com/javascript/3/jsapi/polygon-amd.html#contains"&gt;Polygon | API Reference | ArcGIS API for JavaScript 3.27&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;let boolean = PolygonFeature.contains(PointFeature); //This returns a boolean that will let you know if the point lies within a polygon.&lt;/P&gt;&lt;P&gt;you can use this to set attributes to the point feature and then use Unique Value Renderer, or you can run a loop to check condition and then change the color of the point using setColor or setSymbol methods.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Feb 2019 04:52:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/validate-point-geometery-with-location/m-p/701004#M65298</guid>
      <dc:creator>HezronPhilip</dc:creator>
      <dc:date>2019-02-04T04:52:06Z</dc:date>
    </item>
    <item>
      <title>Re: validate point geometery with location</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/validate-point-geometery-with-location/m-p/701005#M65299</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I tried&amp;nbsp; with&lt;/P&gt;&lt;P&gt;&amp;nbsp;var polygon = new Polygon(new SpatialReference({ wkid: 4326 }));&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; polygon.addRing([[-180, -90], [-180, 90], [180, 90], [180, -90], [-180, -90]]);&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; let boolean = polygon.contains(amspoint);&lt;/P&gt;&lt;P&gt;how to create a ring of my selected method or else can I pass layer directly&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Feb 2019 14:41:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/validate-point-geometery-with-location/m-p/701005#M65299</guid>
      <dc:creator>Pa_Lotus</dc:creator>
      <dc:date>2019-02-04T14:41:47Z</dc:date>
    </item>
  </channel>
</rss>

