<?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: ProjectOperator removes zValues of geometries in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/projectoperator-removes-zvalues-of-geometries/m-p/1685563#M88159</link>
    <description>&lt;P&gt;Hi Sage,&lt;/P&gt;&lt;P&gt;No, both&amp;nbsp; spatialReferences have same vcsWkids equal to null, but thanks for the upcoming info&lt;/P&gt;</description>
    <pubDate>Fri, 20 Feb 2026 17:42:51 GMT</pubDate>
    <dc:creator>ChristopheSuter</dc:creator>
    <dc:date>2026-02-20T17:42:51Z</dc:date>
    <item>
      <title>ProjectOperator removes zValues of geometries</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/projectoperator-removes-zvalues-of-geometries/m-p/1685474#M88155</link>
      <description>&lt;P&gt;At version 4.34, using projectOperator on geometries with z values fixes all its z values to 0!&lt;/P&gt;&lt;P&gt;Anyone has a workaround for this ?&lt;/P&gt;</description>
      <pubDate>Fri, 20 Feb 2026 10:02:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/projectoperator-removes-zvalues-of-geometries/m-p/1685474#M88155</guid>
      <dc:creator>ChristopheSuter</dc:creator>
      <dc:date>2026-02-20T10:02:12Z</dc:date>
    </item>
    <item>
      <title>Re: ProjectOperator removes zValues of geometries</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/projectoperator-removes-zvalues-of-geometries/m-p/1685527#M88157</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/39681"&gt;@ChristopheSuter&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;Do both spatial references have the same vertical coordinate system and only differ in their horizontal coordinate system?&amp;nbsp; There is a known limitation where vertical coordinate system projections are not currently supported.&amp;nbsp; This should be better documented when version 5.0 comes out next week.&lt;/P&gt;</description>
      <pubDate>Fri, 20 Feb 2026 15:44:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/projectoperator-removes-zvalues-of-geometries/m-p/1685527#M88157</guid>
      <dc:creator>Sage_Wall</dc:creator>
      <dc:date>2026-02-20T15:44:21Z</dc:date>
    </item>
    <item>
      <title>Re: ProjectOperator removes zValues of geometries</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/projectoperator-removes-zvalues-of-geometries/m-p/1685529#M88158</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/39681"&gt;@ChristopheSuter&lt;/a&gt;&amp;nbsp;can you provide a repro sample?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 20 Feb 2026 15:47:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/projectoperator-removes-zvalues-of-geometries/m-p/1685529#M88158</guid>
      <dc:creator>AndyGup</dc:creator>
      <dc:date>2026-02-20T15:47:13Z</dc:date>
    </item>
    <item>
      <title>Re: ProjectOperator removes zValues of geometries</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/projectoperator-removes-zvalues-of-geometries/m-p/1685563#M88159</link>
      <description>&lt;P&gt;Hi Sage,&lt;/P&gt;&lt;P&gt;No, both&amp;nbsp; spatialReferences have same vcsWkids equal to null, but thanks for the upcoming info&lt;/P&gt;</description>
      <pubDate>Fri, 20 Feb 2026 17:42:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/projectoperator-removes-zvalues-of-geometries/m-p/1685563#M88159</guid>
      <dc:creator>ChristopheSuter</dc:creator>
      <dc:date>2026-02-20T17:42:51Z</dc:date>
    </item>
    <item>
      <title>Re: ProjectOperator removes zValues of geometries</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/projectoperator-removes-zvalues-of-geometries/m-p/1685579#M88161</link>
      <description>&lt;P&gt;Yes but it does not help, since it works correctly:&amp;nbsp;&lt;A href="https://codepen.io/christophesuter/pen/WbxVEvq" target="_blank"&gt;https://codepen.io/christophesuter/pen/WbxVEvq&lt;/A&gt;&amp;nbsp;since creating the geometry from its json solves it. Difficult for us to see why it works with a new instance of the geometry&lt;BR /&gt;I have adapted my projection method like this .. but it is still a workaround i think&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;export&lt;/SPAN&gt; &lt;SPAN&gt;function&lt;/SPAN&gt; &lt;SPAN&gt;project&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;geometry&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;spatialReference&lt;/SPAN&gt;&lt;SPAN&gt;) {&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;if&lt;/SPAN&gt;&lt;SPAN&gt; (&lt;/SPAN&gt;&lt;SPAN&gt;!&lt;/SPAN&gt;&lt;SPAN&gt;geometry&lt;/SPAN&gt;&lt;SPAN&gt;) {&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;return&lt;/SPAN&gt; &lt;SPAN&gt;geometry&lt;/SPAN&gt;&lt;SPAN&gt;;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;SPAN&gt;if&lt;/SPAN&gt;&lt;SPAN&gt; (&lt;/SPAN&gt;&lt;SPAN&gt;Array&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;isArray&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;geometry&lt;/SPAN&gt;&lt;SPAN&gt;)) {&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;geometry&lt;/SPAN&gt; &lt;SPAN&gt;=&lt;/SPAN&gt; &lt;SPAN&gt;geometry&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;map&lt;/SPAN&gt;&lt;SPAN&gt;((&lt;/SPAN&gt;&lt;SPAN&gt;currentGeometry&lt;/SPAN&gt;&lt;SPAN&gt;) &lt;/SPAN&gt;&lt;SPAN&gt;=&amp;gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;geometryJsonUtils&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;fromJSON&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;currentGeometry&lt;/SPAN&gt;&lt;SPAN&gt;.toJSON&lt;/SPAN&gt;&lt;SPAN&gt;())&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;);&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;return&lt;/SPAN&gt; &lt;SPAN&gt;projectOperator&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;executeMany&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;geometry&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;spatialReference&lt;/SPAN&gt;&lt;SPAN&gt;);&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;SPAN&gt;geometry&lt;/SPAN&gt; &lt;SPAN&gt;=&lt;/SPAN&gt; &lt;SPAN&gt;geometryJsonUtils&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;fromJSON&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;geometry&lt;/SPAN&gt;&lt;SPAN&gt;.toJSON&lt;/SPAN&gt;&lt;SPAN&gt;());&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;return&lt;/SPAN&gt; &lt;SPAN&gt;projectOperator&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;execute&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;geometry&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;spatialReference&lt;/SPAN&gt;&lt;SPAN&gt;);&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;If i can inspect more properties just tell me ...&amp;nbsp;&lt;BR /&gt;Christophe&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 20 Feb 2026 18:10:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/projectoperator-removes-zvalues-of-geometries/m-p/1685579#M88161</guid>
      <dc:creator>ChristopheSuter</dc:creator>
      <dc:date>2026-02-20T18:10:04Z</dc:date>
    </item>
    <item>
      <title>Re: ProjectOperator removes zValues of geometries</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/projectoperator-removes-zvalues-of-geometries/m-p/1685693#M88167</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/39681"&gt;@ChristopheSuter&lt;/a&gt;gotcha. How are your non-new instance geometries being created when they have the z-problem?&lt;/P&gt;&lt;P&gt;If converting them to JSON is correcting the problem then it's possible there is some sort of issue with the non-JSON geometry instances. If you continue to have issues, or run into convert/revert performance issues, then I'd encourage you to open a support ticket so we can take a deeper look.&lt;/P&gt;</description>
      <pubDate>Fri, 20 Feb 2026 23:39:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/projectoperator-removes-zvalues-of-geometries/m-p/1685693#M88167</guid>
      <dc:creator>AndyGup</dc:creator>
      <dc:date>2026-02-20T23:39:36Z</dc:date>
    </item>
    <item>
      <title>Re: ProjectOperator removes zValues of geometries</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/projectoperator-removes-zvalues-of-geometries/m-p/1685734#M88169</link>
      <description>&lt;P&gt;Found some strange way to correct the problem, maybe it can help. I am using a polylineGeometry returned by the sketchViewModel with :&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;defaultCreateOptions&lt;/SPAN&gt;&lt;SPAN&gt;: {&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;hasZ&lt;/SPAN&gt;&lt;SPAN&gt;: &lt;/SPAN&gt;&lt;SPAN&gt;true&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;mode&lt;/SPAN&gt;&lt;SPAN&gt;: &lt;/SPAN&gt;&lt;SPAN&gt;'click'&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;},&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;in a 2d mapview. Then i use this geometry (that is in EPSG:2056, and has all of its z values to 0 that seems logic) to query elevation on Esri's elevation service (that is in EPSG:3857), so i use the projectOperator to reproject my geometry and then query Elevation on esri's elevationLayer. Everything ok, elevation z fixed and x/y in EPSG:3857.&lt;BR /&gt;Then I have to reconvert it to EPSG:2056 -&amp;gt; &lt;STRONG&gt;sets all the z to 0.&lt;/STRONG&gt;&lt;BR /&gt;So I modified the sketchViewModel property (removed hasZ):&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;SPAN&gt;defaultCreateOptions&lt;/SPAN&gt;&lt;SPAN&gt;: {&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;mode&lt;/SPAN&gt;&lt;SPAN&gt;: &lt;/SPAN&gt;&lt;SPAN&gt;'click'&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;},&lt;BR /&gt;that means that now when querying the elevationLayer the geometry has no z value it works ... any caching that could cause this ?&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/DIV&gt;</description>
      <pubDate>Sat, 21 Feb 2026 14:09:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/projectoperator-removes-zvalues-of-geometries/m-p/1685734#M88169</guid>
      <dc:creator>ChristopheSuter</dc:creator>
      <dc:date>2026-02-21T14:09:54Z</dc:date>
    </item>
  </channel>
</rss>

