FTPCaller
Uploads and downloads data from an FTP server. The transformer allows uploads from attribute values or from a file. Remote files may be downloaded into a local file, or into a feature attribute. The transformer also supports deleting remote files.
变压器支持FTP,FTPS和SFTP协议。
隐含和显式ftps
FTPS supports two methods of invoking TLS encryption: implicit mode and explicit mode. The transformer will use the explicit mode in the following cases:
- URL以FTPES开头:FTPES:// hostname / path
- URL以FTPS开头,但也将端口设置为21:ftps:// hostname:21 / path
In all other cases, if the URL begins with ftps, the implicit mode will be used.
Output Ports
Features which have been successfully processed will be output through this output port.
如果FTP操作因任何原因出现故障,则该功能将通过此输出端口输出。错误消息将放在名为的属性中错误属性范围。
Parameters
Transfer Parameters
This parameter is used to specify a remote file on the FTP server.
请注意,目标URL必须是文件,而不是文件夹。
TheTransfer Type参数表示变压器将执行的FTP操作类型。这组可能的操作是:
- Download to an Attribute:指定的远程文件URLparameter will be downloaded into the attribute specified in theTarget Attribute范围。The attribute will be tagged with the encoding named in the属性编码参数 - 将执行实际编码转换。
- Download to a File:指定的远程文件URL参数将下载到名为的本地文件Target File范围。如果the local file already exists, it will be overwritten with the contents of the remote file. The value of the文件路径属性将设置为下载文件的路径。
- Upload from an Attribute:给出的数据Upload Dataparameter will be uploaded to the remote file specified in theURL范围。
- 从文件上传:本地文件名为File to Uploadparameter will be uploaded to the remote file specified in theURL范围。如果本地文件不存在,则该功能将通过该功能输出<被拒绝>output port.
- 删除远程文件:指定的远程文件URL参数将从FTP服务器中删除。
Connection Parameters
Use this parameter to control the type of connection which is used to transfer data between FME and the FTP server. When积极的is selected, the server will connect to FME when transferring data. When被动选中,连接已反转,FME连接到服务器。某些服务器和网络防火墙仅允许其中一个连接类型,因此有时可以通过更改连接类型来修复失败的传输。最常用的连接类型是被动, which is the default value of this parameter.
可以以二进制模式或ASCII模式执行FTP上传或下载。使用ASCII模式时,FTP服务器可以执行一些文本转换。例如,将UNIX行终端转换为Windows行终止符,反之亦然。使用二进制模式时,将在没有任何修改的情况下传输所有数据。默认情况下,使用二进制模式,几乎所有情况都应该可以接受。
如果this parameter is set to是的, the transformer will verify SSL certificates when connecting to an FTPS server. This is done in two stages:
- 确保证书是我们尝试连接的主机的。
- Ensure that the certificate is valid.
功能输出虽然<被拒绝>output port will have an error message in the attribute named by this parameter.
Authentication Parameters
This parameter determines how the connection to the FTP server is authenticated.
This is the username of the user which will be accessing the FTP server. This parameter is only used when身份验证类型is not无/匿名.
这是访问FTP服务器的用户的密码。此参数仅在身份验证类型is密码.
Proxy Parameters
Select the proxy type which will be used in this transformer. IfNone选中,将使用任何代理。如果Use FME Network Proxy Settingsis selected, the proxy settings defined in the FME Settings page will be used. If本机FTP代理is selected, the transformer will use an FTP proxy configured using the other parameters in this section.
这是将使用的代理服务器的主机名。
This is the username of the user which will be accessing the proxy server. This can be different than the username used when accessing the FTP server.
This is the password of the user which will be accessing the proxy server.
Editing Transformer Parameters
使用一组菜单选项,可以通过引用工作区中的其他元素来分配变压器参数。一些变压器也可提供更高级的功能,例如高级编辑器和算术编辑器。要访问这些选项的菜单,请单击除适用的参数旁边。有关更多信息,请参阅变压器参数eter Menu Options.
定义值
有几种方法可以在变压器中定义使用的值。最简单的是简单地输入值或字符串,其可以包括各种类型的函数,例如属性引用,数学和字符串函数和工作区参数。有许多工具和快捷方式可以帮助构造值的值,通常可以从与值字段相邻的下拉上下文菜单中提供。
使用文本编辑器
The Text Editor provides a convenient way to construct text strings (including regular expressions) from various data sources, such as attributes, parameters, and constants, where the result is used directly inside a parameter.
Using the Arithmetic Editor
The Arithmetic Editor provides a convenient way to construct math expressions from various data sources, such as attributes, parameters, and feature functions, where the result is used directly inside a parameter.
Conditional Values
Set values depending on one or more test conditions that either pass or fail.
内容
Expressions and strings can include a number of functions, characters, parameters, and more.
设置值 - 无论是否直接在参数中输入或使用其中一个编辑器和包含字符串的表达式都是构造的,都会评估这些函数的字符串和表达式。因此,这些函数的名称(以@ <function_name.>) should not be used as literal string values.
These functions manipulate and format strings. | |
Special Characters |
A set of control characters is available in the Text Editor. |
两个编辑器都有数学函数。 | |
Date/Time Functions | Date and time functions are available in the Text Editor. |
These operators are available in the Arithmetic Editor. | |
These return primarily feature-specific values. | |
可以使用FME和工作区的参数。 | |
创建和修改用户参数 | 创建自己的可编辑参数。 |
对话框选项 - 表格
具有桌面参数的变压器具有填充和操作值的其他工具。
Row Reordering |
Enabled once you have clicked on a row item. Choices include:
|
Cut, Copy, and Paste |
Enabled once you have clicked on a row item. Choices include:
Cut, copy, and paste may be used within a transformer, or between transformers. |
筛选 |
开始键入字符串,矩阵仅显示匹配这些字符的行。搜索所有列。这仅影响变换器内的属性的显示 - 它不会更改输出哪个属性。 |
进口 |
进口populates the table with a set of new attributes read from a dataset. Specific application varies between transformers. |
重置/刷新 |
Generally resets the table to its initial state, and may provide additional options to remove invalid entries. Behavior varies between transformers. |
Note:Not all tools are available in all transformers.
FME社亚搏国际在线官网区
The FME Community is the place for demos, how-tos, articles, FAQs, and more. Get answers to your questions, learn from other users, and suggest, vote, and comment on new features.
搜索有关此变压器的样本和信息FME社亚搏国际在线官网区.