RasterPaletteResolver
通过与它们相应的调色板值替换单元值解析上的栅格中的调色板(一个或多个)。具有多个组件,诸如RGB调色板值,被分解并分配给多个,新增频带的各个值。
典型用途
- Applying palette values to cells to meet format or processing requirements.
- 与调色板准备栅格被写入到不支持调色板格式。
它是如何工作的?
该RasterPaletteResolverreceives raster features and, for all selected bands, resolves palette values onto bands by replacing cell values with their corresponding palette values. Palettes are removed from the output raster features.
如果调色板值具有多个部分,如RGB调色板,每个组元部件被放置在一个单独的带,用新的频带根据需要加入以容纳它们。例如,具有一个带有RGB24调色板输入栅格功能将产生具有三个波段的输出栅格要素 - RED8,GREEN8,和BLUE8 - 和没有调色板。
仅此Transformer支持栅格波段的选择。所选择的波段(S)上的所有调色板将得到解决。该RasterSelector可以用来改变选择。
如果不止一个调色板得到解决,额外的频段被添加。乐队为了将反映原始调色板订单。
字符串调色板不能得到解决,因为单元格的值必须是数字。他们应该先于RasterPaletteResolver使用被删除,RasterSelector和RasterPaletteRemover。
例子
在这个例子中,我们有一个RGB调色板单波段栅格,并希望解决的调色板值。
请注意,下面选择的小区具有值8, which points to the RGB palette value253218236。
该raster is routed into a RasterPaletteResolver.
有没有进行配置参数。
输出栅格功能有三个波段 - 红,绿,蓝 - 没有调色板。请注意,新的乐队都保留了栅格的原无数据值,这可能需要在后续步骤中被除去。
单元格的值,以前8,已被替换为分配给相应的频带中的调色板的元件值。
Usage Notes
- 新乐队复制原带的大多数特性,包括无数据值,其可能需要被移除或更改后的调色板通过使用解析RasterBandNodataRemover要么RasterBandNodataSetter。
- String palettes cannot be resolved and must be removed from selected bands prior to using this transformer, but they may be preserved by using aRasterPaletteExtractor使用它们(作为一个字符串)提取到的属性即属性也可以被写入到一个文件中AttributeFileWriter。
选择一个光栅变压器
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)。
与栅格工作
RasterCellOriginSetter | 设置在光栅单元格内的细胞起源点。 |
对栅格 | Applies a convolution filter (sometimes called a核心要么lens)至光栅特征并输出结果。 |
RasterExpressionEvaluator | 评估上以光栅或对栅格,包括代数运算和条件语句的每个小区表达式。 |
RasterExtentsCoercer | Replaces the geometry of input raster features with a polygon covering either the extents of a raster or the extent of data within a raster. |
RasterGCPExtractor | 提取物地面控制点(GCP)从光栅特征的坐标系和点值,并将它们暴露作为属性。 |
RasterGCPSetter | 集地面控制点s上的光栅(地面控制点),与配对已知坐标单元位置。 |
RasterGeoreferencer | Georeferences通过或是已知的角坐标或起源,细胞大小和旋转光栅。 |
RasterHillshader | 生成地形的灰度阴影浮雕表示,基于高程值。 |
RasterInterpretationCoercer | Alters the interpretation type of rasters, including all bands, and converts cell values if necessary. |
RasterMosaicker | 合并多个栅格功能到一个单一的栅格要素。 |
RasterPropertyExtractor | 提取栅格要素的几何性质,并公开他们的属性。 |
RasterPyramider | 重新采样栅格以多种分辨率的基础上,无论是数水平或最小输出栅格的尺寸。 |
RasterRegisterer | 转换的图像,以尽量减少其与另一个区别。 |
RasterResampler | Resamples rasters, based on specified output dimensions, cell size in ground units, or percentage of original, and interpolates new cell values. |
RasterRotationApplier | 旋转的栅格要素根据其旋转角特性,内插新的小区的值,更新所有其他受影响光栅的特性,并产生具有零的旋转角的输出光栅的功能。 |
RasterSharpener | 提高光栅图像的功能。所述RasterSharpener增强了边界,线和曲线而在光栅图像的平坦区域降低了噪声。 |
RasterSubsetter | Clips raster features using pixel bounds instead of ground coordinates, and optionally adds cells around the perimeter. |
RasterTiler | Splits each input raster into a series of tiles by specifying either a tile size in cells/pixels or the number of tiles. |
RasterToPolygonCoercer | Creates polygons from input raster features. One polygon is output for each contiguous area of pixels with the same value in the input raster. |
WebMapTiler | 创建一系列可以通过Web制图应用程序,如必应地图™,谷歌地图™或Web的地图图块服务可以利用图像瓦片。这是通过重采样光栅各种不同的分辨率,然后将它们分割成瓦片来完成。 |
与乐队合作
RasterBandAdder | 添加一个新的乐队为栅格功能。 |
RasterBandCombiner | 合并巧合光栅功能到一个单一的输出栅格功能,维护和附加所有波段。 |
RasterBandInterpretationCoercer | 改变了解释型个人栅格波段的,转换单元值,如果必要的。 |
RasterBandKeeper | 去除栅格功能的所有未选择的频段。 |
RasterBandMinMaxExtractor | 提取物the minimum and maximum band values, palette keys, and palette values from a raster feature, and adds them to a list attribute. |
RasterBandNameSetter | 设置在光栅选择波段乐队的名字,使光栅内容简单相比,带数字来理解。 |
RasterBandNodataRemover | Removes the existing nodata identifier from selected bands of a raster feature. Any values previously equal to the nodata value are considered valid data. |
RasterBandNodataSetter | 集a new nodata value on selected bands of a raster feature. |
RasterBandOrderer | 指定一个栅格波段的要求的顺序。频带根据输入频带索引重新排序。 |
RasterBandPropertyExtractor | 提取物the band and palette properties of a raster feature and exposes them as attributes. |
RasterBandRemover | 去除栅格功能的任何选择的波段。 |
RasterBandSeparator | 中隔离带或独特条带和调色板的组合,并将其输出或者各个栅格特征或含有全部组合一个单一的新栅格要素。 |
RasterStatisticsCalculator | 计算栅格波段的统计数据,并增加了结果的属性。 |
与细胞工作
RasterAspectCalculator | 计算栅格的每个小区的方面(斜率的方向)。方面,在从0到360度测得的,顺时针方向从北。 |
RasterCellCoercer | 创建单独的点或面用于在光栅的每个小区,任选提取频带值作为Z坐标或属性。 |
RasterCellValueCalculator | 评估在一对光栅的单元值基本算术运算,最小,最大或平均的操作。 |
RasterCellValueReplacer | 在用新的单个值的光栅替换的范围内带的值。 |
RasterCellValueRounder | 四舍五入栅格像元值。 |
RasterSegmenter | 分区光栅图像到从基于在所述输入光栅图像单元的强度差对输入图像单元的任意大小的组。 |
RasterSingularCellValueCalculator | Performs basic arithmetic operations on the cell values of a raster against a numeric value. |
RasterSlopeCalculator | 计算栅格的每个小区的斜率(沿z最大变化率)。 |
Working with Palettes
RasterPaletteAdder | Creates a palette from an attribute, and adds this palette to all selected bands on a raster. |
RasterPaletteExtractor | 上创建一个光栅的现有的调色板的字符串表示,并将其保存到一个属性。 |
RasterPaletteGenerator | 生成一个调色板出光栅的所选择的频带(多个)。输出栅格将具有由一个新的带用调色替换所选择的频带(多个)。 |
RasterPaletteInterpretationCoercer | 改变了解释型光栅调色板。 |
RasterPaletteNodataSetter | 标识相匹配的栅格波段的无数据值,并将它的值调色板关键。 |
RasterPaletteRemover | 去除光栅特征选择调色板(一个或多个)。 |
RasterPaletteResolver | 通过与它们相应的调色板值替换单元值解析上的栅格中的调色板(一个或多个)。具有多个组件,诸如RGB调色板值,被分解并分配给多个,新增频带的各个值。 |
Workflow Control
RasterCheckpointer | 累积光栅作战部队进行处理,保存状态到磁盘和释放资源,以优化性能或内存限制协助。 |
RasterConsumer | 读取用于测试用途,包括任何累积光栅操作光栅功能。无需额外的操作执行,并且不与功能实现。 |
RasterExtractor | 串行化一个光栅特征的几何形状成斑点的属性,按照共同二进制光栅格式可供选择编码的内容。 |
RasterNumericCreator | 创建指定的尺寸和分辨率的数字栅格,与默认的单元格值。 |
RasterReplacer | 解码包含存储为Blob编码栅格二进制属性,与解码后的光栅取代特征的几何形状。 |
RasterRGBCreator | Creates a color raster feature of specified size, resolution, and interpretation type, with default cell values. |
RasterSelector | Selects specific bands and palettes of a raster for subsequent transformer operations. |
Vectors and Rasters
ImageRasterizer | 创建的矢量或点云输入特征的光栅表示,使用fme_color属性在固体背景填充为矢量要素。点云可使用它们的颜色或强度分量被呈现。 |
NumericRasterizer | 创建的矢量或点云输入功能,其中,单元格值从输入要素的Z坐标取出并覆盖在均匀背景数字光栅表示。 |
MapnikRasterizer | 生成从输入矢量和光栅特征的光栅,具有过符号和标记精细控制,使用Mapnik的工具包。 |
PointCloudOnRasterComponentSetter | 通过设置在光栅覆盖点云点云组件值。每个点的成分值从带的值的点处的位置内插。 |
PointOnRasterValueExtractor | 在从一个或多个输入点并将它们设置为所述特征的属性的位置的光栅提取频带和调色板值。 |
RasterDEMGenerator | 产生通过均匀采样从输入点和断裂线产生的Delaunay三角光栅数字高程模型(DEM)。 |
VectorOnRasterOverlayer | 光栅化矢量或点云特征到现有栅格。对于矢量要素的fme_color属性集的像素颜色,并且点云可使用它们的颜色或强度分量被呈现。 |
组态
输入端口
这种变压器只接受栅格功能。
输出端口
与调色板值栅格功能解析到条带,根据需要添加新的乐队。
参数
This transformer has no parameters.
编辑变压器参数
使用一组菜单选项,变压器参数可以通过引用在工作区中的其它元件来分配。更先进的功能,如高级编辑,算术编辑,也是一些变压器可用。要访问这些选项的菜单,点击适用的参数旁边。欲了解更多信息,请参阅Transformer Parameter Menu Options。
定义值
该re 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.
Using the Text Editor
文本编辑器提供了一个方便的方法来构造从各种数据源,如属性,参数和常量,其中该结果被直接使用的参数中的文本字符串(包括正则表达式)。
使用算术编辑器
算术编辑器提供了一个方便的方法来构造从各种数据源,如属性,参数和特征函数,其中结果被直接使用的参数内的数学表达式。
条件值
根据一个或多个测试条件,要么通过或失败的设定值。
Parameter Condition Definition Dialog
内容
表达式和字符串可以包括多个功能,字符,参数等。
When setting values - whether entered directly in a parameter or constructed using one of the editors - strings and expressions containing String, Math, Date/Time or FME Feature Functions will have those functions evaluated. Therefore, the names of these functions (in the form @<function_name>)不应该被用作文字字符串值。
对话框选项 - 表
Transformers with table-style parameters have additional tools for populating and manipulating values.
行重新排序 |
Enabled once you have clicked on a row item. Choices include:
|
剪下 |
Enabled once you have clicked on a row item. Choices include:
剪下可以变压器内使用,或变压器之间。 |
Filter |
输入一个字符串,和矩阵只会display rows matching those characters. Searches all columns. This only affects the display of attributes within the transformer - it does not alter which attributes are output. |
Import |
Import populates the table with a set of new attributes read from a dataset. Specific application varies between transformers. |
重置/刷新 |
通常,表复位到它的初始状态,并且可以提供附加选项以去除无效项。行为变压器之间变化。 |
注意:并非所有的工具都在所有的变压器可用。
参考
Processing Behavior |
|
特点控股 |
没有 |
依赖 | 没有 |
FME许可级别 | FME专业版及以上 |
别名 | |
历史 |
FME Community
该FME社区是为亚搏国际在线官网演示,入门指南,文章,FAQ,以及更多的地方。解答您的问题,向其他用户学习,并建议,投票,并在新的功能注释。
搜索有关RasterPaletteResolver所有结果在FME社区。亚搏国际在线官网
例子may contain information licensed under the Open Government Licence – Vancouver