fmeobjects.FMENull.getTrait¶
-
调频ENull.
getTrait
( traitName ) ¶ -
Retrieves the geometry trait value of the specified trait name. For Python 2.7, strings are returned as one of two possible types - system encoded strings or unicode strings, if the source trait was encoded. Null trait values will be returned as an empty string. Binary blob traits are returned as a bytearray.
None
is returned when the trait is not found on the geometry.Parameters: traitName(str) – The name of the geometry trait. Return type: bool,int, long,浮动, six.string_types,中bytearray,bytesorNone Returns: The trait value. Raises: 调频EException– An exception is raised if there was a problem in retrieving the trait value.