<?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 Is the geometry object available in Arcade expressions with Map Image Layers? in ArcGIS Enterprise Portal Questions</title>
    <link>https://community.esri.com/t5/arcgis-enterprise-portal-questions/is-the-geometry-object-available-in-arcade/m-p/471931#M6569</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm using ArcGIS Enterprise 10.6.1 with ArcGIS Portal 10.6.1 with data in SQL Server 2014.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've been attempting to build a popup in an ArcGIS Portal map with a custom attribute expression written in Arcade to calculate X and Y from the Geometry object.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However it seems like the Arcade geometry object is Null in all Map Image Layers (these are dynamically drawn and the data is stored in an enterprise geodatabase).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;On a dynamically drawn Map Image Layer, '&lt;STRONG&gt;Text($feature)&lt;/STRONG&gt;' returns:&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;{"geometry":null,"attributes":{"Elevation":366.27200317,"GlobalID":"{E132538C-B97D-4464-873B-026D434A93F4}","Layer":"Fire_Hydrant","OBJECTID":1,"POINT_X":426693.043,"POINT_Y":5410332.5313,"Utility_Type":1}}&lt;/BLOCKQUOTE&gt;&lt;P&gt;I do have fields for the X and Y however they are not dynamic when the points moves which is why I want to calculate from the geometry of the point.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;On a Feature Layer, '&lt;STRONG&gt;Text($feature)&lt;/STRONG&gt;' returns:&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;{"geometry":{"x":426693.0429999996,"y":5410332.531300001,"spatialReference":{"latestWkid":26915,"wkid":26915}},"attributes":{"Elevation":366.27200317,"GlobalID":"{E132538C-B97D-4464-873B-026D434A93F4}","Layer":"Fire_Hydrant","OBJECTID":1,"POINT_X":426693.043,"POINT_Y":5410332.5313,"Utility_Type":1}}&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There's no mention of this limitation in the documentation that I can find. If it truly isn't supported in Map Image Layers that throws a wrench in my plans. I can understand tiled map image services not supporting this, but i really think it should work in dynamic ones that support Query operations.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anyone have the same issue or any work arounds? I'm thinking about filing a bug report/feature request.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 12 Dec 2018 16:12:52 GMT</pubDate>
    <dc:creator>KurtisGagne1</dc:creator>
    <dc:date>2018-12-12T16:12:52Z</dc:date>
    <item>
      <title>Is the geometry object available in Arcade expressions with Map Image Layers?</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-portal-questions/is-the-geometry-object-available-in-arcade/m-p/471931#M6569</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm using ArcGIS Enterprise 10.6.1 with ArcGIS Portal 10.6.1 with data in SQL Server 2014.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've been attempting to build a popup in an ArcGIS Portal map with a custom attribute expression written in Arcade to calculate X and Y from the Geometry object.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However it seems like the Arcade geometry object is Null in all Map Image Layers (these are dynamically drawn and the data is stored in an enterprise geodatabase).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;On a dynamically drawn Map Image Layer, '&lt;STRONG&gt;Text($feature)&lt;/STRONG&gt;' returns:&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;{"geometry":null,"attributes":{"Elevation":366.27200317,"GlobalID":"{E132538C-B97D-4464-873B-026D434A93F4}","Layer":"Fire_Hydrant","OBJECTID":1,"POINT_X":426693.043,"POINT_Y":5410332.5313,"Utility_Type":1}}&lt;/BLOCKQUOTE&gt;&lt;P&gt;I do have fields for the X and Y however they are not dynamic when the points moves which is why I want to calculate from the geometry of the point.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;On a Feature Layer, '&lt;STRONG&gt;Text($feature)&lt;/STRONG&gt;' returns:&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;{"geometry":{"x":426693.0429999996,"y":5410332.531300001,"spatialReference":{"latestWkid":26915,"wkid":26915}},"attributes":{"Elevation":366.27200317,"GlobalID":"{E132538C-B97D-4464-873B-026D434A93F4}","Layer":"Fire_Hydrant","OBJECTID":1,"POINT_X":426693.043,"POINT_Y":5410332.5313,"Utility_Type":1}}&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There's no mention of this limitation in the documentation that I can find. If it truly isn't supported in Map Image Layers that throws a wrench in my plans. I can understand tiled map image services not supporting this, but i really think it should work in dynamic ones that support Query operations.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anyone have the same issue or any work arounds? I'm thinking about filing a bug report/feature request.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Dec 2018 16:12:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-portal-questions/is-the-geometry-object-available-in-arcade/m-p/471931#M6569</guid>
      <dc:creator>KurtisGagne1</dc:creator>
      <dc:date>2018-12-12T16:12:52Z</dc:date>
    </item>
    <item>
      <title>Re: Is the geometry object available in Arcade expressions with Map Image Layers?</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-portal-questions/is-the-geometry-object-available-in-arcade/m-p/471932#M6570</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I just did a little test by throwing this code into the&amp;nbsp;&lt;A class="link-titled" href="https://developers.arcgis.com/arcade/playground/" title="https://developers.arcgis.com/arcade/playground/" rel="nofollow noopener noreferrer" target="_blank"&gt;ArcGIS Arcade | ArcGIS for Developers&lt;/A&gt;&amp;nbsp; playground:&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;&lt;SPAN class="keyword token"&gt;var&lt;/SPAN&gt; info &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"geometry"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;&lt;SPAN class="keyword token"&gt;null&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"attributes"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"Elevation"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;&lt;SPAN class="number token"&gt;366.27200317&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"GlobalID"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"{E132538C-B97D-4464-873B-026D434A93F4}"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"Layer"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"Fire_Hydrant"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"OBJECTID"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;&lt;SPAN class="number token"&gt;1&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"POINT_X"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;&lt;SPAN class="number token"&gt;426693.043&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"POINT_Y"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;&lt;SPAN class="number token"&gt;5410332.5313&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"Utility_Type"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;&lt;SPAN class="number token"&gt;1&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;}&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;}&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
&lt;SPAN class="keyword token"&gt;var&lt;/SPAN&gt; atts &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; info&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;attributes&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;

&lt;SPAN class="keyword token"&gt;var&lt;/SPAN&gt; x &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; atts&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;POINT_X&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
&lt;SPAN class="keyword token"&gt;var&lt;/SPAN&gt; y &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; atts&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;POINT_Y&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;

&lt;SPAN class="keyword token"&gt;var&lt;/SPAN&gt; pnt_json &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"x"&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt; x&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"y"&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt; y&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"spatialReference"&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"wkid"&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;26915&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;}&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;}&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
&lt;SPAN class="keyword token"&gt;var&lt;/SPAN&gt; pnt &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="token function"&gt;Point&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;pnt_json&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
&lt;SPAN class="token function"&gt;Console&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;pnt&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
&lt;SPAN class="keyword token"&gt;return&lt;/SPAN&gt; pnt
&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;... thinking that if you can have access to the X and Y values since they are attributes, you can construct a geometry from it. However, it seems to need WGS1984 coords to be able to do this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;&lt;SPAN class="" style="color: #de2900; background-color: rgba(255, 255, 255, 0.8);"&gt;Execution Error:&lt;/SPAN&gt;&lt;SPAN style="color: #4c4c4c; background-color: rgba(255, 255, 255, 0.8);"&gt;Cannot create Geometry in this SpatialReference. Engine is using a different spatial reference.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 20:52:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-portal-questions/is-the-geometry-object-available-in-arcade/m-p/471932#M6570</guid>
      <dc:creator>XanderBakker</dc:creator>
      <dc:date>2021-12-11T20:52:32Z</dc:date>
    </item>
  </channel>
</rss>

