fmeobjects.FMECurve.copyTraitsFromGeometry¶
-
FMECurve.
copyTraitsFromGeometry
(sourceGeometry, overwriteExisting, regexp, prefix)¶ Copies all the traits from the given geometry that match the (optional) regular expression.
Parameters: - sourceGeometry (FMEGeometry) – The geometry to copy traits from.
- overwriteExisting (bool) – Existing traits will be overwritten only if overwriteExisting is
True
. - regexp (str) – (Optional) The regular expression to match the traits against. If regexp is not specified, then all traits will be copied.
- prefix (str) – (Optional) The prefix is put on all the trait names as they are copied. If it is not specified, a prefix will not be added to the trait names.
Return type: