camelote

Specify Geographic Transformation as user input in python script

Discussion created by camelote on Apr 27, 2011
Latest reply on Apr 28, 2011 by camelote
I have a script that includes the Project Raster process. The standard ArcToolbox tool dialog has an optional input to specify the Geographic Transformation. If it detects a datum transformation is needed between your input and output coordinate systems, it will automatically populate the drop-down list with relevant datum transformation options.

I would like to implement this type of parameter in my python script, but haven't been able to figure out how to go about it. The data type for this parameter is listed as "String" so I presume you could enter in the name for a transformation manually (i.e. "NAD_1927_To_NAD_1983_NADCON"), but it'd sure save a lot of trouble (who's going to remember the exact name?) if I could get the list to populate like on the standard tool.

Anyone ever do this successfully?

Many thanks!

Outcomes