AttributeDecompressor
解压缩和解密被压缩的指定属性的值AttributeCompressor。
典型用途
- 先前由加密解密密码加密值AttributeCompressor
- Decompress XML or large geometries that were previously compressed by theAttributeCompressor
它是如何工作的?
该AttributeDecompressor让你挑一个,一些或所有的呼入功能属性进行解压缩。如果压缩属性已被加密,可提供的密码进行解密。特点通过变压器通过输出与他们不变的属性名称,选择值解压缩,和其他值不变。
例子
In this portion of a workspace, data with a geometry attribute that was previously compressed by theAttributeCompressor已被读取,并使用需求。该压缩数据被包含在_geometryattribute, and was originally encoded as OGC Well Known Text (WKT).
After reading the features, they are passed to the AttributeDecompressor for interpretation. The compressed attribute is selected, and there is no encryption. Character encoding is left as default.
At this point, the geometry is still an attribute, but has been decompressed and is readable. The next step is to use aGeometryReplacer创建的几何形状,其现在可以在工作区中的其他地方使用。
使用注意事项
- 该AttributeDecompressor使用zlib库提供基本的压缩和OpenSSL库提供加密。
- 当加密数据写入数据库,最好使用BLOB数据类型。这种方式,数据总是存储在一个二进制数据类型,并且可以由AttributeDecompressor进行解密。如果数据库字段类型是一个字符串,那么你应该使用BinaryEncoder写作(二进制值转换为字符串)之前变压器和BinaryDecodertransformer after reading (to convert the string back to a binary value capable of being decrypted by the AttributeDecompressor).
组态
输入Ports
与受压缩和/或编码的属性功能AttributeCompressor。
输出端口
所有属性,与指定的属性解压。
参数
属性to Decompress |
连接变压器后,单击浏览按钮选择要解压的属性和/或解密。 |
Character Encoding for Decompressed Attributes |
The decompression/decryption algorithms produce a string of bytes. Use this parameter to instruct the transformer how to interpret those bytes. If an encoded attribute was compressed in theAttributeCompressortransformer, this parameter should be set to the same encoding. |
Encryption Type |
使用此参数来选择加密类型。目前,只有AES-256加密算法的支持。 |
Password |
如果使用加密,则此参数的值将被用于产生一个加密密钥。这必须是用于加密的属性值相同的值AttributeCompressor变压器。 |
编辑变压器参数
Using a set of menu options, transformer parameters can be assigned by referencing other elements in the workspace. More advanced functions, such as an advanced editor and an arithmetic editor, are also available in some transformers. To access a menu of these options, clickbeside the applicable parameter. For more information, see变压器参数菜单选项。
Defining Values
There are several ways to define a value for use in a Transformer. The simplest is to simply type in a value or string, which can include functions of various types such as attribute references, math and string functions, and workspace parameters. There are a number of tools and shortcuts that can assist in constructing values, generally available from the drop-down context menu adjacent to the value field.
Using the Text Editor
文本编辑器提供了一个方便的方法来构造从各种数据源,如属性,参数和常量,其中该结果被直接使用的参数中的文本字符串(包括正则表达式)。
使用算术编辑器
算术编辑器提供了一个方便的方法来构造从各种数据源,如属性,参数和特征函数,其中结果被直接使用的参数内的数学表达式。
条件值
根据一个或多个测试条件,要么通过或失败的设定值。
Parameter Condition Definition Dialog
Content
表达式和字符串可以包括多个功能,字符,参数等。
When setting values - whether entered directly in a parameter or constructed using one of the editors - strings and expressions containing String, Math, Date/Time or FME Feature Functions will have those functions evaluated. Therefore, the names of these functions (in the form @<function_name>)不应该被用作文字字符串值。
对话框选项 - 表
Transformers with table-style parameters have additional tools for populating and manipulating values.
行重新排序 |
启用一旦你点击了一个行项目。选项包括:
|
剪下 |
启用一旦你点击了一个行项目。选项包括:
剪下可以变压器内使用,或变压器之间。 |
Filter |
输入一个字符串,和矩阵只会display rows matching those characters. Searches all columns. This only affects the display of attributes within the transformer - it does not alter which attributes are output. |
进口 |
导入填充了一组新的属性表从数据集读取。具体应用的变压器之间变化。 |
Reset/Refresh |
通常,表复位到它的初始状态,并且可以提供附加选项以去除无效项。行为变压器之间变化。 |
注意:并非所有的工具都在所有的变压器可用。
参考
Processing Behavior |
|
特点控股 |
No |
依赖 | 没有 |
FME许可级别 | FME专业版及以上 |
别名 | |
历史 |
FME Community
该FME社区是为亚搏国际在线官网演示,入门指南,文章,FAQ,以及更多的地方。解答您的问题,向其他用户学习,并建议,投票,并在新的功能注释。
搜索有关AttributeDecompressor所有结果在FME社区。亚搏国际在线官网
实例可以包含开放政府许可协议进行许可信息 - 温哥华