RasterSelector

为后续变压器操作选择栅格的特定频带和调色板。

跳转到配置

Typical Uses

  • 隔离特定频段或调色板以执行操作。

它是如何工作的?

RasterSelector接收光栅功能,并将特定频带和调色板指定为“所选”。

一旦执行了选择,支持栅格选择的变形金刚只会影响所选频带和调色板。未选择的元素通过未置换,并保持在未选择状态,直到执行另一个栅支门操作。

默认状态是所有光栅的特性bands and palettes are selected - that is, after reading in the raster, subsequent raster transformers will operate on all bands and palettes. Raster transformers may support both band and palette selection, band selection only, or may be unaffected by it. Check a transformer’s documentation for raster selection support details.

Bands and palettes are selected using the band and palette indices, specified in a string. The string may either be entered as a parameter or provided as an attribute.

年代election Strings

The format of the string isB P(band number, then palette number, separated by a space). If the raster does not have palettes, only band numbers should be specified.

  • 索引是基于零的,所以第一频带或调色板是索引0。
  • The keywordALLcan be used in place of band and palette numbers to select all bands or all palettes on a specific band.
  • Multiple bands or band-palette pairs are separated by a semicolon (;)。
  • 一个乐队上的多个调色板由逗号分隔(,)。

年代election String Examples

所有乐队

ALL

所有的乐队和调色板

所有的所有

First palette of the first band of a raster

0 0

First palette of the first band and first palette of the third band

0 0; 2 0

First three bands of the raster (without palettes)

0;1;2

栅格的前三个频段(用他们的调色板)

0 ALL;1 ALL;2 ALL

第一个乐队的前两个调色块

0 0.1

  • 可以在不选择附加的调色板的情况下选择频带。
  • 在不选择拥有频带的情况下无法选择调色板。
  • 年代pecific palettes cannot be selected on ALL bands; for example,所有2

使用说明

  • 此函数覆盖栅格上的任何现有选择。在选择后栅格上的所有未指定的频带和调色板都被视为未来的操作。
  • 年代election is not considered by writers, so use theRasterBandSeparator并过滤以将频带和调色板的子集写入单个功能。

Choosing a Raster Transformer

FME拥有广泛的变形金机,用于使用光栅数据。它们通常可以归类为与整个栅格,频带,单元格或调色板一起使用,以及为工作流控制设计或与矢量数据组合的那些。亚搏在线

For information on raster geometry and properties, seerasters(ifmeraster)

配置

Input Ports

输出端口

Parameters

Editing Transformer Parameters

Using a set of menu options, transformer parameters can be assigned by referencing other elements in the workspace. More advanced functions, such as an advanced editor and an arithmetic editor, are also available in some transformers. To access a menu of these options, clickbeside the applicable parameter. For more information, see变换器参数菜单选项

Defining Values

有几种方法可以在变压器中定义使用的值。最简单的是简单地输入值或字符串,其可以包括各种类型的函数,例如属性引用,数学和字符串函数和工作区参数。有许多工具和快捷方式可以帮助构造值的值,通常可以从与值字段相邻的下拉上下文菜单中提供。

参考

处理行为

Feature-Based

Feature Holding

No

Dependencies None
FME Licensing Level FME Professional Edition and above
Aliases 漂流带式选择器,RasterPaletteSelector
History
Categories

Rasters

FME社亚搏国际在线官网区

FME社区是演示亚搏国际在线官网,TOS,文章,常见问题和更多的地方。获取您的问题的答案,从其他用户学习,并建议,投票和评论新功能。

年代earch for所有结果都是关于栅格的on the FME Community.

例子可能包含根据开放政府许可证的信息 - 温哥华