attributecompressor.
压缩和(可选地)加密指定属性的值。可以使用该压缩和加密的属性值来解压缩和解密AttributeDecompressor。
该变形器特别适用于压缩大型XML块或几何存储属性。
典型的用途
- 密码-encrypt a value for storage in a database, for decryption with theAttributeDecompressor
- Compress large blocks of XML to optimize storage
- 压缩大型几何形状,以便存储为BLOB字段以优化存储空间
How does it work?
Attributecompressor允许您选择要压缩的一个,某些或所有属性,并选择要应用的压缩级别。您可以选择使用用户提供的密码加密压缩属性,或者将它们留未加密。通过变压器的功能将输出其属性名称,但所选值压缩。这AttributeDecompressor可以用来读取它们,也可以在工作区内的其他地方或在不同的工作空间中读取它们。
![关闭](http://www.baooytra.com/docs/fme/2017.0/html/FME_Desktop_Documentation/FME_Transformers/Transformers/../Skins/Default/Stylesheets/Images/transparent.gif)
In this portion of a workspace, an input dataset with complex boundary polygons is to be loaded to a non-spatial database.
第一步是将几何图中提取并将其转换为属性Geometryextractor.。选择WKT作为编码类型,几何形状存储在新属性中_几何学。
然后将功能传递给Attributecompressor以在写入数据库之前优化它们以进行存储。
然后将该功能发送到数据库编写器,其中压缩属性将被写为blob并存储。
![关闭](http://www.baooytra.com/docs/fme/2017.0/html/FME_Desktop_Documentation/FME_Transformers/Transformers/../Skins/Default/Stylesheets/Images/transparent.gif)
在该工作区的这一部分中,所有者表将写入数据库。
使用AttributeCompressor,名称和电子邮件地址是用于数据库中添加的个人信息保护层的密码加密。
在此示例中,密码是由用户可以分配的发布的用户参数创建,因为工作空间运行。
使用说明
- 这attributecompressor.uses the zlib library to provide basic compression, and the OpenSSL library to provide encryption.
- 不同的数据集具有不同程度的可压缩性,因此结果会有所不同。
配置
输入端口
![关闭](http://www.baooytra.com/docs/fme/2017.0/html/FME_Desktop_Documentation/FME_Transformers/Transformers/../Skins/Default/Stylesheets/Images/transparent.gif)
具有属性的功能。
Output Ports
![关闭](http://www.baooytra.com/docs/fme/2017.0/html/FME_Desktop_Documentation/FME_Transformers/Transformers/../Skins/Default/Stylesheets/Images/transparent.gif)
All attributes, compressed and uncompressed.
Parameters
![关闭](http://www.baooytra.com/docs/fme/2017.0/html/FME_Desktop_Documentation/FME_Transformers/Transformers/../Skins/Default/Stylesheets/Images/transparent.gif)
压缩的属性 |
连接变压器后,单击“浏览”按钮以选择要压缩和/或加密的属性。 |
压缩水平 |
这value of this parameter controls the compression level which will be applied to the attributes. A value of 0 indicates that no compression should be used, while a value of 9 indicates that maximum compression should be used. The default value is 6. |
![关闭](http://www.baooytra.com/docs/fme/2017.0/html/FME_Desktop_Documentation/FME_Transformers/Transformers/../Skins/Default/Stylesheets/Images/transparent.gif)
加密类型 |
使用此参数选择加密类型。目前,仅支持AES-256加密算法。 |
密码 |
如果正在使用加密,则该参数的值将用于生成加密密钥。然后可以使用相同的值来解密AttributeCompressor变压器中的属性值。 |
编辑变压器参数
使用一组菜单选项,可以通过引用工作区中的其他元素来分配变压器参数。一些变压器也可提供更高级的功能,例如高级编辑器和算术编辑器。要访问这些选项的菜单,请单击除适用的参数旁边。有关更多信息,请参阅变换器参数菜单选项。
定义值
这re 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.
![关闭](http://www.baooytra.com/docs/fme/2017.0/html/FME_Desktop_Documentation/FME_Transformers/Transformers/../Skins/Default/Stylesheets/Images/transparent.gif)
使用文本编辑器
文本编辑器提供了一种方便的方法来构建来自各种数据源的文本字符串(包括正则表达式),例如属性,参数和常量,其中结果直接在参数内使用。
使用算术编辑器
算术编辑器提供了一种方便的方法来构建来自各种数据源的数学表达式,例如属性,参数和特征函数,其中结果直接在参数内使用。
条件值
根据通过或失败的一个或多个测试条件设置值。
内容
Expressions and strings can include a number of functions, characters, parameters, and more - whether entered directly in a parameter or constructed using one of the editors.
![关闭](http://www.baooytra.com/docs/fme/2017.0/html/FME_Desktop_Documentation/FME_Transformers/Transformers/../Skins/Default/Stylesheets/Images/transparent.gif)
这se functions manipulate and format strings. | |
文本编辑器中提供了一组控制字符。 | |
两个编辑器都有数学函数。 | |
这se operators are available in the Arithmetic Editor. | |
这些主要是特定于特征的值。 | |
FME and workspace-specific parameters may be used. | |
Working with User Parameters | 创建自己的可编辑参数。 |
参考
Processing Behavior |
|
Feature Holding |
不 |
依赖性 | 没有任何 |
FME Licensing Level | FME专业版及以上 |
别名 | |
历史 | |
类别 |
FME Knowledge Center
FME知识中心是演示,How-TOS,文章,常见问题和更多的地方。获取您的问题的答案,从其他用户学习,并建议,投票和评论新功能。
搜索所有结果关于attributecompressor在FME知识中心。