Rasterpaletteremover
Removes selected palette(s) from raster features.
Typical Uses
- Removing palettes from rasters to meet format or processing requirements.
How does it work?
RasterPaletterMover接收光栅要素并删除所有选定的选项板。
To select specific bands or palettes, use the光栅选择器在RasterPaletterMover之前。
Cells are unaffected, retaining their original values.
If the source band has no palettes, the raster remains unchanged.
Examples
In this example, we have a single-band raster of land use zones, with an RGB palette. We want to remove the palette.
请注意,单元格值是调色板键—在本例中,单元格值为6,调色板将其与RGB值关联。
The raster is routed into a RasterPaletteRemover.
This transformer has no parameters to configure.
The output raster feature has no palette, and the FME Data Inspector renders it as grayscale.
请注意,单元格值未更改,但已删除先前关联的调色板颜色。
In this example, we start with a single-band raster that has two palettes - one containing RGB colors, and one containing string descriptions. We want to remove the string palette. Note the band and palette numbers - they will be needed to select the correct palette for removal.
请注意,单元格值与调色板中的RGB颜色和字符串都关联。
The raster is routed first into a光栅选择器, where we will select the palette to be removed. From there, it is passed through the RasterPaletteRemover.
在RasterElector参数对话框中,其中包含Selection Mode调成乐队和调色板列表,我们将该列表定义为0 1-先前确定的波段和调色板编号。这代表第一个波段(0), and the second palette (1),作为频带和调色板编号以零开始。
The RasterPaletteRemover has no parameters to configure.
输出栅格功能只有一个调色板 - 原始的RGB调色板。字符串调色板已被删除。
注意,单元值不变,并且仍然与来自调色板0的RGB值相关联。
使用说明
- 要删除调色板并将调色板值转换为单个标注栏值,请使用RasterPaletteResolver. 例如,包含RGB值的调色板将被解析为三个带(红色、绿色和蓝色),并为每个带上的单元格指定相应的调色板颜色。
- 要将调色板提取为字符串并将其指定给属性,请使用rasterpaletteextractor..
Choosing a Raster Transformer
FME拥有广泛的变形金机,用于使用光栅数据。它们通常可以归类为与整个栅格,频带,单元格或调色板一起使用,以及为工作流控制设计或与矢量数据组合的那些。亚搏在线
有关光栅几何图形和特性的信息,请参见rasters(ifmeraster).
Working with Rasters
RasterCelloriginsetter. | Sets the cell origin point within cells in a raster. |
RasterConvolver | 应用卷积滤波器(有时称为akernel或镜片)对要素进行栅格化并输出结果。 |
RasterExpressionEvaluator | Evaluates expressions on each cell in a raster or pair of rasters, including algebraic operations and conditional statements. |
RASTEREXTENTSCOERCER. | 用多边形替换输入栅格功能的几何图形,覆盖光栅范围的范围或栅格内的数据范围。 |
Rastergcpextractor. | ExtractsGround Control Point(GCP) coordinate system and point values from a raster feature and exposes them as attributes. |
RasterGCPSetter | Sets地面控制点(GCPs) on a raster, pairing cell positions with known coordinates. |
RasterGeoreferencer | Georeferences a raster by either known corner coordinates or origin, cell size, and rotation. |
RasterHillshader | Generates a grayscale shaded relief representation of terrain, based on elevation values. |
RasterInterpretationCoercer | 改变了栅格的解释类型,包括所有频段,并在必要时转换单元值。 |
拉斯特莫萨克 | Merges multiple raster features into a single raster feature. |
RasterPropertyExtractor | Extracts the geometry properties of a raster feature and exposes them as attributes. |
RasterPyramider | Resamples rasters to multiple resolutions, based on either number of levels or dimensions of the smallest output raster. |
RasterRegisterer. | Transforms an image to minimize its difference with another. |
光栅采样器 | 基于指定的输出尺寸,地面单位的单元格大小或原始的百分比,并对新的单元格值进行resples resters。 |
旋转锉刀 | Rotates a raster feature according to its rotation angle property, interpolating new cell values, updating all other affected raster properties, and producing an output raster feature with a rotation angle of zero. |
RasterSharpener | Enhances the features of a raster image. The RasterSharpener enhances the borders, lines, and curves while reducing noise in the flat areas of the raster image. |
RasterSubsetter | 使用像素绑定而不是地坐标的剪辑栅格功能,并且可选地在周边围绕周边添加单元格。 |
锉刀 | 通过指定单元/像素或瓷砖数量的图块大小将每个输入栅格分成一系列差块。 |
RasterToPolygonCoercer | 从输入栅格功能创建多边形。为每个连续区域的像素区域输出一个多边形,在输入栅格中具有相同的值。 |
WebMapTiler | Creates a series of image tiles that can be utilized by web mapping applications such as Bing™ Maps, Google Maps™, or Web Map Tile Service. This is done by resampling rasters to various different resolutions and then splitting them into tiles. |
Working with Bands
RasterBandAdder | Adds a new band to a raster feature. |
RasterBandCombiner | 将重合的光栅要素合并到单个输出光栅要素中,保留并附加所有标注栏。 |
RasterBandInterpretationCoercer. | Alters the interpretation type of individual raster bands, converting cell values if necessary. |
RasterBandKeeper | Removes all unselected bands from a raster feature. |
RasterBandMinMaxExtractor | 从栅格功能中提取最小和最大频带值,调色板键和调色板值,并将它们添加到列表属性。 |
光栅尺 | 设置光栅上选定标注栏的标注栏名称,使光栅内容比标注栏编号更易于理解。 |
RasterBandNodataRemover | 从栅格功能的选定频段中删除现有的Nodata标识符。先前等于Nodata值的任何值都被视为有效数据。 |
RasterBandNodataSetter | 在栅格功能的所选频段上设置新的Nodata值。 |
RasterBandOrderer | Specifies the required order of bands in a raster. Bands are reordered according to the input band indices. |
Rasterband属性抽取器 | 提取栅格功能的频带和调色板属性并将其作为属性暴露。 |
RasterBandRemover | Removes any selected bands from a raster feature. |
光栅带分离器 | Separates bands or unique band and palette combinations, and outputs either individual raster features or a single new raster feature containing all combinations. |
rastertatisticscalculator. | Calculates statistics on raster bands and adds the results as attributes. |
使用单元格
RasterSpectCalculator. | Calculates the aspect (direction of slope) for each cell of a raster. Aspect is measured in degrees from 0 to 360, clockwise from north. |
RasterCellCoercer | 为光栅中的每个单元创建单独的点或多边形,可以选择将标注栏值提取为z坐标或属性。 |
RasterCellValue计算器 | 对一对光栅的单元格值进行基本算术、最小值、最大值或平均值运算。 |
Rastercellvaluerepler. | Replaces a range of band values in a raster with a new single value. |
rastercellvaluerounder. | 舍入光栅单元值。 |
RasterSegmenter | Partitions a raster image into arbitrarily sized groups of cells from the input image based on intensity differences in the input raster image cells. |
RasterSingularCellValueCalculator | 对栅格的小区值对数值执行基本算术运算。 |
光栅计算器 | Calculates the slope (maximum rate of change in z) for each cell of a raster. |
与调色板合作
梁栅栏 | 从属性中创建一个调色板,并将此调色板添加到栅格上的所有选定频段。 |
rasterpaletteextractor. | Creates a string representation of an existing palette on a raster and saves it to an attribute. |
光栅发生器 | Generates a palette out of the selected band(s) of a raster. The output raster will have the selected band(s) replaced by a new band with a palette. |
RasterPaletteInterpretationCoercer | Alters the interpretation type of raster palettes. |
Rasterpalettenodatasetter. | Identifies the palette key that matches a raster band’s nodata value, and sets a value on it. |
Rasterpaletteremover | Removes selected palette(s) from raster features. |
RasterPaletteResolver | Resolves the palette(s) on a raster by replacing cell values with their corresponding palette values. Palette values with multiple components, such as RGB, are broken down and the individual values assigned to multiple, newly-added bands. |
亚搏在线工作流控制
RasterCheckpointer | Forces accumulated raster operations to be processed, saving the state to disk and releasing resources to tune performance or assist with memory limitations. |
RasterConsumer | Reads raster features for testing purposes, including any accumulated raster operations. No additional operations are performed, and nothing is done with the features. |
rasterextractor. | 将光栅要素的几何图形序列化为Blob属性,并根据常用二进制光栅格式的选择对内容进行编码。 |
RasterNumericCreator | Creates a numeric raster of specified size and resolution, with default cell values. |
RasterReplacer | Decodes a binary attribute containing encoded rasters stored as Blobs, replacing the feature’s geometry with the decoded raster. |
RasterRGBCreator. | 创建指定大小,分辨率和解释类型的颜色栅格功能,具有默认单元格值。 |
光栅选择器 | 为后续变压器操作选择栅格的特定频带和调色板。 |
矢量和栅格
ImageRasterizer | Creates a raster representation of vector or point cloud input features, using the fme_color attribute over a solid background fill for vector features. Point clouds may be rendered using their color or intensity components. |
NumericRasterizer. | Creates a numeric raster representation of vector or point cloud input features, where cell values are taken from the z coordinates of the input features and overlaid on a uniform background. |
MapnikRasterizer | Generates a raster from input vector and raster features, with fine control over symbolization and labeling, using the Mapnik toolkit. |
PointCloudOnRasterComponentSetter | 通过在光栅上覆盖点云来设置点云组件值。每个点的分量值是根据点位置处的标注栏值进行插值的。 |
PointOnRasterValueExtractor | 从一个或多个输入点位置的光栅中提取标注栏和选项板值,并将其设置为要素上的属性。 |
RasterDEMGenerator | 通过对从输入点和特征线生成的Delaunay三角剖分进行均匀采样,生成光栅数字高程模型(DEM)。 |
VectorOnRasterOverlayer | Rasterizes vector or point cloud features onto an existing raster. For vector features the fme_color attribute sets pixel color, and point clouds may be rendered using their color or intensity components. |
配置
输入端口
This transformer accepts only raster features.
Output Ports
栅格功能删除了任何选定的调色板。单元值未置换。
不n-raster features will be routed to the
Rejected features will have an fme_rejection_code attribute with one of the following values:
INVALID_GEOMETRY_TYPE
无效的\u光栅\u没有\u波段
拒绝功能处理:can be set to either terminate the translation or continue running when it encounters a rejected feature. This setting is available both as a defaultFME optionand as aworkspace parameter.
Parameters
该变压器没有参数。
Editing Transformer Parameters
使用一组菜单选项,可以通过引用工作空间中的其他元素来指定转换器参数。更高级的功能,如高级编辑器和算术编辑器,也可以在一些变压器。要访问这些选项的菜单,请单击在适用参数旁边。有关详细信息,请参阅变压器参数菜单选项.
定义值
有几种方法可以在变压器中定义使用的值。最简单的是简单地输入值或字符串,其可以包括各种类型的函数,例如属性引用,数学和字符串函数和工作区参数。有许多工具和快捷方式可以帮助构造值的值,通常可以从与值字段相邻的下拉上下文菜单中提供。
使用文本编辑器
The Text Editor provides a convenient way to construct text strings (including regular expressions) from various data sources, such as attributes, parameters, and constants, where the result is used directly inside a parameter.
Using the Arithmetic Editor
The Arithmetic Editor provides a convenient way to construct math expressions from various data sources, such as attributes, parameters, and feature functions, where the result is used directly inside a parameter.
Conditional Values
Set values depending on one or more test conditions that either pass or fail.
内容
Expressions and strings can include a number of functions, characters, parameters, and more.
设置值 - 无论是否直接在参数中输入或使用其中一个编辑器和包含字符串的表达式都是构造的,都会评估这些函数的字符串和表达式。因此,这些函数的名称(以@ <function_name.>) should not be used as literal string values.
These functions manipulate and format strings. | |
Special Characters |
A set of control characters is available in the Text Editor. |
两个编辑器都提供数学函数。 | |
Date/Time Functions | Date and time functions are available in the Text Editor. |
These operators are available in the Arithmetic Editor. | |
These return primarily feature-specific values. | |
可以使用FME和工作区的参数。 | |
创建和修改用户参数 | 创建自己的可编辑参数。 |
对话框选项-表格
具有桌面参数的变压器具有填充和操作值的其他工具。
Row Reordering |
启用后,单击行项目后。选择包括:
|
Cut, Copy, and Paste |
启用后,单击行项目后。选择包括:
Cut, copy, and paste may be used within a transformer, or between transformers. |
过滤 |
开始键入字符串,矩阵仅显示匹配这些字符的行。搜索所有列。这仅影响变换器内的属性的显示 - 它不会更改输出哪个属性。 |
进口 |
导入使用从数据集读取的一组新属性填充表。特定应用在变压器之间变化。 |
重置/刷新 |
Generally resets the table to its initial state, and may provide additional options to remove invalid entries. Behavior varies between transformers. |
不te:不t all tools are available in all transformers.
Reference
处理行为 |
|
Feature Holding |
不 |
Dependencies | 不ne |
FME Licensing Level | FME Professional Edition and above |
Aliases | |
History |
FME社亚搏国际在线官网区
FME社区的地方亚搏国际在线官网演示、教程,articles, FAQs, and more. Get answers to your questions, learn from other users, and suggest, vote, and comment on new features.
Search for所有关于栅格aletteremover的结果on the FME Community.
Examples may contain information licensed under the Open Government Licence – Vancouver and/or the Open Government Licence – Canada.