<?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: DatumTransformation returns the wrong in and out SpatialReferences for the requested in .NET Maps SDK Questions</title>
    <link>https://community.esri.com/t5/net-maps-sdk-questions/datumtransformation-returns-the-wrong-in-and-out/m-p/1657375#M13731</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/51850"&gt;@YasunariTosa1&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;I think this could be down to expecations of the input &amp;amp; output spatial reference of a transformation, and the doc not being good enough here. Transformations deal with a change in datum, and that's part of the underlying geographic coordinate system.&lt;/P&gt;&lt;P&gt;If your&amp;nbsp;input or output spatial references are projected (which they both are in your case above - &lt;FONT face="andale mono,times"&gt;IsProjected==true&lt;/FONT&gt;), then instead of checking the &lt;FONT face="andale mono,times"&gt;WKID&lt;/FONT&gt; directly, check the &lt;FONT face="andale mono,times"&gt;BaseGeographic.WKID&lt;/FONT&gt; property instead. E.g I'd expect the &lt;FONT face="andale mono,times"&gt;inSP.BaseGeographic.WKID&lt;/FONT&gt;&amp;nbsp;to be 4269, and equal to &lt;FONT face="andale mono,times"&gt;defaultDT.InputSpatialReference.WKID&lt;/FONT&gt;.&lt;/P&gt;&lt;P&gt;This isnt detailed in API reference for &lt;FONT face="andale mono,times"&gt;DatumTransformation&lt;/FONT&gt;&amp;nbsp;though - I'll submit an issue to get this documentation updated with this information - thanks for highlighting it to us.&lt;/P&gt;</description>
    <pubDate>Mon, 13 Oct 2025 11:06:08 GMT</pubDate>
    <dc:creator>ShellyGill1</dc:creator>
    <dc:date>2025-10-13T11:06:08Z</dc:date>
    <item>
      <title>DatumTransformation returns the wrong in and out SpatialReferences for the requested</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/datumtransformation-returns-the-wrong-in-and-out/m-p/1656735#M13721</link>
      <description>&lt;P&gt;I donwloaded&amp;nbsp;&lt;STRONG&gt;Projection_Engine_Data_200_8_0&lt;/STRONG&gt; and expanded in my local directory.&amp;nbsp; I set&amp;nbsp;TransformationCatalog.ProjectionEngineDirectory to this directory.&amp;nbsp; &amp;nbsp;I did the following to retrieve DatumTransformation:&lt;/P&gt;&lt;P&gt;SpatialReference inSP = SpatialReference.Create(&lt;STRONG&gt;3338&lt;/STRONG&gt;); // Alaska Albers&lt;BR /&gt;SpatialReference outSP = SpatialReference.Create(&lt;STRONG&gt;3857&lt;/STRONG&gt;); // WGS84 Web Mercator Auxiliary Sphere&lt;BR /&gt;DatumTransformation defaultDT = TransformationCatalog.&lt;STRONG&gt;GetTransformation&lt;/STRONG&gt;(inSP, outSP);&lt;BR /&gt;The problem with defaultDT has the wrong InputSpatialReference(&lt;STRONG&gt;4269&lt;/STRONG&gt;) and OutputSpatialReference(&lt;STRONG&gt;4326&lt;/STRONG&gt;&lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="YasunariTosa1_0-1760026358654.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/141690i8BE131ACB4BE35CB/image-size/medium?v=v2&amp;amp;px=400" role="button" title="YasunariTosa1_0-1760026358654.png" alt="YasunariTosa1_0-1760026358654.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Try to get more by using GetTransformationsBySuitability:&lt;/P&gt;&lt;P&gt;IReadOnlyList&amp;lt;DatumTransformation&amp;gt; tfLists =&lt;BR /&gt;&lt;STRONG&gt;TransformationCatalog.GetTransformationsBySuitability&lt;/STRONG&gt;(inSP, outSP);&lt;BR /&gt;var foundDTLists = tfLists.Where(dt =&amp;gt; dt.InputSpatialReference.Wkid == &lt;STRONG&gt;3338&lt;/STRONG&gt;).ToList(); // &lt;STRONG&gt;returns 0!&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Is there a way to get DatumTransformation with input reference to wkid =3338?&lt;/P&gt;</description>
      <pubDate>Thu, 09 Oct 2025 16:27:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/datumtransformation-returns-the-wrong-in-and-out/m-p/1656735#M13721</guid>
      <dc:creator>YasunariTosa1</dc:creator>
      <dc:date>2025-10-09T16:27:36Z</dc:date>
    </item>
    <item>
      <title>Re: DatumTransformation returns the wrong in and out SpatialReferences for the requested</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/datumtransformation-returns-the-wrong-in-and-out/m-p/1657375#M13731</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/51850"&gt;@YasunariTosa1&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;I think this could be down to expecations of the input &amp;amp; output spatial reference of a transformation, and the doc not being good enough here. Transformations deal with a change in datum, and that's part of the underlying geographic coordinate system.&lt;/P&gt;&lt;P&gt;If your&amp;nbsp;input or output spatial references are projected (which they both are in your case above - &lt;FONT face="andale mono,times"&gt;IsProjected==true&lt;/FONT&gt;), then instead of checking the &lt;FONT face="andale mono,times"&gt;WKID&lt;/FONT&gt; directly, check the &lt;FONT face="andale mono,times"&gt;BaseGeographic.WKID&lt;/FONT&gt; property instead. E.g I'd expect the &lt;FONT face="andale mono,times"&gt;inSP.BaseGeographic.WKID&lt;/FONT&gt;&amp;nbsp;to be 4269, and equal to &lt;FONT face="andale mono,times"&gt;defaultDT.InputSpatialReference.WKID&lt;/FONT&gt;.&lt;/P&gt;&lt;P&gt;This isnt detailed in API reference for &lt;FONT face="andale mono,times"&gt;DatumTransformation&lt;/FONT&gt;&amp;nbsp;though - I'll submit an issue to get this documentation updated with this information - thanks for highlighting it to us.&lt;/P&gt;</description>
      <pubDate>Mon, 13 Oct 2025 11:06:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/datumtransformation-returns-the-wrong-in-and-out/m-p/1657375#M13731</guid>
      <dc:creator>ShellyGill1</dc:creator>
      <dc:date>2025-10-13T11:06:08Z</dc:date>
    </item>
  </channel>
</rss>

