<?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: Reproject a Graphic from 102100 to 4326 in Web AppBuilder Custom Widgets Questions</title>
    <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/reproject-a-graphic-from-102100-to-4326/m-p/789849#M3983</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Florian,&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;I tried the .contains() function the only response I get is something like "this function doesn't exist"&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;So I need to see some code where you define your variable "poly"&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 28 Sep 2015 15:35:52 GMT</pubDate>
    <dc:creator>RobertScheitlin__GISP</dc:creator>
    <dc:date>2015-09-28T15:35:52Z</dc:date>
    <item>
      <title>Reproject a Graphic from 102100 to 4326</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/reproject-a-graphic-from-102100-to-4326/m-p/789842#M3976</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN lang="en"&gt;Hello,&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="en"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="en"&gt;Here I have two graphics ( one is a polygon and the other one is compound of several points ) and my objective is to produce something that looks like this: &lt;/SPAN&gt;&lt;SPAN lang="en"&gt; &lt;A href="http://developers.arcgis.com/javascript/sandbox/sandbox.html?sample=util_relation" title="http://developers.arcgis.com/javascript/sandbox/sandbox.html?sample=util_relation"&gt;ArcGIS API for JavaScript Sandbox&lt;/A&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="en"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="en"&gt;&lt;SPAN lang="en"&gt;My problem is that the polygon is in 4326 , the map is apparently (not sure ) in 102100 , and the points are in 4326 and apparently I have a problem when using this function:&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; relationParams.geometries1 = graphicsUtils.getGeometries([this.entry4Analysis.featureSet.features[0]]);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; relationParams.geometries2 = graphicsUtils.getGeometries([this.spatialFilter4Analysis.graphics[2]]);&lt;/P&gt;&lt;P&gt;&lt;SPAN style="line-height: 1.5;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; relationParams.relation = RelationParameters.SPATIAL_REL_WITHIN;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; this.geometryService.relation(relationParams, this.addRelateResultsToMap);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="en"&gt;So I tried different syntax (like : .setOutSpatialReference) to change the projection of one or other of the graphics when I launch the spatial analysis but nothing happens...&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="en"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="en"&gt;So now I really need help...&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="en"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="en"&gt;Thank you very much by advance !&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Sep 2015 16:07:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/reproject-a-graphic-from-102100-to-4326/m-p/789842#M3976</guid>
      <dc:creator>FlorianCADOZ</dc:creator>
      <dc:date>2015-09-25T16:07:45Z</dc:date>
    </item>
    <item>
      <title>Re: Reproject a Graphic from 102100 to 4326</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/reproject-a-graphic-from-102100-to-4326/m-p/789843#M3977</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Florain,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; It sounds like you do not even have to use the GeometryService for this as it looks like all you want to do is see if the polygon contains the points.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;var poly = this.entry4Analysis.featureSet.features[0].geometry;
