<?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 to update a parameter with available geographic transformations? in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/how-to-update-a-parameter-with-available/m-p/193868#M14860</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;SPAN style="background-color: #ffffff;"&gt;Have you tried the latter to see if a transformation is offered in the process.&lt;/SPAN&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;It doesn't, or at least not as far as I can tell. This just lets me specify a spatial reference but I already know both spatial references that I need, one gets derived from the input raster and the other&amp;nbsp;is always WGS84.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 12 Feb 2020 15:23:55 GMT</pubDate>
    <dc:creator>DanielSuttor</dc:creator>
    <dc:date>2020-02-12T15:23:55Z</dc:date>
    <item>
      <title>How to update a parameter with available geographic transformations?</title>
      <link>https://community.esri.com/t5/python-questions/how-to-update-a-parameter-with-available/m-p/193866#M14858</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a script that in its first step is supposed to transform a user selected raster to WGS84.&lt;/P&gt;&lt;P&gt;What I'd like to implement in the tool is a string parameter whose&amp;nbsp;&lt;SPAN&gt;value list&lt;/SPAN&gt;&amp;nbsp;gets populated with all available geographic transformations from which the user can then select the transformation he desires. Determining the available transformations is easy enough (as descriped here:&amp;nbsp;&lt;A class="link-titled" href="https://desktop.arcgis.com/de/arcmap/10.3/analyze/arcpy-functions/listtransformations.htm" title="https://desktop.arcgis.com/de/arcmap/10.3/analyze/arcpy-functions/listtransformations.htm"&gt;ListTransformations—Help | ArcGIS Desktop&lt;/A&gt;)&amp;nbsp;but I don't know how to use the resulting list as a value list for a parameter in my tool.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It's essentially the same as described here:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.esri.com/thread/27188"&gt;Specify Geographic Transformation as user input in python script&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It's been 9 years since that post and I'm hoping that there's now maybe a way to do this.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Feb 2020 14:26:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/how-to-update-a-parameter-with-available/m-p/193866#M14858</guid>
      <dc:creator>DanielSuttor</dc:creator>
      <dc:date>2020-02-12T14:26:15Z</dc:date>
    </item>
    <item>
      <title>Re: How to update a parameter with available geographic transformations?</title>
      <link>https://community.esri.com/t5/python-questions/how-to-update-a-parameter-with-available/m-p/193867#M14859</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There are tool parameters for coordinate system, projection file and spatial reference.&amp;nbsp; Have you tried the latter to see if a transformation is offered in the process.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Feb 2020 15:03:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/how-to-update-a-parameter-with-available/m-p/193867#M14859</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2020-02-12T15:03:05Z</dc:date>
    </item>
    <item>
      <title>Re: How to update a parameter with available geographic transformations?</title>
      <link>https://community.esri.com/t5/python-questions/how-to-update-a-parameter-with-available/m-p/193868#M14860</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;SPAN style="background-color: #ffffff;"&gt;Have you tried the latter to see if a transformation is offered in the process.&lt;/SPAN&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;It doesn't, or at least not as far as I can tell. This just lets me specify a spatial reference but I already know both spatial references that I need, one gets derived from the input raster and the other&amp;nbsp;is always WGS84.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Feb 2020 15:23:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/how-to-update-a-parameter-with-available/m-p/193868#M14860</guid>
      <dc:creator>DanielSuttor</dc:creator>
      <dc:date>2020-02-12T15:23:55Z</dc:date>
    </item>
    <item>
      <title>Re: How to update a parameter with available geographic transformations?</title>
      <link>https://community.esri.com/t5/python-questions/how-to-update-a-parameter-with-available/m-p/193869#M14861</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I know transformations are offered if applicable when using the Project tool, maybe that isn't carried forward within a tool.&lt;/P&gt;&lt;P&gt;I don't have a toolbox tool that used it so I can't test&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Feb 2020 15:30:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/how-to-update-a-parameter-with-available/m-p/193869#M14861</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2020-02-12T15:30:25Z</dc:date>
    </item>
    <item>
      <title>Re: How to update a parameter with available geographic transformations?</title>
      <link>https://community.esri.com/t5/python-questions/how-to-update-a-parameter-with-available/m-p/193870#M14862</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I managed to do it and it was actually very simple, all it took were 4 lines in the ToolValidator:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;def updateParameters(self):&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;if self.params[0].altered:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;spatial_ref_input = arcpy.Describe(self.params[0]).spatialReference&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;transformations = arcpy.ListTransformations(spatial_ref_input, 'WGS 1984')&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;self.params[1].filter.list = transformations&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Feb 2020 15:15:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/how-to-update-a-parameter-with-available/m-p/193870#M14862</guid>
      <dc:creator>DanielSuttor</dc:creator>
      <dc:date>2020-02-13T15:15:18Z</dc:date>
    </item>
    <item>
      <title>Re: How to update a parameter with available geographic transformations?</title>
      <link>https://community.esri.com/t5/python-questions/how-to-update-a-parameter-with-available/m-p/193871#M14863</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ahhh !&amp;nbsp; good one&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Feb 2020 15:19:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/how-to-update-a-parameter-with-available/m-p/193871#M14863</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2020-02-13T15:19:19Z</dc:date>
    </item>
  </channel>
</rss>

