<?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: Add Datum Transform to Spatial Reference Environment, how? in ArcGIS Pro SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/add-datum-transform-to-spatial-reference/m-p/820324#M2812</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jon, I just want to let you know that I am still looking into this. I should have some more information soon.&lt;/P&gt;&lt;P&gt;Annette&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 08 Aug 2018 18:14:15 GMT</pubDate>
    <dc:creator>AnnetteLocke</dc:creator>
    <dc:date>2018-08-08T18:14:15Z</dc:date>
    <item>
      <title>Add Datum Transform to Spatial Reference Environment, how?</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/add-datum-transform-to-spatial-reference/m-p/820320#M2808</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In ArcObjects, we could call ISpatialReferenceFactory2::get_GeoTransformationDefaults() and then IGeoTransformationOperationSet::Set() to add GeoTransformations. Following that, calling Project() either explicitly or implicitly (e.g. when fetching a Raster with a different Spatial Reference) would use these as appropriate depending on the GCS of the Spatial References. Calling ProjectEx() was not required, and anyway would not be used in the implicit cases.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(In our particular case, we currently only need for an OSGB &amp;lt;-&amp;gt; WGS84 transform (e.g. esriSRGeoTransformation_OSGB1936_To_WGS1984Petrol) to be applied when converting between 27700 and 4326).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there an equivalent available in ArcGIS Pro SDK?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Jun 2018 12:11:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/add-datum-transform-to-spatial-reference/m-p/820320#M2808</guid>
      <dc:creator>JonHutchings</dc:creator>
      <dc:date>2018-06-29T12:11:45Z</dc:date>
    </item>
    <item>
      <title>Re: Add Datum Transform to Spatial Reference Environment, how?</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/add-datum-transform-to-spatial-reference/m-p/820321#M2809</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jon,&lt;/P&gt;&lt;P&gt;There is not an equivalent to setting a default transformation. Create a ProjectionTransformation and call GeometryEngine.ProjectEx.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Annette&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Jul 2018 20:57:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/add-datum-transform-to-spatial-reference/m-p/820321#M2809</guid>
      <dc:creator>AnnetteLocke</dc:creator>
      <dc:date>2018-07-02T20:57:35Z</dc:date>
    </item>
    <item>
      <title>Re: Add Datum Transform to Spatial Reference Environment, how?</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/add-datum-transform-to-spatial-reference/m-p/820322#M2810</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is it on the roadmap to be added in future? It was an extremely useful feature, especially when there wasn't a call to Project() in our code that could be replaced with ProjectEx().&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have found when using e.g. ProjectionTransformation.Create(sr27700, sr4326) that "OSGB_1936_To_WGS_1984_7" is automatically added as the Transformation (and, when the parameters are swapped, IsForward correctly set to false &lt;IMG src="https://community.esri.com/legacyfs/online/emoticons/happy.png" /&gt; ). This, actually, should be sufficient for our needs so long as the same Transformation selection will also occur and be applied when e.g. requesting a Raster as BNG from a WebMercator Raster Dataset with, say:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;Raster raster = rasterDataset.CreateFullRaster(); // e.g. from WebMercator dataset&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;raster.SetSpatialReference(sr27700);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;Envelope ext = EnvelopeBuilder.CreateEnvelope(400000, 100000, 450000, 150000, sr27700);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; // etc&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ProjectionTransformation.CreateFromEnvironment(sr27700, sr4326), however, returns with the Transformation list empty. Also, its documentation page refers to IGeoTransformationOperationSet::Set !&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Jul 2018 15:38:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/add-datum-transform-to-spatial-reference/m-p/820322#M2810</guid>
      <dc:creator>JonHutchings</dc:creator>
      <dc:date>2018-07-03T15:38:30Z</dc:date>
    </item>
    <item>
      <title>Re: Add Datum Transform to Spatial Reference Environment, how?</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/add-datum-transform-to-spatial-reference/m-p/820323#M2811</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Let me look into this, Jon. I will get back to you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Annette&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Jul 2018 19:12:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/add-datum-transform-to-spatial-reference/m-p/820323#M2811</guid>
      <dc:creator>AnnetteLocke</dc:creator>
      <dc:date>2018-07-11T19:12:52Z</dc:date>
    </item>
    <item>
      <title>Re: Add Datum Transform to Spatial Reference Environment, how?</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/add-datum-transform-to-spatial-reference/m-p/820324#M2812</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jon, I just want to let you know that I am still looking into this. I should have some more information soon.&lt;/P&gt;&lt;P&gt;Annette&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Aug 2018 18:14:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/add-datum-transform-to-spatial-reference/m-p/820324#M2812</guid>
      <dc:creator>AnnetteLocke</dc:creator>
      <dc:date>2018-08-08T18:14:15Z</dc:date>
    </item>
  </channel>
</rss>

