Answers for "Field Calculate in FME" https://knowledge.safe.com/questions/81541/field-calculate-in-fme.html The latest answers for the question "Field Calculate in FME" Answer by david_r https://knowledge.safe.com/answers/81550/view.html < div class = "fr-view clearfix">

In a PythonCaller you can do:

import uuid def FeatureProcessor(feature): value = uuid.uuid4() feature.setAttribute('my_uuid', '{%s}' % value)

This will add the attribute 'my_uuid' to every feature that passes through.


结婚,2018年10月31日17:42:42格林尼治时间 david_r
Answer by erik_jan https://knowledge.safe.com/answers/81542/view.html < div class = "fr-view clearfix">

I believe the PythonCaller transformer could call this script.

Wed, 31 Oct 2018 17:23:11 GMT erik_jan