<?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: CIMDatumTransform serialization to JSON not working properly in ArcGIS Pro SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/cimdatumtransform-serialization-to-json-not/m-p/1284453#M9752</link>
    <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/618958"&gt;@marco_vertigis&lt;/a&gt;&amp;nbsp; the developer is not able to duplicate your issue using the following code snippet in an add-in:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;      return QueuedTask.Run(() =&amp;gt;
      {
        var map = MapView.Active.Map;
        var mapDef = map.GetDefinition();
        var json = mapDef.DatumTransforms[0].GeoTransformation.ToJson();
      });&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can you&amp;nbsp;send us a .mapx?&amp;nbsp; We don’t need the actual data, so it’s OK if the layer connections are all broken.&lt;BR /&gt;Maybe the cause is data related.&amp;nbsp; &amp;nbsp;You can use the 'Esri Communities' messages to keep the mapx confidential.&amp;nbsp; &amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Wolf&lt;/P&gt;</description>
    <pubDate>Mon, 01 May 2023 18:28:25 GMT</pubDate>
    <dc:creator>Wolf</dc:creator>
    <dc:date>2023-05-01T18:28:25Z</dc:date>
    <item>
      <title>CIMDatumTransform serialization to JSON not working properly</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/cimdatumtransform-serialization-to-json-not/m-p/1282705#M9731</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;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&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;&amp;nbsp;&lt;/P&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;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&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;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&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;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&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;&amp;nbsp;&lt;/P&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>Wed, 26 Apr 2023 09:21:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/cimdatumtransform-serialization-to-json-not/m-p/1282705#M9731</guid>
      <dc:creator>marco_vertigis</dc:creator>
      <dc:date>2023-04-26T09:21:15Z</dc:date>
    </item>
    <item>
      <title>Re: CIMDatumTransform serialization to JSON not working properly</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/cimdatumtransform-serialization-to-json-not/m-p/1283374#M9737</link>
      <description>&lt;P&gt;Sorry about that, somebody from Product Development will look at this issue and try to fix the problem with an upcoming 3.2 patch.&lt;/P&gt;</description>
      <pubDate>Thu, 27 Apr 2023 15:18:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/cimdatumtransform-serialization-to-json-not/m-p/1283374#M9737</guid>
      <dc:creator>Wolf</dc:creator>
      <dc:date>2023-04-27T15:18:43Z</dc:date>
    </item>
    <item>
      <title>Re: CIMDatumTransform serialization to JSON not working properly</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/cimdatumtransform-serialization-to-json-not/m-p/1284453#M9752</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/618958"&gt;@marco_vertigis&lt;/a&gt;&amp;nbsp; the developer is not able to duplicate your issue using the following code snippet in an add-in:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;      return QueuedTask.Run(() =&amp;gt;
      {
        var map = MapView.Active.Map;
        var mapDef = map.GetDefinition();
        var json = mapDef.DatumTransforms[0].GeoTransformation.ToJson();
      });&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can you&amp;nbsp;send us a .mapx?&amp;nbsp; We don’t need the actual data, so it’s OK if the layer connections are all broken.&lt;BR /&gt;Maybe the cause is data related.&amp;nbsp; &amp;nbsp;You can use the 'Esri Communities' messages to keep the mapx confidential.&amp;nbsp; &amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Wolf&lt;/P&gt;</description>
      <pubDate>Mon, 01 May 2023 18:28:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/cimdatumtransform-serialization-to-json-not/m-p/1284453#M9752</guid>
      <dc:creator>Wolf</dc:creator>
      <dc:date>2023-05-01T18:28:25Z</dc:date>
    </item>
    <item>
      <title>Re: CIMDatumTransform serialization to JSON not working properly</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/cimdatumtransform-serialization-to-json-not/m-p/1286009#M9778</link>
      <description>&lt;P&gt;I sent you the maps as private message.&lt;/P&gt;</description>
      <pubDate>Fri, 05 May 2023 07:35:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/cimdatumtransform-serialization-to-json-not/m-p/1286009#M9778</guid>
      <dc:creator>marco_vertigis</dc:creator>
      <dc:date>2023-05-05T07:35:55Z</dc:date>
    </item>
  </channel>
</rss>

