<?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: Get the X Coordenate in Arcade in Developers Questions</title>
    <link>https://community.esri.com/t5/developers-questions/get-the-x-coordenate-in-arcade/m-p/1414110#M7017</link>
    <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I used your&amp;nbsp;suggestion, but, I have the following error message:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;&lt;SPAN class=""&gt;Execution Error:&lt;/SPAN&gt;Runtime Error: Function Not Found: SpatialReference&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;I am using ArcGIS Enterprise Standard version 10.8,&amp;nbsp;Maybe it can be the cause of the error?.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 23 Apr 2024 13:37:07 GMT</pubDate>
    <dc:creator>SoniaUguna_Urgilés</dc:creator>
    <dc:date>2024-04-23T13:37:07Z</dc:date>
    <item>
      <title>Get the X Coordenate in Arcade</title>
      <link>https://community.esri.com/t5/developers-questions/get-the-x-coordenate-in-arcade/m-p/1412494#M7009</link>
      <description>&lt;P&gt;Hi, comunity&lt;/P&gt;&lt;P&gt;I ‘m using this statement in Arcade to calculate the X Coordinate:&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;var x = Round(Geometry($feature).X,6)&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;But, I have this error message.&lt;/P&gt;&lt;P&gt;&lt;FONT color="#FF0000"&gt;&lt;SPAN&gt;&lt;EM&gt;Execution Error:&lt;/EM&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;EM&gt;Cannot create Geometry in this SpatialReference. Engine is using a different spatial reference.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;My map have the Coordenate System: WGS 1984 UTM Zone 17S.&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Help me, please&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Thanks.&lt;/EM&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 19 Apr 2024 19:45:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-questions/get-the-x-coordenate-in-arcade/m-p/1412494#M7009</guid>
      <dc:creator>SoniaUguna_Urgilés</dc:creator>
      <dc:date>2024-04-19T19:45:55Z</dc:date>
    </item>
    <item>
      <title>Re: Get the X Coordenate in Arcade</title>
      <link>https://community.esri.com/t5/developers-questions/get-the-x-coordenate-in-arcade/m-p/1413439#M7012</link>
      <description>&lt;P&gt;Hey &lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/237161"&gt;@SoniaUguna_Urgilés&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Would this possibly work for you?&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;var spatialRef = SpatialReference(32717);
var x = Round(Geometry($feature, spatialRef).X, 6);&lt;/LI-CODE&gt;&lt;P&gt;Cody&lt;/P&gt;</description>
      <pubDate>Mon, 22 Apr 2024 11:25:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-questions/get-the-x-coordenate-in-arcade/m-p/1413439#M7012</guid>
      <dc:creator>CodyPatterson</dc:creator>
      <dc:date>2024-04-22T11:25:14Z</dc:date>
    </item>
    <item>
      <title>Re: Get the X Coordenate in Arcade</title>
      <link>https://community.esri.com/t5/developers-questions/get-the-x-coordenate-in-arcade/m-p/1414110#M7017</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I used your&amp;nbsp;suggestion, but, I have the following error message:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;&lt;SPAN class=""&gt;Execution Error:&lt;/SPAN&gt;Runtime Error: Function Not Found: SpatialReference&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;I am using ArcGIS Enterprise Standard version 10.8,&amp;nbsp;Maybe it can be the cause of the error?.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 23 Apr 2024 13:37:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-questions/get-the-x-coordenate-in-arcade/m-p/1414110#M7017</guid>
      <dc:creator>SoniaUguna_Urgilés</dc:creator>
      <dc:date>2024-04-23T13:37:07Z</dc:date>
    </item>
    <item>
      <title>Re: Get the X Coordenate in Arcade</title>
      <link>https://community.esri.com/t5/developers-questions/get-the-x-coordenate-in-arcade/m-p/1414626#M7018</link>
      <description>&lt;P&gt;Hey &lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/237161"&gt;@SoniaUguna_Urgilés&lt;/a&gt;&lt;/P&gt;&lt;P&gt;My apologies, it seems I'm thinking of another function, I copied your setup into a map, and created a feature class point with the same spatial reference, I then added a point somewhere in Brazil and attempted to use the functions, I was able to get it working without issue. I was curious if you would be able to use these functions and see if everything lines up, specifically the spatial reference of the map itself along with the point class.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="CodyPatterson_0-1713958109941.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/101971i5FD8837A54644038/image-size/medium?v=v2&amp;amp;px=400" role="button" title="CodyPatterson_0-1713958109941.png" alt="CodyPatterson_0-1713958109941.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;Console(GetEnvironment())
Console("\n")
Console(Geometry($feature))
Console("\n")
Console(Geometry($feature).spatialreference)
Console("\n")
Console(Geometry($feature).x)
Console("\n")
Console(Round(Geometry($feature).X,6))&lt;/LI-CODE&gt;&lt;P&gt;The arrow indicates the engine running, which is the correct spatial reference, and the highlights reveal the map and point spatial reference, please return with your results so we can figure this out further!&lt;/P&gt;&lt;P&gt;Hope that helps!&lt;/P&gt;&lt;P&gt;Cody&lt;/P&gt;</description>
      <pubDate>Wed, 24 Apr 2024 11:29:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-questions/get-the-x-coordenate-in-arcade/m-p/1414626#M7018</guid>
      <dc:creator>CodyPatterson</dc:creator>
      <dc:date>2024-04-24T11:29:54Z</dc:date>
    </item>
    <item>
      <title>Re: Get the X Coordenate in Arcade</title>
      <link>https://community.esri.com/t5/developers-questions/get-the-x-coordenate-in-arcade/m-p/1414701#M7019</link>
      <description>&lt;P&gt;Hi Cody&lt;/P&gt;&lt;P&gt;Thank you for your support, but I still have the same error.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;Execution Error:Runtime Error: Function Not Found: GetEnvironment&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;The GetEnvironment function has been used since version 1.23, and this version of Arcade has been used since version 11.2 of ArcGis Enterprise Server. I am working on version 10.8.&amp;nbsp;&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":crying_face:"&gt;😢&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 24 Apr 2024 13:38:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-questions/get-the-x-coordenate-in-arcade/m-p/1414701#M7019</guid>
      <dc:creator>SoniaUguna_Urgilés</dc:creator>
      <dc:date>2024-04-24T13:38:10Z</dc:date>
    </item>
  </channel>
</rss>

