Select to view content in your preferred language

Raster script output symbology problem

2583
1
08-27-2014 01:40 AM
NtriankosIoannis
Deactivated User

Hi,

I' am having a problem setting symbology in raster output of a python toolbox script.

The script runs fine, the output raster is correct and is added to display via SetParameterAsText, but the lyr file defined in parameters properties is not assigned.

Below is the definition of output parameter

 

# Final map         paramOut=arcpy.Parameter(             displayName="Output suitability map",             name="Output_suitability_map",             datatype="GPRasterLayer",             parameterType="Required",             direction="Output")         paramOut.Symbology= "D:\full_lyr_path.lyr"

Everything looks fine according to documentation, but symbology is not working...

 

Thanks in advance

John

Tags (3)
0 Kudos
1 Reply
NtriankosIoannis
Deactivated User

it finaly worked just rewriting the parameter definition and recreating the layer symbology

0 Kudos