<?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: How can I get a wkt string when the SpatialReference has a wkt2 format? in ArcGIS Pro SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/how-can-i-get-a-wkt-string-when-the/m-p/1677839#M13380</link>
    <description>&lt;P&gt;I updated to the nuget package v3.2.x.&amp;nbsp; For the spatial reference&amp;nbsp;Wkid 9748,&lt;BR /&gt;NAD_1983_2011_StatePlane_Alabama_East_(ftUS)&amp;nbsp; GetWkt2 and Wkt both have the same Wkt2 format ("PROJCRS...")&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;string test1 = spatialReference.GetWkt2(WktFormatMode.None);
string test2 = spatialReference.Wkt;&lt;/LI-CODE&gt;&lt;P&gt;I would expect Wkt to be in the original Wkt format here ("PROJCS..")&lt;/P&gt;</description>
    <pubDate>Wed, 14 Jan 2026 15:15:25 GMT</pubDate>
    <dc:creator>KarlBeal</dc:creator>
    <dc:date>2026-01-14T15:15:25Z</dc:date>
    <item>
      <title>How can I get a wkt string when the SpatialReference has a wkt2 format?</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/how-can-i-get-a-wkt-string-when-the/m-p/1677418#M13373</link>
      <description>&lt;P&gt;When working with a SpatialReference selected from the&amp;nbsp;ArcGIS.Desktop.Mapping.Controls.CoordinateSystemsControl, sometimes the (ArcGIS.Core.Geometry) SpatialReference wkt is in old wkt format and other times it is in wkt2.&lt;/P&gt;&lt;P&gt;I need to always convert to wkt1. How can I do that?&lt;/P&gt;&lt;P&gt;Edit: We are on&amp;nbsp;Esri.ArcGISPro.Extensions30 v3.1 and cannot upgrade since we are currently targeting .net6&lt;/P&gt;</description>
      <pubDate>Tue, 13 Jan 2026 19:35:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/how-can-i-get-a-wkt-string-when-the/m-p/1677418#M13373</guid>
      <dc:creator>KarlBeal</dc:creator>
      <dc:date>2026-01-13T19:35:50Z</dc:date>
    </item>
    <item>
      <title>Re: How can I get a wkt string when the SpatialReference has a wkt2 format?</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/how-can-i-get-a-wkt-string-when-the/m-p/1677839#M13380</link>
      <description>&lt;P&gt;I updated to the nuget package v3.2.x.&amp;nbsp; For the spatial reference&amp;nbsp;Wkid 9748,&lt;BR /&gt;NAD_1983_2011_StatePlane_Alabama_East_(ftUS)&amp;nbsp; GetWkt2 and Wkt both have the same Wkt2 format ("PROJCRS...")&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;string test1 = spatialReference.GetWkt2(WktFormatMode.None);
string test2 = spatialReference.Wkt;&lt;/LI-CODE&gt;&lt;P&gt;I would expect Wkt to be in the original Wkt format here ("PROJCS..")&lt;/P&gt;</description>
      <pubDate>Wed, 14 Jan 2026 15:15:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/how-can-i-get-a-wkt-string-when-the/m-p/1677839#M13380</guid>
      <dc:creator>KarlBeal</dc:creator>
      <dc:date>2026-01-14T15:15:25Z</dc:date>
    </item>
    <item>
      <title>Re: How can I get a wkt string when the SpatialReference has a wkt2 format?</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/how-can-i-get-a-wkt-string-when-the/m-p/1678255#M13382</link>
      <description>&lt;P&gt;Hi Karl, you are right. It should be the original wkt. This will be fixed in the next release, but in the meantime, if you recreate the spatial reference using the wkid, the newly created spatial reference should have the original wkt.&lt;/P&gt;</description>
      <pubDate>Thu, 15 Jan 2026 21:57:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/how-can-i-get-a-wkt-string-when-the/m-p/1678255#M13382</guid>
      <dc:creator>AnnetteLocke</dc:creator>
      <dc:date>2026-01-15T21:57:29Z</dc:date>
    </item>
    <item>
      <title>Re: How can I get a wkt string when the SpatialReference has a wkt2 format?</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/how-can-i-get-a-wkt-string-when-the/m-p/1678480#M13385</link>
      <description>&lt;P&gt;Do you know how many spatial references are impacted by this bug? Did I just happen to stumble on an outlier?&lt;/P&gt;&lt;P&gt;When you say fixed in the next release, are you referring to the Desktop application or the SDK?&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/47911"&gt;@AnnetteLocke&lt;/a&gt;&amp;nbsp;wrote:if you recreate the spatial reference using the wkid, the newly created spatial reference should have the original wkt.&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;I was unable to get this to work. Shown below is my code (API v3.1). The WKT on both spatial references are equal and in wkt2 format&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;var srNewlyBuilt = SpatialReferenceBuilder.CreateSpatialReference(spatialReference.Wkid);

bool isWktEqual = srNewlyBuilt.Wkt.Equals(spatialReference.Wkt, StringComparison.OrdinalIgnoreCase);&lt;/LI-CODE&gt;</description>
      <pubDate>Fri, 16 Jan 2026 21:37:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/how-can-i-get-a-wkt-string-when-the/m-p/1678480#M13385</guid>
      <dc:creator>KarlBeal</dc:creator>
      <dc:date>2026-01-16T21:37:45Z</dc:date>
    </item>
  </channel>
</rss>

