Hi All,
I'm having problems looping a custom transformer I've created that makes use of adjacent feature attributes.
The workbench I'm working on is intended to smooth DTM data and then identify trends in gradient along a set line. I've tested the process by manually replicating the transformers I'd like to loop but when I add them to a custom transformer and try to loop them I get an error (please see attached image).Before the data enters the loop I expose the adjacent z value and calculate: IF z-z+1 >=0.01 then z-(z-z+1) else z. I then write the result to an attribute 'bicubic_smoothing' so that the data entering the loop doesn't use adjacent attributes. The 'AttributeCreator_15' in the loop uses adjacent features to asses the difference between the first 'bicubic_smoothing' attribute and the second 'bicubic_smoothing' attribute and so on. 'StatisticsCalculator_2' assess the range of the values created by 'AttributeCreator_15'. 'Tester_2' assess if the values calculated by 'StatisticsCalculator_2' meet the required range threshold. If the results don't meet the requirement they go to the tester failed port. 'AttributeCreator_16' applies the calculation IF 'bicubic_smoothing'-'bicubic_smoothing'+1 >=0.01 then 'bicubic_smoothing'-('bicubic_smoothing'-'bicubic_smoothing'+1) else 'bicubic_smoothing'. Attribute manager then writes this result to an attribute to remove the need for adjacent features and then loops back (please see screenshot below of the custom transformer).
Thanks in advance for your help.