azurefilestorageconector.
访问Azure文件存储文件存储服务以从Azure帐户上传,下载或删除文件和文件夹或列表文件/文件夹信息。
典型的用途
- Manage datasets on File Storage by uploading, downloading, and deleting files and folders
- 将文件的内容(例如XML或栅格)传输到FME中的属性中
- Read downloaded File Storage data using theFeatureReader., or upload data written by theFeatureWriterto File Storage
- 从文件存储中检索文件和文件夹名称,路径,链接和其他信息以在工作区中的其他位置使用。
How does it work?
这azurefilestorageconector.uses your Azure Storage account credentials (either via a previously defined FME web connection, or by setting up a new FME web connection right from the transformer) to access the file storage service.
根据您的选择,它将上传或下载文件,文件夹和属性;列出服务的信息;或从服务中删除项目。在上传时,可以将链接属性添加到输出功能。在列表操作上,文件/文件夹信息作为属性添加。
![关闭](http://www.baooytra.com/docs/fme/2019.0/html/FME_Desktop_Documentation/FME_Transformers/Transformers/../Skins/Default/Stylesheets/Images/transparent.gif)
In this example, the AzureFileStorageConnector is used to download an Esri Geodatabase from File Storage. After creating a valid web connection to an Azure Storage account (which can be done right in the Account parameter), and browsing to the geodatabase folder, the Share and Path to the object is retrieved, and a destination for the download is selected.
一个FeatureReader.添加以阅读新下载的数据集。在这里,后部地址功能类型将在工作区的其他位置进一步处理。
By executing the download here in the workspace, the geodatabase will be refreshed every time the workspace is run.
![关闭](http://www.baooytra.com/docs/fme/2019.0/html/FME_Desktop_Documentation/FME_Transformers/Transformers/../Skins/Default/Stylesheets/Images/transparent.gif)
In this example portion of a workspace, the AzureFileStorageConnector is used to download a raster orthoimage from File Storage into an attribute.
这file is read from File Storage, and the contents stored as a blob attribute. Then aRasterReplacer.用于将BLOB解释为可用的栅格格式。
这两个变换器的组合避免了必须将图像下载到本地存储并重新读取它。一种类似的技术可以用于点云文件,使用pointcloudreplacer.变压器。
Usage Notes
- This transformer cannot be used to directly move or copy files between different Azure Storage locations. However, multiple AzureFileStorageConnectors can be used to move or copy files with an intermediate download.
- 这FeatureReader.can access Azure File Storage directly, without using the AzureFileStorageConnector. In this case, a permanent local copy of the dataset will not be created.
配置
输入端口
![关闭](http://www.baooytra.com/docs/fme/2019.0/html/FME_Desktop_Documentation/FME_Transformers/Transformers/../Skins/Default/Stylesheets/Images/transparent.gif)
此变形器接受任何功能。
输出Ports
![关闭](http://www.baooytra.com/docs/fme/2019.0/html/FME_Desktop_Documentation/FME_Transformers/Transformers/../Skins/Default/Stylesheets/Images/transparent.gif)
该变压器的输出将根据执行的动作而变化。
- 答:Uploadaction, selected information about the file will be available as attributes.
- 一个下载操作将输出传入功能,可以保存到文件,文件夹或属性。
- 一个删除操作将输出传入功能。
- 一个列表action 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.
![关闭](http://www.baooytra.com/docs/fme/2019.0/html/FME_Desktop_Documentation/FME_Transformers/Transformers/../Skins/Default/Stylesheets/Images/transparent.gif)
传入功能通过此端口输出。
![关闭](http://www.baooytra.com/docs/fme/2019.0/html/FME_Desktop_Documentation/FME_Transformers/Transformers/../Skins/Default/Stylesheets/Images/transparent.gif)
Features that cause the operation to fail are output through this port. Anfme_rejection_code属性,具有值ERROR_DURE_PROCESSING., will be added, along with a more descriptivefme_reimpe_message.属性包含更具体的细节,以及失败的原因。
笔记:If a feature comes in to the AzureFileStorageConnector already having a value forfme_rejection_code,此值将被删除。
拒绝ed Feature Handling:可以设置为终止翻译或在遇到被拒绝的功能时继续运行。此设置可用作默认设置FME选项和as aworkspace parameter。
参数
![关闭](http://www.baooytra.com/docs/fme/2019.0/html/FME_Desktop_Documentation/FME_Transformers/Transformers/../Skins/Default/Stylesheets/Images/transparent.gif)
一个ction | 执行的操作类型。选择包括:
|
![关闭](http://www.baooytra.com/docs/fme/2019.0/html/FME_Desktop_Documentation/FME_Transformers/Transformers/../Skins/Default/Stylesheets/Images/transparent.gif)
Credential Source | 这azurefilestorageconector.can use credentials from different sources. Using a web connection integrates best with FME, but in some cases, you may wish to use one of the other sources.
|
一个ccount | 凭据源是可用的Web连接。To create an Azure Storage connection, click the 'Account' drop-down box and select 'Add Web Connection...'. 然后可以通过工具 - > FME选项... - > Web连接来管理连接。 |
帐户名称和帐户密钥 | 凭据源是可用的嵌入式。可以直接在变压器中而不是在Web连接中指定帐户名称和访问密钥。 |
一个ccount Name and Shared Access Signature | 凭据源是可用的萨。可以直接在变压器中指定帐户名称和共享访问签名。 |
这remaining parameters available depend on the value of the Request > Action parameter. Parameters for each Action are detailed below.
![关闭](http://www.baooytra.com/docs/fme/2019.0/html/FME_Desktop_Documentation/FME_Transformers/Transformers/../Skins/Default/Stylesheets/Images/transparent.gif)
删除选项
分享 | “共享文件”或“文件夹”。如果已作为Web连接提供有效凭据,则可能会浏览共享。 |
小路 | 文件存储上的文件或文件夹的完整路径要删除。如果已作为Web连接提供有效凭据,则可以浏览位置。 |
![关闭](http://www.baooytra.com/docs/fme/2019.0/html/FME_Desktop_Documentation/FME_Transformers/Transformers/../Skins/Default/Stylesheets/Images/transparent.gif)
下载选项
分享 | “共享文件”或“文件夹”。如果已作为Web连接提供有效凭据,则可能会浏览共享。 |
小路 | 文件存储上的文件或文件夹的完整路径要下载。如果已作为Web连接提供有效凭据,则可以浏览位置。 |
目的地
下载as. | 选择是否将下载的数据存储在文件,文件夹或属性中。
|
下载to Attribute | 指定将存储下载文件内容的属性。仅适用于下载作为属性。 |
Response Body Encoding | For Download as Attribute, you can specify a character set encoding to ensure the output is in a human-readable form. If自动检测HTTP标头被指定但在与数据关联的内容类型元数据中没有编码,输出将作为原始字节返回。 |
下载到文件夹 | 指定将存储下载文件的文件夹的路径。有效地下载为文件或文件夹。 |
如果文件存在 | Specify what to do if the file already exists locally. Valid for Download as File or Folder.
|
包括子文件夹 | 选择是否下载文件存储源的子文件夹。仅适用于下载作为文件夹。 |
![关闭](http://www.baooytra.com/docs/fme/2019.0/html/FME_Desktop_Documentation/FME_Transformers/Transformers/../Skins/Default/Stylesheets/Images/transparent.gif)
列表选项
分享 | 这share the folder is in. If valid credentials have been provided as a web connection, you may browse for a share. |
小路 | 文件存储上的文件夹的完整路径为列表。如果已作为Web连接提供有效凭据,则可以浏览位置。 |
包括子文件夹 | If set toYes然后,递归遍历子文件夹,并且它们的内容包括在结果中。 |
输出属性
所选属性将添加到输出功能。
_姓名 |
文件或文件夹的名称 |
_full_path |
文件或文件夹的完整路径 |
_URL. |
URL to the file or folder. |
_file_or_folder. |
该项目是文件还是文件夹 |
_文件大小 |
文件size (not present for folders) |
_最后修改 |
文件上次修改后的日期和时间 |
_relative_path |
相对于列表路径的项目路径 |
![关闭](http://www.baooytra.com/docs/fme/2019.0/html/FME_Desktop_Documentation/FME_Transformers/Transformers/../Skins/Default/Stylesheets/Images/transparent.gif)
数据源
Upload |
要上载的数据类型。
使用大型对象时,文件是比属性更好的选择,因为数据将直接从磁盘流式传输,而不要求对象完全存储在功能上的内存中。 想要从文件夹上传内容时,最好将作为文件夹上传而不是设置固定路径并将多个功能发送到连接器中以将其作为文件上传。 |
文件上传 |
如果要将文件上载到文件存储Upload被设置为文件。 |
Folder to Upload |
这folder to be uploaded to File Storage ifUpload被设置为Folder。 |
包括子文件夹 |
选择是否上传子文件夹Folder to Upload或不。 |
属性以载为文件 |
这data to be uploaded, supplied from an attribute ifUpload被设置为属性。 |
Upload Options
分享 | 这share the folder is in. If valid credentials have been provided as a web connection, you may browse for a share. |
小路 | 文件存储上的文件夹的完整路径以上载到。如果已作为Web连接提供有效凭据,则可以浏览位置。 |
Upload with File Name | 从提供的数据创建的文件的名称属性以载为文件。这name must include a filename extension (for example, .txt, .jpg, .doc). |
如果文件存在 | 如果文件已存在于文件存储上,请指定该怎么办。
|
元数据
可以指定与上载的功能关联的自定义名称值对。
生成共享访问签名
如果勾选此项,共享访问签名(SAS)将be generated for the uploaded file. The attributes_sas_url和_sas_token.将添加到输出功能。此选项仅适用于文件和属性上传。有关SA的更多信息,请参阅Microsoft Azure文档。
SAS令牌到期时间 | 当令牌应该过期时。 |
IP地址或范围 | 如果提供,请限制对IP地址或IP地址范围的访问权限。范围以“203.0.113.0-203.0.113.255”格式给出。 |
限制到https. |
If Yes, the token can only be used via HTTPS. |
输出属性
所选属性将添加到输出功能。仅适用于文件和文件夹上传。
_姓名 | 文件或文件夹的名称。 |
_full_path | 文件或文件夹的完整路径。 |
_URL. |
URL to the file or folder. |
编辑变换器参数
使用一组菜单选项,可以通过引用工作区中的其他元素来分配变压器参数。一些变压器也可提供更高级的功能,例如高级编辑器和算术编辑器。要访问这些选项的菜单,请单击除适用的参数旁边。有关更多信息,请参阅Transformer Parameter Menu Options。
定义值
有几种方法可以在变压器中定义使用的值。最简单的是简单地输入值或字符串,其可以包括各种类型的函数,例如属性引用,数学和字符串函数和工作区参数。有许多工具和快捷方式可以帮助构造值的值,通常可以从与值字段相邻的下拉上下文菜单中提供。
![关闭](http://www.baooytra.com/docs/fme/2019.0/html/FME_Desktop_Documentation/FME_Transformers/Transformers/../Skins/Default/Stylesheets/Images/transparent.gif)
使用文本编辑器
文本编辑器提供了一种方便的方法来构建来自各种数据源的文本字符串(包括正则表达式),例如属性,参数和常量,其中结果直接在参数内使用。
使用算术编辑器
算术编辑器提供了一种方便的方法来构建来自各种数据源的数学表达式,例如属性,参数和特征函数,其中结果直接在参数内使用。
条件值
根据通过或失败的一个或多个测试条件设置值。
Parameter Condition Definition Dialog
内容
表达式和字符串可以包括许多函数,字符,参数等 - 是否直接在参数中输入或使用其中一个编辑器构造。
参考
Processing Behavior |
|
功能持有 |
不 |
依赖性 | Azure存储帐户 |
FME许可级别 | FME基本版及以上 |
别名 | |
历史 | 发布FME 2019.0. |
类别 |
FME Community
这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.
搜索关于AzureFilestorageconconnector的所有结果关于FME社区。亚搏国际在线官网
Examples may contain information licensed under the Open Government Licence – Vancouver