RasterPaletteAdder

Creates a palette from an attribute, and adds this palette to all selected bands on a raster.

Jump to Configuration

典型的用途

  • Adding palettes to rasters to meet format or processing requirements.

How does it work?

RasterPaletteadder接收栅格功能,并将调色板添加到所有选定的频段。

The palette must be provided as an attribute, and the band(s) must have an interpretation type ofUINT8uint16, 或者UINT32.

如果它们不符合所选频段的解释,则将丢弃调色板键。例如,在向UINT8频段添加调色板时,将丢弃大于255的所有键。

This transformer supports raster band selection. Therasterselectorcan be used to modify selection.

Palettes

Palettes can be acquired and assigned to an attribute in a number of ways, including:

调色板属性的格式

调色板属性的一般格式如下:

格式

RGB Example

字符串示例

<值解释> [<字符串长度>]


......

RGB24
0 0,49,190
1 50,255,50
2 172,0,255
3 255,0,0.

字符串10.
0水
1森林
2商业
3.Urban

调色板的第一行必须包含价值解释。值解释的有效值是:

  • RGB24
  • RGBA32
  • RGB48
  • RGBA64
  • Gray8.
  • 灰色16.
  • 细绳

RGBA并由comma-delim RGB面板值ited strings of integers between 0 and the maximum value of the data type. For example, a valid RGBA32 value would be64,128,255,255那A.valid RGB48 value would be16384,32768,65535

当指定了字符串解释时,第一行可以可选地指定调色板值的最大字符串长度。此值必须是正整数。如果未明确指定字符串长度,则将假设默认值为32。

细绳palette values may consist of any arbitrary text, except for the newline character.

灰色调色板值由0个整数和数据类型的最大值之间组成。

第一个是键值对之后的所有线条。调色板键必须按升序组织,但它们不需要是连续的 - 也就是说,并非必须存在系列中的所有数字。所有缺陷的调色板键最多关注0或等效值,例如RGB的0,0,0或字符串调色板的空字符串。

Examples

Usage Notes

选择光栅变压器

FME has an extensive selection of transformers for working with raster data. They can be generally categorized as working with whole rasters, bands, cells or palettes, and those designed for workflow control or combining raster with vector data.

有关光栅几何和属性的信息,请参阅罗斯克斯(IFMERaster)

配置

输入端口

输出Ports

参数

Editing Transformer Parameters

使用一组菜单选项,可以通过引用工作区中的其他元素来分配变压器参数。一些变压器也可提供更高级的功能,例如高级编辑器和算术编辑器。要访问这些选项的菜单,请单击除适用的参数旁边。有关更多信息,请参阅Transformer Parameter Menu Options

定义值

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.

对话框选项 - 表格

Transformers with table-style parameters have additional tools for populating and manipulating values.

Reference

Processing Behavior

特征为基础

功能持有

依赖关系 没有
FME Licensing Level FME专业版及以上
别名
历史

FME Community

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.

搜索all results about the RasterPaletteAdder关于FME社区。亚搏国际在线官网

Examples may contain information licensed under the Open Government Licence – Vancouver and/or the Open Government Licence – Canada.