Hello everybody,
in my workbench the scale of an output raster type feature should depend on an attribute RADIUS, which is defined as a numeric published parameter the user can manipulate. I realized that with a private parameter which is defined through a python script as you see below. I set the default value of the RADIUS attribute to '500' so the scale should be '4000'... But the script returns the value '15000'. I also tried to return just the value of the RADIUS itself in this script to test if the RADIUS value is still setted to 500 when the python script is running and it is! And the RADIUS attribute is definitely numeric. It has the type 'Number'. What could be the problem? I don't really know what to do.
Best regards,
Felix
scale=0
if (FME_MacroValues['RADIUS'] <= 500):
scale=4000
elif (500 < FME_MacroValues['RADIUS'] <= 1000):
scale=8000
else:
scale=15000
return scale