属性计算器
Validates any number of attributes against specific test conditions and routes the feature according to the outcome of the test(s). Features that fail one or more tests will have the reasons for failure documented on an attribute and list attribute on the output feature.
在put Ports
This transformer accepts any feature.
输出端口
如果测试通过,则通过该特征输出通过了港口。
If the test(s) fail, the feature is output via the失败端口,具有描述故障的附加属性。
参数
AttributeValidator的参数配置为表中的行。每一行都描述了可应用于多个属性的不同验证规则。第一列允许用户选择要根据特定测试或规则验证的属性。用户可以在这里选择一个或多个属性。第二列允许用户指定要应用于第一列中选择的属性的测试类型。可用的测试在下面的操作员部分进行了描述。如果测试需要用户输入额外的配置信息,则会在第三列中输入。
为了通过通过该功能输出通过port all of the validation rules must pass. In the event an attribute fails one of the validation rules specified, a description of the failure will be added to thefme_validation_message {}列表属性。此列表将包含每个故障的信息。另外一个fme_validation_message.将添加属性,这将列出故障的最后一个原因。
操作员 | Description | 例子 |
---|---|---|
Type |
属性的值是否可转换为列出的类型之一? 类型包括整数、双精度、数字和布尔值。您可以选择多个类型,当选择多个类型时,如果某个特征可转换为一个或多个列出的类型,则该特征将变快。Integer和Double类型分别测试属性的内容是否可以表示为整数或浮点数。数值测试值是否可转换为数字(行为与double相同)。布尔测试字符串是否匹配布尔表示形式之一(TRUE、TRUE、TRUE、1、FALSE、FALSE、FALSE、0) |
X=7,如果X是数字(是=通过) X=true, If X is Booelan (yes =Passed) |
在范围内 |
该值是否属于使用设定表示法指定的数字范围内? 在这个符号中,[]s表示包含边界,即[0,8]对应于0<=X<=8。而()s表示排他边界,即(0,8)对应于0 |
x = 3,如果x范围内[3,8](是=通过) X=3, if X In Range (3,8] (no = Failed) |
Case |
Does the value of the attribute comply with the selected case pattern? |
X=The pen is blue, if X Case Title Case (yes = Passed) X=笔为蓝色,如果X Case Full Title Case(是=通过) |
最小长度 |
指定属性的值是否大于字符中的最小长度? |
x = cat如果x最小长度2(是=通过) X=Cat如果X最小长度4(否=失败) |
Maximum Length |
Does the value of the specified attribute have under the maximum length in characters? |
X=Cat如果X最大长度4(是=通过) X=Cat If X Maximum Length 2 (no =failed) |
在 |
在其中测试某个值的值的列表。右边的值是逗号分隔的值列表或范围。 |
X=bird, if X In Set cat,dog,horse (no = Failed) x =鸟,如果x在套猫,狗,鸟(是=通过) |
匹配正则表达式 |
值是否与正则表达式匹配? |
x = abcd,如果x匹配正则表达式。* bc。*(是=通过) |
可供选择 |
Is the value of the specified attribute encodable in the specified encoding without data loss? |
如果x=本如果x编码cp392通过日语窗口 如果编码DOS Icelandic失败 |
不允许为空 |
属性是否存在于功能上,而不是null? |
|
独一无二的 |
另一个功能的属性值是否与此属性之前的值相同? 注意这是一个非阻塞操作,第一个出现值将通过,而后续出现将失败 |
|
有价值 | Does the attribute have the specified value? | 如果指定的属性匹配(yes=通过) |
编辑变压器参数
使用一组菜单选项,可以通过引用工作区中的其他元素来分配变压器参数。一些变压器也可提供更高级的功能,例如高级编辑器和算术编辑器。要访问这些选项的菜单,请单击除适用的参数旁边。有关更多信息,请参阅Transformer Parameter Menu Options.
变压器类别
技术历史
This transformer replaced the AttributeClassifier transformer.
Search FME Knowledge Center
Search for samples and information about this transformer on theFME知识中心.