Rasterpalettegenerator
从栅格的所选频段生成调色板。输出栅格将使所选频段由带有调色板的新频段替换。
Typical Uses
- Creating a palette based on raster contents for use elsewhere.
- 在栅格上减少文件大小或位深度以满足格式或处理要求。
它是如何工作的?
RasterPalettegenerator接收栅格功能,并从现有的单元格值构建调色板。输出栅格功能将使用带有生成的调色板的频带替换所选择的频段,并且用调色板键值替换单元格值。
该调色板键解释类型也许uint8.,uint16, orUInt32,新的调色板和频段都将具有所选的解释类型。可以自动确定生成的调色板键的数量,或者在16(所有类型所需的最小数字)范围内指定到解释类型支持的最大值数。
解释类型 |
Value Range |
最小键数 |
最大键数 |
---|---|---|---|
uint8. | 0到255 | 16 | 256 |
uint16 | 0到65,535. | 16 | 65,536 |
UInt32 | 0至4,294,967,295 | 16 | 4,294,967,296 |
Valid palette value types that may be produced include:
- RGB24
- RGB48
- RGBA32.
- RGBA64
- GRAY8
- GRAY16
This operation may be lossy if the maximum number of palette entries is less than the number of unique band values. In this case, the data values in the palette may not capture all the original band data values.
该变压器支持光栅频段选择。该rasterselector.can be used to modify selection.
在这个例子中,我们从OrthoImage栅格开始。它有三个乐队 - 红色,绿色和蓝色 - 我们将使用那些颜色的调色板生成一个乐队。
该raster is routed into a RasterPaletteGenerator.
In the parameters dialog,调色板键解释类型被设置为uint8.(未签名的8位整数)。
UINT8具有0到255的可能值范围,我们可以生成总共256个调色板键和颜色值。但是,我们将设置最大调色板条目数to16, producing the smallest palette possible.
输出栅格有一个频段,带16个键的调色板和相关的RGB值。请注意,第一频段(红色)的频带名称已向前推送 - 可以使用a删除Rasterbandnamesetter.如果需要。
原始光栅中的颜色范围并没有广泛变化,因此该输出光栅看起来非常像原版。如果输入栅格具有更广泛的颜色,则为16项调色板会引入更多的概括(和丢失)颜色。
使用说明
- To extract a generated palette as a string to write to a file or use elsewhere, use arasterpaletteextractor.在勒斯塔德莱特替代品之后。
- To add an existing palette to raster, use the梁栅栏.
- 要替换具有现有调色板的值的单元值,请使用RasterPaletteResolver.
- 输入栅格功能必须以正确的顺序和正确的解释类型选择正确的频带数。该rasterselector.,RasterBandOrderer和RasterBandInterpretationCoercer.如有必要,可以在栅格alettegenerator之前使用,以满足这些要求。
Choosing a Raster Transformer
FME拥有广泛的变形金机,用于使用光栅数据。它们通常可以作为与整个栅格,频带,小区或调色板合作,以及用于工作流控制或与矢量数据梳理光栅的那些。亚搏在线
有关光栅几何和属性的信息,请参阅rasters(ifmeraster).
与罗斯特合作
RasterCelloriginsetter. | 设置栅格的单元格原点。 |
RasterConvolver | 应用卷积滤波器(有时称为akernel要么镜片)栅格功能并输出结果。 |
RasterExpressionEvaluator | 评估栅格或一对栅格中的每个单元格的表达式,包括代数操作和条件陈述。 |
RASTEREXTENTSCOERCER. | 用覆盖光栅范围的多边形替换输入栅格功能的几何形状。 |
Rastergcpextractor. | Extracts the coordinate system and the Ground Control Points (GCP) from the raster feature and exposes them as attributes. |
RasterGCPSetter | 使用指定的列(像素),行(行),x坐标,y坐标和z坐标设置栅格上的地面控制点(GCP)。 |
RasterGeoreferencer | 使用指定的参数来GeoReferences栅格。 |
RasterHillshader | 生成阴影浮雕效果,可用于可视化地形。 |
RasterInterpretationCoercer. | Alters the underlying interpretation of the bands of the raster geometry on the input features, using the specified conversion options. For example, an input raster feature with three bands of interpretation (UInt16, Gray8, and Real64) could be converted to a raster feature with three bands of interpretation (Red8, Green8, and Blue8) or four bands of interpretation (Red16, Green16, Blue16, and Alpha16) in a single operation. |
rastermosaicker. | Merges multiple raster features into a single raster feature. |
Rasterpropertyextractor. | 提取栅格功能的几何属性并将其视为属性。 |
RasterPyramider | Resamples rasters to multiple resolutions, based on either number of levels or dimensions of the smallest output raster. |
RasterResampler. | 基于指定的输出尺寸,地面单位的单元格大小或原始的百分比,并对新的单元格值进行resples。 |
RasterRotationApplier | 将光栅旋转角度应用于输入栅格属性的其余属性和数据值。 预期输入是具有非零旋转角度的光栅,并且预期输出是具有0.0的旋转角度的旋转光栅。预计将修改输入栅格属性以符合由给定角度旋转的光栅的输出光栅属性。 Applying a rotation angle is primarily done for compatibility with other processing and writers that cannot handle a rotation angle. |
RasterSubsetter | 使用像素绑定而不是地坐标的剪辑栅格功能,并且可选地在周边围绕周边添加单元格。 |
rastertiler. | 通过指定单元/像素或瓷砖数量的图块大小将每个输入栅格分成一系列差块。 |
范特利奥戈翁塞纳克 | 从输入栅格功能创建多边形。为每个连续区域的像素区域输出一个多边形,在输入栅格中具有相同的值。 |
WebMapTiler | 创建一系列可通过Web映射应用程序使用的图像块,例如Bing™Maps,Google Maps™或Web地图图块服务。这是通过重新采样仪器来完成各种不同分辨率的,然后将它们拆分为瓷砖。 |
与乐队一起使用
RasterBandAdder | Adds a new band to a raster feature. |
RasterBandCombiner. | 将巧合栅格功能合并到单个输出栅格功能,保留和附加所有频段。 |
RasterBandInterpretationCoercer. | 改变单个光栅带的解释类型,如有必要,转换单元值。 |
RasterBandKeeper | 从栅格功能中删除所有未选择的频带。 |
Rasterbandminmaxxtractor. | 从栅格功能中提取最小和最大频带值,调色板键和调色板值,并将它们添加到列表属性。 |
Rasterbandnamesetter. | 将所选频段的频带名称设置在栅格上,与频带数字相比,使栅格内容更加简单地理解。 |
RasterbandNodataremover | 从栅格功能的选定频段中删除现有的Nodata标识符。先前等于Nodata值的任何值都被视为有效数据。 |
RasterBandNodataSetter | 在栅格功能的所选频段上设置新的Nodata值。 |
RasterBandOrderer | Specifies the required order of bands in a raster. Bands are reordered according to the input band indices. |
RasterBandPropertyExtractor. | 提取栅格功能的频带和调色板属性并将其作为属性暴露。 |
RasterBandremover. | 从栅格功能中删除任何选定的频段。 |
漂流带带子 | 将频带或唯一频带和调色板组合分开,并输出单个栅格功能或包含所有组合的单个新栅格功能。 |
rastertatisticscalculator. | Calculates statistics on raster bands and adds the results as attributes. |
使用细胞
RasterSpectCalculator. | 计算光栅的每个单元的方面(斜率方向)。方面以从北方顺时针的0到360测量。 |
RasterCellCoercer | 为栅格中的每个单元格创建各个点或多边形,可选地将频带值提取为z坐标或属性。 |
RasterCellvaluecalculator. | 在一对栅格的单元格值上评估基本算术,最小值或平均操作。 |
Rastercellvaluerepler. | 用新的单个值替换栅格中的一系列频带值。 |
rastercellvaluerounder. | 舍入光栅单元值。 |
rastersingularcellvaluecalculator | 对栅格的小区值对数值执行基本算术运算。 |
rasterslopecalculator. | 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. |
Rasterpalettegenerator | 从光栅的选定频段中生成调色板。输出栅格将使所选频段由带有调色板的新频段替换。 |
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 | 通过用相应的调色板值替换单元值来解析栅格上的调色板。具有多个组件(如RGB)的调色板值被分解,并且分配给多个新添加频段的单个值。 |
亚搏在线工作流控制
RasterCheckpointer | Sets a checkpoint in the raster processing which forces previous processing to occur immediately. Once complete, it saves the current state to disk. |
RasterConsumer | 请求从栅格几何中的磁贴,但没有对瓦片执行实际操作。 |
rasterextractor. | 根据所选写入格式将功能的几何形状序列化为BLOB属性。 |
RasterNumericCreator | 使用数值的指定大小的栅格创建一个功能,并将其发送到工作区以进行处理。它对于使用用户指定的宽度和高度创建非常大的图像是有用的。 |
RasterReplacer | Replaces the geometry of the feature with the geometry held in the Blob Attribute. The blob is decoded according to the selected raster format. |
RasterRGBCreator. | Creates a feature with a raster of the specified size with an RGB value and sends it into the workspace for processing. |
rasterselector. | 为后续变压器操作选择栅格的特定频带和调色板。 |
矢量和栅格
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. | 将输入点,线路和多边形功能绘制到填充后台值的数字栅格上。输入矢量特征的Z坐标用于生成像素值。没有Z坐标的功能将被丢弃。 |
Mapnikerasterizer. | 从输入向量和光栅功能生成光栅,使用MapNik Toolkit对符号化和标签进行精细控制。 |
PointonRasterValueExtractor. | 从一个或多个输入点的位置处从栅格中提取频带和调色板值,并将其设置为特征上的属性。 |
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. |
配置
输入端口
此变形器仅接受栅格功能。选定的乐队不得具有现有的调色板。
输出端口
Raster features with the selected band(s) replaced by a single band and palette according to parameter selections.
没有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.
Invalid_Raster_Band.
拒绝功能处理:可以设置为终止翻译或在遇到被拒绝的功能时继续运行。此设置可用作默认设置FME option和A.工作区参数.
Parameters
调色板键解释类型 | Select the interpretation type for the generated palette. Choices include:
|
最大调色板条目数(可选) | (可选)指定要生成的最大调色板条目(键和值对)。 如果空白,数量of entries will be equal to the maximum number available according to the调色板键解释类型. |
Editing Transformer Parameters
使用一组菜单选项,可以通过引用工作区中的其他元素来分配变压器参数。一些变压器也可提供更高级的功能,例如高级编辑器和算术编辑器。要访问这些选项的菜单,请单击除适用的参数旁边。有关更多信息,请参阅变压器参数菜单选项.
定义值
有几种方法可以在变压器中定义使用的值。最简单的是简单地输入值或字符串,其可以包括各种类型的函数,例如属性引用,数学和字符串函数和工作区参数。有许多工具和快捷方式可以帮助构造值的值,通常可以从与值字段相邻的下拉上下文菜单中提供。
使用文本编辑器
该文本编辑器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
算术编辑器提供了一种方便的方法来构建来自各种数据源的数学表达式,例如属性,参数和特征函数,其中结果直接在参数内使用。
Conditional Values
Set values depending on one or more test conditions that either pass or fail.
内容
表达式和字符串可以包括许多函数,字符,参数等 - 是否直接在参数中输入或使用其中一个编辑器构造。
该se functions manipulate and format strings. | |
文本编辑器中提供了一组控制字符。 | |
两个编辑器都有数学函数。 | |
这些运算符可在算术编辑器中使用。 | |
该se return primarily feature-specific values. | |
可以使用FME和工作区的参数。 | |
Working with User Parameters | 创建自己的可编辑参数。 |
参考
处理行为 |
|
Feature Holding |
没有 |
Dependencies | 没有 |
FME Licensing Level | FME Professional Edition and above |
Aliases | |
History | |
Categories |
FME社亚搏国际在线官网区
FME社区是演示亚搏国际在线官网,TOS,文章,常见问题和更多的地方。获取您的问题的答案,从其他用户学习,并建议,投票和评论新功能。
Search for所有结果都是关于栅格alettegenerator的on the FME Community.
例子可能包含根据开放政府许可证的信息 - 温哥华