斯潘8
斯潘4
本教程适用于FME Server 2016+,最后一次是为FME Server 2018编辑的。对于早期版本的FME服务器,请参照this article.
资源文件夹是上载和存储数据的方便存储区域,在发布或运行工作区时,可以使用存储在资源文件夹中的数据。此外,从FME工作台发布时,可以装载和使用现有目录(如UNC共享)。或在通过Web界面提交作业时浏览。
在开始下面的示例之前,请下载教程数据。
此示例将演示如何通过Web界面将数据上载到FME服务器上的资源文件夹。然后在从发布的工作区运行作业时使用数据
(1)通过Web界面上传数据到FME服务器
FME服务器Web界面资源页
(2)生成一个简单的工作区
Generate Workspace wizard
在“发布到FME服务器”向导中新建存储库
(3)浏览和使用上传到FME服务器的数据
此示例将演示如何在首次使用“选择文件”选项从FME工作台发布工作空间时将数据上载到资源文件夹。This data then becomes available for use at any time by other published workspaces.
(1) Generate a simple workspace
(2)发布工作区并上传数据
选择发布工作区时要上载到的文件的位置
This example demonstrates how to upload data into the Resources folder without logging on to the FME Server Web Interface by looking directly into the operating system's file system.
(1)将数据复制到文件目录中的资源文件夹中
在文件目录中查找隐藏项
Uploading a folder to FME Server Resources through FME System Share
这个例子演示了如何创建一个包含资源位置的宏,然后在FME工作区中使用它。注意:如果看到错误消息,如“未能打开…”,您可能需要更改FME服务器引擎服务正在使用的用户帐户。参见指南在这里.
(1)创建允许直接访问资源的宏
macro_def fme_sharedesource_backup“c:/programdata/sa亚搏在线fe software/fme server///resources/backups/”。\
MACRO_DEF FME_SHAREDRESOURCE_MYDATA "///data/"
Add a macro infmeEngineConfig.txt文件
(2) Add the Resource Folder as a Network Location
Create a new resource connection in the FME Server Web Interface
(3)宏测试
创建私有参数
Assign the private parameter as the reader source value
这个例子演示了读取数据,使用宏指定位置。
(1) Add the Macro to a simple workspace reader
$(FME_SHAREDRESOURCE_MYDATA)Parks.tab
Use a macro to read data saved in FME Server Resources
Select an FME Server Resource using the Select File From Web option
(2)发布并运行工作区
如果您已经使用本文中的另一个示例将数据上载到了fme server>resources中的另一个文件夹,那么您可以通过将鼠标悬停在该文件夹上或选择该文件夹,然后选择操作>属性来查看要在fme workbench中使用的宏。然而,根据经验法则,它们遵循模式fm_sharedesources_
这个例子演示了如何编写数据,使用宏指定文件位置。
(1)将宏添加到简单的工作区编写器中
生成工作区wFME服务器。i输出直接写
(2)发布并运行工作区
运行包含新形状文件的工作区后创建的文件夹
This example demonstrates how to utilize a macro in order to access files in a Resource folder.This method can be used to allow files to be used in reader and writer parameters.例如种子,模板或SDE连接文件可以在工作区之间指定和共享。
(1)将宏添加到简单的工作区编写器中
Add a private parameter with the value connected to an FME Server Resource
Link the private parameter to the reader template file parameter
(2)发布并运行工作区
?2019安全亚搏在线软件公司|合法的