fmeserverresourconnonnector.
访问FME服务器文件存储服务以上载、下载或删除文件和文件夹,或从FME服务器帐户列出有关文件/文件夹的信息。
典型的用途
Access data stored on FME Server file storage without using FME Server
通过上传,下载和删除文件和文件夹管理FME服务器上的数据集
Transfer a file's contents (such as XML or raster) into or out of an attribute in FME
Read downloaded data using the功能读取器或上传由featurewriter.到FME服务器
从FME服务器检索文件和文件夹名称、路径和其他信息,以便在工作区的其他位置使用。
它是如何工作的?
Depending on your choice of actions, it will upload or download files, folders, and attributes; list information from the service; or delete items from the service. On uploads, path attributes are added to the output features. On List actions, file/folder information is added as attributes.
![关闭](http://www.baooytra.com/docs/fme/2017.0/html/FME_Desktop_Documentation/FME_Transformers/Skins/Default/Stylesheets/Images/transparent.gif)
在这个例子中,FMEServerResourceConnectorused to download an Autodesk AutoCAD DWG file from FME Server file storage. After creating a valid web connection to a FME Server account (which can be done right in the FME Server Account parameter), and browsing to the file, the Object ID is retrieved, and a destination for the download is selected.
A功能读取器is added to read the newly downloaded dataset. Here, the ParcelLines feature type will be further processed elsewhere in the workspace.
By executing the download here in the workspace, the dataset will be refreshed every time the workspace is run.
![关闭](http://www.baooytra.com/docs/fme/2017.0/html/FME_Desktop_Documentation/FME_Transformers/Skins/Default/Stylesheets/Images/transparent.gif)
在工作区的这个示例部分中,FMEServerResourceConnector用于将光栅正射影像从FME服务器文件存储下载到属性中。
文件从FME服务器文件存储中读取,内容存储为blob属性。然后是RasterReplacer.用于将blob解释为可用的光栅格式。
The combination of these two transformers avoids having to download the image to local storage and re-read it. A similar technique can be used for point cloud files, using thePointCloudReplacertransformer.
Usage Notes
This transformer cannot be used to directly move or copy files between different FME Server file storage locations. However, multiple FMEServerResourceConnectors can be used to accomplish these tasks.
- The功能读取器可以直接访问FME服务器文件存储(不使用FMEServerResourcoNoNector),但不会创建数据集的本地副本。
配置
Input Ports
![关闭](http://www.baooytra.com/docs/fme/2017.0/html/FME_Desktop_Documentation/FME_Transformers/Skins/Default/Stylesheets/Images/transparent.gif)
This transformer accepts any feature.
输出端口
![关闭](http://www.baooytra.com/docs/fme/2017.0/html/FME_Desktop_Documentation/FME_Transformers/Skins/Default/Stylesheets/Images/transparent.gif)
该变压器的输出而异on the FME Server Action performed.
- 一个上传操作将将文件的路径保存到属性。
- ADownload操作可以保存到文件夹或属性。
- A删除操作没有输出端口。
- 最后,一个Listaction will output a new feature for each file/folder found in the path specified. Each of these new features will have attributes listing various pieces of information about the object.
Parameters
![关闭](http://www.baooytra.com/docs/fme/2017.0/html/FME_Desktop_Documentation/FME_Transformers/Skins/Default/Stylesheets/Images/transparent.gif)
FME服务器操作 | 要执行的操作类型。选择包括:
|
FME Server Account | 对FME服务器帐户执行操作需要使用Web连接使用OAuth2身份验证。有关更多信息,请参阅Using Web Connections. |
The remaining parameters available depend on the value of the FME Server Action parameter. Parameters for each FME Server Action are detailed below.
![关闭](http://www.baooytra.com/docs/fme/2017.0/html/FME_Desktop_Documentation/FME_Transformers/Skins/Default/Stylesheets/Images/transparent.gif)
FME服务器路径
Object ID |
The Object ID of a file or folder on FME Server to delete. If valid credentials have been provided as a web connection, you may browse to a location. |
![关闭](http://www.baooytra.com/docs/fme/2017.0/html/FME_Desktop_Documentation/FME_Transformers/Skins/Default/Stylesheets/Images/transparent.gif)
FME服务器源
Object ID |
The FME Server path of the file/folder to download. If valid credentials have been provided as a web connection, you may browse to a location. |
目的地
下载为 | 选择是否将下载的数据存储在文件,文件夹或属性中。
|
Download to Folder | Specify the path to the folder that will store the downloaded file. Valid for Download as File or Folder. |
包括子文件夹 | Choose whether to download subfolders of the FME Server Source or not. Valid for Download as Folder only. |
下载到属性 | Specify the attribute that will store the contents of the downloaded file. Valid for Download as Attribute only. 笔记:FME将尝试将属性的内容转换为UTF-8字符串。如果此失败,则属性的内容将被创建为原始二进制文件。为确保始终保留原始字节并从未转换为UTF-8,请使用下载作为文件。 |
![关闭](http://www.baooytra.com/docs/fme/2017.0/html/FME_Desktop_Documentation/FME_Transformers/Skins/Default/Stylesheets/Images/transparent.gif)
FME服务器路径
Object ID |
FME服务器上要列出其内容的文件夹ID。如果作为web连接提供了有效凭据,则可以浏览到某个位置。 |
Output Attributes
Default attribute names are provided, and may be overwritten.
文件或文件夹名称 |
Specify the attribute to hold the name of an object on FME Server. |
文件or Folder Path |
Specify the attribute to hold the path of an object on FME Server. |
文件大小 |
指定属性以保存FME服务器上的文件对象大小。 |
上次修改 |
指定属性以保存FME服务器上对象的上次修改日期。 |
文件or Folder Flag |
Specify the attribute to hold the type (file or folder) of an object on FME Server. |
![关闭](http://www.baooytra.com/docs/fme/2017.0/html/FME_Desktop_Documentation/FME_Transformers/Skins/Default/Stylesheets/Images/transparent.gif)
Source
上传 |
要上载的数据的来源。 文件: The specified file will be uploaded. 文件夹: The specified folder and its contents will be uploaded. 属性:将上载指定属性的内容。 在处理大型对象时,文件是比属性更好的选择,因为数据将直接从磁盘流式传输,并且不需要将对象完全存储在功能的内存中。 FME Server treats file uploads of the same name, in a specific folder, as duplicates, and will automatically overwrite a file if it exists in the same folder. When wanting to upload content from a folder, it is better to upload as a folder instead of setting a fixed path and sending multiple features into the connector to upload as a file. |
文件to Upload |
The file to be uploaded to FME Server if Upload from is set to File. |
文件夹to Upload |
如果Upload from设置为folder,则要上载到FME服务器的文件夹。 |
包括子文件夹 |
选择是否上传文件夹的子文件夹以上载。 |
属性to Upload as File |
The data to be uploaded, supplied from an attribute if Upload is set to Attribute. |
FME Server Destination
文件夹ID. | 要将源文件上载到的FME服务器上的路径。您必须选择一个特定的共享资源文件夹来上载内容。 |
上传with File Name | The name of the file created from the data supplied in Attribute to Upload as File. The name must include a filename extension (for example, .txt, .jpg, .doc). |
Output Attributes
文件or Folder Path | Specify the output attribute that will store the path of the file/folder that was just uploaded. |
编辑变压器参数
使用一组菜单选项,可以通过引用工作空间中的其他元素来指定转换器参数。更高级的功能,如高级编辑器和算术编辑器,也可以在一些变压器。要访问这些选项的菜单,请单击在适用参数旁边。有关详细信息,请参阅变压器参数菜单选项.
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.
![关闭](http://www.baooytra.com/docs/fme/2017.0/html/FME_Desktop_Documentation/FME_Transformers/Skins/Default/Stylesheets/Images/transparent.gif)
使用文本编辑器
文本编辑器提供了一种方便的方法来构建来自各种数据源的文本字符串(包括正则表达式),例如属性,参数和常量,其中结果直接在参数内使用。
使用算术编辑器
算术编辑器提供了一种从各种数据源(如属性、参数和特征函数)构造数学表达式的方便方法,其中结果直接用于参数内部。
条件值
根据通过或失败的一个或多个测试条件设置值。
Content
表达式和字符串可以包含许多函数、字符、参数等—无论是直接在参数中输入还是使用其中一个编辑器构造。
![关闭](http://www.baooytra.com/docs/fme/2017.0/html/FME_Desktop_Documentation/FME_Transformers/Skins/Default/Stylesheets/Images/transparent.gif)
These functions manipulate and format strings. | |
A set of control characters is available in the Text Editor. | |
Math functions are available in both editors. | |
这些运算符在算术编辑器中可用。 | |
这些主要是特定于特征的值。 | |
FME and workspace-specific parameters may be used. | |
Working with User Parameters | Create your own editable parameters. |
Reference
Processing Behavior |
|
Feature Holding |
不 |
依赖性 | FME服务器帐户 |
FME Licensing Level | FME专业版及以上 |
别名 | |
历史 | 发布FME 2017.0 |
类别 |
FME Knowledge Center
The FME Knowledge Center 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.