<?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 CIMDatumTransform serialization to JSON not working properly in ArcGIS Pro Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-questions/cimdatumtransform-serialization-to-json-not/m-p/1282235#M68338</link>
    <description>&lt;P&gt;Hi there,&lt;/P&gt;&lt;P&gt;In my current project I try to programatically creating a CIMMapDocument definition using CIMMap.ToJson() method. It seems that the configured Datum and GeoTransformations are not properly serialized. See example below..&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;"datumTransforms": [
    {
      "type": "CIMDatumTransform",
      "forward": true
    },
    {
      "type": "CIMDatumTransform",
      "forward": false
    }
 ]&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Some Information about the GeoTransformation are completely emitted. The json should look like this:&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;"datumTransforms" : [
      {
        "type" : "CIMDatumTransform",
        "forward" : true,
        "geoTransformation" : {
          "geoTransforms" : [
            {
              "wkid" : 15749,
              "latestWkid" : 15929,
              "transformForward" : true,
              "name" : "Belge_1972_To_WGS_1984_3"
            }
          ]
        }
      }
]&lt;/LI-CODE&gt;&lt;P&gt;I did a bit of testing and found this. When calling the .ToJson() method on a GeoTransformation object a NotImplementedException is thrown &amp;gt;&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;cimMapDefinition.DatumTransforms[0].GeoTransformation.ToJson();&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Someone got an idea how a GeoTransformation can be serialized properly?&lt;/P&gt;</description>
    <pubDate>Tue, 25 Apr 2023 10:03:47 GMT</pubDate>
    <dc:creator>marco_vertigis</dc:creator>
    <dc:date>2023-04-25T10:03:47Z</dc:date>
    <item>
      <title>CIMDatumTransform serialization to JSON not working properly</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/cimdatumtransform-serialization-to-json-not/m-p/1282235#M68338</link>
      <description>&lt;P&gt;Hi there,&lt;/P&gt;&lt;P&gt;In my current project I try to programatically creating a CIMMapDocument definition using CIMMap.ToJson() method. It seems that the configured Datum and GeoTransformations are not properly serialized. See example below..&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;"datumTransforms": [
    {
      "type": "CIMDatumTransform",
      "forward": true
    },
    {
      "type": "CIMDatumTransform",
      "forward": false
    }
 ]&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Some Information about the GeoTransformation are completely emitted. The json should look like this:&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;"datumTransforms" : [
      {
        "type" : "CIMDatumTransform",
        "forward" : true,
        "geoTransformation" : {
          "geoTransforms" : [
            {
              "wkid" : 15749,
              "latestWkid" : 15929,
              "transformForward" : true,
              "name" : "Belge_1972_To_WGS_1984_3"
            }
          ]
        }
      }
]&lt;/LI-CODE&gt;&lt;P&gt;I did a bit of testing and found this. When calling the .ToJson() method on a GeoTransformation object a NotImplementedException is thrown &amp;gt;&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;cimMapDefinition.DatumTransforms[0].GeoTransformation.ToJson();&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Someone got an idea how a GeoTransformation can be serialized properly?&lt;/P&gt;</description>
      <pubDate>Tue, 25 Apr 2023 10:03:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/cimdatumtransform-serialization-to-json-not/m-p/1282235#M68338</guid>
      <dc:creator>marco_vertigis</dc:creator>
      <dc:date>2023-04-25T10:03:47Z</dc:date>
    </item>
  </channel>
</rss>