array.map(yourPointsArray, function(pnt){
&amp;nbsp; if(poly.contains(pnt)){
&amp;nbsp;&amp;nbsp;&amp;nbsp; //now do something with that point like change it's symbol
&amp;nbsp; }
});&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 09:02:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/reproject-a-graphic-from-102100-to-4326/m-p/789843#M3977</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2021-12-12T09:02:07Z</dc:date>
    </item>
    <item>
      <title>Re: Reproject a Graphic from 102100 to 4326</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/reproject-a-graphic-from-102100-to-4326/m-p/789844#M3978</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Robert and thank you for your answer !&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I had alreally seen the polygon and his contains'function but in the documentation (&lt;A href="https://developers.arcgis.com/javascript/jsapi/polygon-amd.html#contains"&gt;here&lt;/A&gt;) the returned answer seems to be a boolean and I need to keed the different attributes of my array of point...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Sep 2015 08:45:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/reproject-a-graphic-from-102100-to-4326/m-p/789844#M3978</guid>
      <dc:creator>FlorianCADOZ</dc:creator>
      <dc:date>2015-09-28T08:45:52Z</dc:date>
    </item>
    <item>
      <title>Re: Reproject a Graphic from 102100 to 4326</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/reproject-a-graphic-from-102100-to-4326/m-p/789845#M3979</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Florian,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; So using contains boolean return you can add that point or the points attributes to an array if true then.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Sep 2015 12:02:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/reproject-a-graphic-from-102100-to-4326/m-p/789845#M3979</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2015-09-28T12:02:17Z</dc:date>
    </item>
    <item>
      <title>Re: Reproject a Graphic from 102100 to 4326</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/reproject-a-graphic-from-102100-to-4326/m-p/789846#M3980</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;oh ok ! I tried the .contains() function the only response I get is something like "this function doesn't exist" ! I searched for some sample but I didn't find anything... I don't understand where is the problem !&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(I specified define (["esri/geometry/Polygon", ...] and functino ( Polygon ...) and my geometries seems to be ok !&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Sep 2015 14:31:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/reproject-a-graphic-from-102100-to-4326/m-p/789846#M3980</guid>
      <dc:creator>FlorianCADOZ</dc:creator>
      <dc:date>2015-09-28T14:31:11Z</dc:date>
    </item>
    <item>
      <title>Re: Reproject a Graphic from 102100 to 4326</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/reproject-a-graphic-from-102100-to-4326/m-p/789847#M3981</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Florian,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; I would have to see your code and what object you are trying to use the contains method on.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Sep 2015 14:40:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/reproject-a-graphic-from-102100-to-4326/m-p/789847#M3981</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2015-09-28T14:40:24Z</dc:date>
    </item>
    <item>
      <title>Re: Reproject a Graphic from 102100 to 4326</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/reproject-a-graphic-from-102100-to-4326/m-p/789848#M3982</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;For now, I'm just trying to do something really simple !&lt;/P&gt;&lt;P&gt;My code looks like this :&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(poly.contains(points)){&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; alert('hello');&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The points' variable look like this :&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Sans titre2.png" class="image-2 jive-image" src="/legacyfs/online/128691_Sans titre2.png" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The poly's variable look like this :&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Sans titre.png" class="image-1 jive-image" src="/legacyfs/online/128690_Sans titre.png" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;On the map, it look like this :&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Sans titre3.png" class="image-3 jive-image" src="/legacyfs/online/128692_Sans titre3.png" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is not the same projection but the datas are overlaying correctly...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Sep 2015 15:25:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/reproject-a-graphic-from-102100-to-4326/m-p/789848#M3982</guid>
      <dc:creator>FlorianCADOZ</dc:creator>
      <dc:date>2015-09-28T15:25:15Z</dc:date>
    </item>
    <item>
      <title>Re: Reproject a Graphic from 102100 to 4326</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/reproject-a-graphic-from-102100-to-4326/m-p/789849#M3983</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Florian,&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;I tried the .contains() function the only response I get is something like "this function doesn't exist"&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;So I need to see some code where you define your variable "poly"&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Sep 2015 15:35:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/reproject-a-graphic-from-102100-to-4326/m-p/789849#M3983</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2015-09-28T15:35:52Z</dc:date>
    </item>
    <item>
      <title>Re: Reproject a Graphic from 102100 to 4326</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/reproject-a-graphic-from-102100-to-4326/m-p/789850#M3984</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Oh ok sorry, I'll try to simplify it a lttle before but I'm not sur it will really help you ! I gave you the objects' definition of the different datas because this is the more explicit that I can give you ! The data come from shapefile or are generate by other widgets...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My code look like this :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;define([&lt;/P&gt;&lt;P&gt;&lt;SPAN style="line-height: 1.5;"&gt;..., &lt;/SPAN&gt;&lt;SPAN style="line-height: 1.5;"&gt;"esri/geometry/Polygon", ...&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;],&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;function(&lt;/P&gt;&lt;P&gt;&lt;SPAN style="line-height: 1.5;"&gt;..., Polygon, ...&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="line-height: 1.5;"&gt;){&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="line-height: 1.5;"&gt;return declare([BaseWidget,_WidgetsInTemplateMixin],{&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; baseClass: 'jimu-widget-geochart',&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; name: 'Geochart',&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; urlServer: '',&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; itemSelector: null,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; entry4Analysis: null,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; entryAttrib4Analysis: null,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; spatialFilter4Analysis: null,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; geometryService: null,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="line-height: 1.5;"&gt;postCreate: function() {&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; this.inherited(arguments);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; this._loadConfig();&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; console.log('postCreate');&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; this._initListeners();&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; this._initFilterLayer();&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; this._initAnalysis();&lt;/P&gt;&lt;P&gt;},&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="line-height: 1.5;"&gt;_loadConfig: function () {&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; this.arcgisServerURL = this.config.arcgisServerURL;&lt;/P&gt;&lt;P&gt;},&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;[...some code calling external data...]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="line-height: 1.5;"&gt;onApplyFilter: function (evt){&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var poly = graphicsUtils.getGeometries([this.spatialFilter4Analysis.graphics[2]]);&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var points = [this.entry4Analysis.featureSet.features];&lt;/P&gt;&lt;P&gt;&lt;SPAN style="line-height: 1.5;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(poly.contains(points)){&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; alert('hello');&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; },&lt;/P&gt;&lt;P&gt;&lt;SPAN style="line-height: 1.5;"&gt;});&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Sep 2015 15:59:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/reproject-a-graphic-from-102100-to-4326/m-p/789850#M3984</guid>
      <dc:creator>FlorianCADOZ</dc:creator>
      <dc:date>2015-09-28T15:59:04Z</dc:date>
    </item>
    <item>
      <title>Re: Reproject a Graphic from 102100 to 4326</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/reproject-a-graphic-from-102100-to-4326/m-p/789851#M3985</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Florian,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; So you have two problems in your code then.&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;var poly = graphicsUtils.getGeometries([this.spatialFilter4Analysis.graphics[2]]); means that poly is not a polygon object, it is an array.&lt;/LI&gt;&lt;LI&gt;var points = [this.entry4Analysis.featureSet.features]; means that points is an array as well and contain is only expecting one point.&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am not sure why you are using graphicsUtils.getGeometries([this.spatialFilter4Analysis.graphics[2]]); since you are specifying a particular geometry when you use [2]. I would use:&lt;/P&gt;&lt;P&gt;var poly = this.spatialFilter4Analysis.graphics[2].geometry;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Sep 2015 16:06:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/reproject-a-graphic-from-102100-to-4326/m-p/789851#M3985</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2015-09-28T16:06:25Z</dc:date>
    </item>
    <item>
      <title>Re: Reproject a Graphic from 102100 to 4326</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/reproject-a-graphic-from-102100-to-4326/m-p/789852#M3986</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;woh' I really don't understand why the this.spatialFilter4Analysis.graphics[2].geometry return a different thing that the graphicsUtils.getGeometries([this.entry4Analysis.featureSet.features[2]]) but right now ain't got no error with the .contains() function !&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="en"&gt;Nevertheless, ain't got any alert so it didn't found points in my polygon and this is not normal...&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="en"&gt;Do you know if the different spatial reference could be a raison of this fail ?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For now, I need to specify a polygon in particular but in a second time I will have to use different polygon so I think I'll try to make an union of them !&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="en"&gt;(Thanks a lot for your last comment, it was really usefull!)&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Sep 2015 16:21:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/reproject-a-graphic-from-102100-to-4326/m-p/789852#M3986</guid>
      <dc:creator>FlorianCADOZ</dc:creator>
      <dc:date>2015-09-28T16:21:26Z</dc:date>
    </item>
    <item>
      <title>Re: Reproject a Graphic from 102100 to 4326</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/reproject-a-graphic-from-102100-to-4326/m-p/789853#M3987</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Florian,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Since your points are 102100 and your Poly is 4326 you can just use esri/geometry/webMercatorUtils to project your points to geographic (4326) before you try the poly.contains.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;var point = webMercatorUtils.webMercatorToGeographicthis.entry4Analysis.featureSet.features[0].geometry);&lt;/P&gt;&lt;P&gt;if(poly.contains(point)){&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; alert('hello');&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Sep 2015 16:30:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/reproject-a-graphic-from-102100-to-4326/m-p/789853#M3987</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2015-09-28T16:30:42Z</dc:date>
    </item>
    <item>
      <title>Re: Reproject a Graphic from 102100 to 4326</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/reproject-a-graphic-from-102100-to-4326/m-p/789854#M3988</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes It was exactly that ! Thank you very much for your help !!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Oct 2015 09:23:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/reproject-a-graphic-from-102100-to-4326/m-p/789854#M3988</guid>
      <dc:creator>FlorianCADOZ</dc:creator>
      <dc:date>2015-10-01T09:23:39Z</dc:date>
    </item>
  </channel>
</rss>

