<?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 ArcGIS Pro SDK Projection Engine not transforming elevation in ArcGIS Pro Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-questions/arcgis-pro-sdk-projection-engine-not-transforming/m-p/1231619#M62239</link>
    <description>&lt;P&gt;Hello, I would expect the Projection Engine to transform Z.&amp;nbsp; It appears not to.&amp;nbsp; I have an input vertical coordinate system with international feet [FOOT .3048] and an output of WGS84 meters [METER 1.0].&lt;/P&gt;&lt;P&gt;Here is some sample code, and the Z is not changed after the transform.&lt;/P&gt;&lt;P&gt;private static int PackGeometry(&lt;BR /&gt;&amp;nbsp;&amp;nbsp; int layer_index,&lt;BR /&gt;&amp;nbsp;&amp;nbsp; Feature feature,&lt;BR /&gt;&amp;nbsp;&amp;nbsp; bool modify,&lt;BR /&gt;&amp;nbsp;&amp;nbsp; bool selectable,&lt;BR /&gt;&amp;nbsp;&amp;nbsp; bool editable)&lt;BR /&gt;{&lt;BR /&gt;Geometry geom = feature.GetShape();&lt;BR /&gt;if (geom == null) return -1;&lt;/P&gt;&lt;P&gt;// Reserve space for count - backfill with actual count at end.&lt;BR /&gt;int num_bytes = 0;&lt;BR /&gt;int start_offset = _offset;&lt;BR /&gt;_offset += sizeof(int);&lt;/P&gt;&lt;P&gt;// Everything goes to SOCET GXP as WGS84/ellipsoid.&lt;BR /&gt;SfaLayer layer = SfaSettings.Layers[layer_index];&amp;nbsp; // internal class&lt;BR /&gt;Geometry projected_geom = null;&lt;/P&gt;&lt;P&gt;if (layer.SpatialRef.HasVcs) {&lt;/P&gt;&lt;P&gt;// input of layer spatial ref is feet, output Util.GeoCS is WGS84 meters.&lt;/P&gt;&lt;P&gt;// Z = 5908.123&lt;BR /&gt;&amp;nbsp;&amp;nbsp; ProjectionTransformation proj_trans =&lt;BR /&gt;&amp;nbsp;&amp;nbsp; ProjectionTransformation.CreateWithVertical(layer.SpatialRef, Util.GeoCS);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; projected_geom = GeometryEngine.Instance.ProjectEx(geom, proj_trans);&lt;/P&gt;&lt;P&gt;// Z still = 5908.123&lt;/P&gt;&lt;P&gt;} else {&lt;BR /&gt;&amp;nbsp;&amp;nbsp; projected_geom = GeometryEngine.Instance.Project(geom, Util.GeoCS);&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;if (projected_geom == null) return -1;&lt;/P&gt;</description>
    <pubDate>Tue, 15 Nov 2022 09:48:40 GMT</pubDate>
    <dc:creator>BillSmith</dc:creator>
    <dc:date>2022-11-15T09:48:40Z</dc:date>
    <item>
      <title>ArcGIS Pro SDK Projection Engine not transforming elevation</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/arcgis-pro-sdk-projection-engine-not-transforming/m-p/1231619#M62239</link>
      <description>&lt;P&gt;Hello, I would expect the Projection Engine to transform Z.&amp;nbsp; It appears not to.&amp;nbsp; I have an input vertical coordinate system with international feet [FOOT .3048] and an output of WGS84 meters [METER 1.0].&lt;/P&gt;&lt;P&gt;Here is some sample code, and the Z is not changed after the transform.&lt;/P&gt;&lt;P&gt;private static int PackGeometry(&lt;BR /&gt;&amp;nbsp;&amp;nbsp; int layer_index,&lt;BR /&gt;&amp;nbsp;&amp;nbsp; Feature feature,&lt;BR /&gt;&amp;nbsp;&amp;nbsp; bool modify,&lt;BR /&gt;&amp;nbsp;&amp;nbsp; bool selectable,&lt;BR /&gt;&amp;nbsp;&amp;nbsp; bool editable)&lt;BR /&gt;{&lt;BR /&gt;Geometry geom = feature.GetShape();&lt;BR /&gt;if (geom == null) return -1;&lt;/P&gt;&lt;P&gt;// Reserve space for count - backfill with actual count at end.&lt;BR /&gt;int num_bytes = 0;&lt;BR /&gt;int start_offset = _offset;&lt;BR /&gt;_offset += sizeof(int);&lt;/P&gt;&lt;P&gt;// Everything goes to SOCET GXP as WGS84/ellipsoid.&lt;BR /&gt;SfaLayer layer = SfaSettings.Layers[layer_index];&amp;nbsp; // internal class&lt;BR /&gt;Geometry projected_geom = null;&lt;/P&gt;&lt;P&gt;if (layer.SpatialRef.HasVcs) {&lt;/P&gt;&lt;P&gt;// input of layer spatial ref is feet, output Util.GeoCS is WGS84 meters.&lt;/P&gt;&lt;P&gt;// Z = 5908.123&lt;BR /&gt;&amp;nbsp;&amp;nbsp; ProjectionTransformation proj_trans =&lt;BR /&gt;&amp;nbsp;&amp;nbsp; ProjectionTransformation.CreateWithVertical(layer.SpatialRef, Util.GeoCS);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; projected_geom = GeometryEngine.Instance.ProjectEx(geom, proj_trans);&lt;/P&gt;&lt;P&gt;// Z still = 5908.123&lt;/P&gt;&lt;P&gt;} else {&lt;BR /&gt;&amp;nbsp;&amp;nbsp; projected_geom = GeometryEngine.Instance.Project(geom, Util.GeoCS);&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;if (projected_geom == null) return -1;&lt;/P&gt;</description>
      <pubDate>Tue, 15 Nov 2022 09:48:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/arcgis-pro-sdk-projection-engine-not-transforming/m-p/1231619#M62239</guid>
      <dc:creator>BillSmith</dc:creator>
      <dc:date>2022-11-15T09:48:40Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS Pro SDK Projection Engine not transforming elevation</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/arcgis-pro-sdk-projection-engine-not-transforming/m-p/1264177#M66212</link>
      <description>&lt;P&gt;&lt;SPAN&gt;&lt;SPAN class=""&gt;In order to perform vertical datum transformations, as well as some of the latest and greatest horizontal transformations from NOAA and the NGS, you must install the ArcGIS Pro Per-User Coordinate System Data appliance which can be downloaded from My Esri. &amp;nbsp; I've attached a screenshot of how this appears on the My Esri page. &amp;nbsp;In the screenshot the item below is the appliance to download and install for ArcGIS Pro. &amp;nbsp;This enormous utility incorporates the GeoCON utility created by the NGS and NOAA that Esri has licensed from the federal government and put in a wrapper to work with Esri software.&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN class=""&gt;Two different applications are provided because ArcGIS Pro is a 64-bit application, while ArcGIS Desktop and ArcMap are 32-bit.&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;In addition, download and extract the Geographic Transformations list from the ZIP file.&amp;nbsp; That contains lists of all the supported Geographic and Vertical transformations from current versions of Esri software.&amp;nbsp; The software will select default transformations for you in many&amp;nbsp; cases, but it is essential that you be familiar with the appropriate transformations for your area of interest.&amp;nbsp; The default transformation may not be the most appropriate for your area of interest.&lt;/P&gt;</description>
      <pubDate>Fri, 03 Mar 2023 22:12:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/arcgis-pro-sdk-projection-engine-not-transforming/m-p/1264177#M66212</guid>
      <dc:creator>Margaret_M_Maher</dc:creator>
      <dc:date>2023-03-03T22:12:27Z</dc:date>
    </item>
  </channel>
</rss>

