<?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 ProjectionTransformation wgs84 in ArcGIS Pro SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/projectiontransformation-wgs84/m-p/828768#M3219</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;if I write projection trasformation using wgs84 the create method crash. If I use another sr != 4326 the create method is OK. Is a bug?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;&amp;nbsp; SpatialReference sr4326 &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; SpatialReferences&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;WGS84&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
&amp;nbsp; SpatialReference sr3857 &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; SpatialReferences&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;WebMercator&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;

&amp;nbsp; ProjectionTransformation projTransFromSRs &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; ArcGIS&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;Core&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;Geometry&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;ProjectionTransformation&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;Create&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;sr3857&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;sr4326&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 12 Dec 2021 09:59:53 GMT</pubDate>
    <dc:creator>nicogis</dc:creator>
    <dc:date>2021-12-12T09:59:53Z</dc:date>
    <item>
      <title>ProjectionTransformation wgs84</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/projectiontransformation-wgs84/m-p/828768#M3219</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;if I write projection trasformation using wgs84 the create method crash. If I use another sr != 4326 the create method is OK. Is a bug?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;&amp;nbsp; SpatialReference sr4326 &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; SpatialReferences&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;WGS84&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
&amp;nbsp; SpatialReference sr3857 &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; SpatialReferences&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;WebMercator&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;

&amp;nbsp; ProjectionTransformation projTransFromSRs &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; ArcGIS&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;Core&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;Geometry&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;ProjectionTransformation&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;Create&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;sr3857&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;sr4326&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 09:59:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/projectiontransformation-wgs84/m-p/828768#M3219</guid>
      <dc:creator>nicogis</dc:creator>
      <dc:date>2021-12-12T09:59:53Z</dc:date>
    </item>
    <item>
      <title>Re: ProjectionTransformation wgs84</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/projectiontransformation-wgs84/m-p/828769#M3220</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Domenico, this is definitely a bug. Thanks! We will fix at 1.2. "&lt;SPAN style="color: #000000; font-family: Consolas, 'Courier New', Courier, mono, serif; font-size: 12px;"&gt;projTransFromSRs&lt;/SPAN&gt;" should be returned but, of course, its Transformation property will be null in this case.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note: "==" is not overloaded so the false is because the SRs are not the same instance. Please use "IsEqual".&lt;/P&gt;&lt;P&gt;Said another way:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt;var &lt;/SPAN&gt;&lt;SPAN style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt;sr1 = &lt;/SPAN&gt;&lt;SPAN style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;new&lt;/SPAN&gt; &lt;SPAN style="font-size: 9.5pt; font-family: Consolas; color: #2b91af; background: white;"&gt;SpatialReferenceBuilder&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.5pt; font-family: Consolas; color: #2b91af; background: white;"&gt;SpatialReferences&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt;.WGS84.Wkid).ToSpatialReference();&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt;&lt;SPAN style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt;var &lt;/SPAN&gt;&lt;SPAN style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt;sr2 = &lt;/SPAN&gt;&lt;SPAN style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;new&lt;/SPAN&gt; &lt;SPAN style="font-size: 9.5pt; font-family: Consolas; color: #2b91af; background: white;"&gt;SpatialReferenceBuilder&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.5pt; font-family: Consolas; color: #2b91af; background: white;"&gt;SpatialReferences&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt;.WGS84.Wkid).ToSpatialReference();&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black; background: white; font-size: 9.5pt; font-family: Consolas;"&gt;sr1 == sr2 //False!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black; background: white; font-size: 9.5pt; font-family: Consolas;"&gt;sr1.IsEqual(sr2) //True!&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Sep 2015 22:28:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/projectiontransformation-wgs84/m-p/828769#M3220</guid>
      <dc:creator>CharlesMacleod</dc:creator>
      <dc:date>2015-09-30T22:28:47Z</dc:date>
    </item>
  </channel>
</rss>

