RasterPaletteExtractor
上创建一个光栅的现有的调色板的字符串表示,并将其保存到一个属性。
典型用途
- 提取调色板保存到外部文件
- 提取一个调色板应用到其他栅格或工作空间中的其他地方使用
它是如何工作的?
所述RasterPaletteExtractor接收光栅特性和复制调色板信息将字符串属性。只有一个调色板可以一次进行提取。
这Transformer支持栅格波段和调色板选择。正好一个调色板必须在每个输入栅格特征来选择。该RasterSelector可以用来改变选择。
该变压器可以组合使用与AttributeFileWriter写一个调色板到一个文件中。
面板属性的格式
调色板属性的一般格式如下:
格式 |
RGB示例 |
String示例 |
---|---|---|
|
RGB24 |
STRING 10 |
调色板的第一行必须包含的价值解读。该值解释有效值是:
- RGB24
- RGBA32
- RGB48
- RGBA64
- GRAY8
- GRAY16
- 串
RGBA和RGB调色板值由0和数据类型的最大值之间的整数的用逗号分隔的字符串。例如,一个有效的RGBA32值将是64128255255并且在有效的RGB48值将是16384,32768,65535。
当指定串的解释是,第一行可以可选地指定调色板值的最大字符串长度。此值必须为正整数。如果没有明确指定字符串长度,将假设默认值为32。
STRING调色板值可以由任意文本,除了换行符。
GRAY调色板值由0之间和数据类型的最大值的单个整数。
第一之后的所有行是键 - 值对。面板按键必须按升序的顺序组织,但它们是连续不要求 - 即不系列中的所有数字必须存在。所有缺席调色板键仰望0或等效值,例如0,0,0为RGB或字符串调色板一个空字符串。
在这个例子中,我们将提取的调色板,并将其写入到一个文本文件。请注意,源光栅有一个调色板,所以不需要RasterSelector。
需要两个步骤:
- 提取调色板的属性。
- 编写属性的内容到一个文件中。
光栅首先被成RasterPaletteExtractor。在参数对话框,面板属性的名称是_palette。
由于栅格要素退出该变压器,调色板已经被添加到它的字符串属性的形式。原来的调色板保持不变。
该功能现在被路由到AttributeFileWriter。在参数对话框,来源属性设定为_palette和路径和文件名被指定为要写入的文本文件。
所得到的文本文件中包含的调色板。
使用注意事项
- 到提取的调色板添加到另一个光栅,使用RasterPaletteAdder。
- 为了从在光栅现有小区值的调色板,使用RasterPaletteGenerator。
- 从栅格中删除一个调色板,使用RasterPaletteRemover。
- 要使用的调色板值替换单元格值,使用RasterPaletteResolver。
选择一个光栅变压器
FME有变压器的栅格数据处理的广泛选择。它们通常可以归类为与整个光栅,带,细胞或调色板工作,以及那些设计用于工作流控制或与矢量数据组合栅格。亚搏在线
有关光栅几何形状和属性的信息,请参阅栅格(IFMERaster)。
与栅格工作
RasterCellOriginSetter | 设置在光栅单元格内的细胞起源点。 |
对栅格 | Applies a convolution filter (sometimes called a核心or镜片) to raster features and outputs the results. |
RasterExpressionEvaluator | 评估上以光栅或对栅格,包括代数运算和条件语句的每个小区表达式。 |
RasterExtentsCoercer | 替换输入光栅的几何形状具有覆盖一个光栅的任一区段或数据的光栅内的程度的多边形特征。 |
RasterGCPExtractor | 提取物Ground Control Point(GCP)从光栅特征的坐标系和点值,并将它们暴露作为属性。 |
RasterGCPSetter | 集Ground Control Points上的光栅(地面控制点),与配对已知坐标单元位置。 |
RasterGeoreferencer | Georeferences通过或是已知的角坐标或起源,细胞大小和旋转光栅。 |
RasterHillshader | 生成地形的灰度阴影浮雕表示,基于高程值。 |
RasterInterpretationCoercer | Alters the interpretation type of rasters, including all bands, and converts cell values if necessary. |
RasterMosaicker | 合并多个栅格功能到一个单一的栅格要素。 |
RasterPropertyExtractor | 提取栅格要素的几何性质,并公开他们的属性。 |
RasterPyramider | 重新采样栅格以多种分辨率的基础上,无论是数水平或最小输出栅格的尺寸。 |
RasterRegisterer | 转换的图像,以尽量减少其与另一个区别。 |
RasterResampler | 重新采样栅格,基于指定输出尺寸,细胞大小在地面单元,或原始的百分比,并进行内插新的单元值。 |
RasterRotationApplier | 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 | 提高光栅图像的功能。所述RasterSharpener增强了边界,线和曲线而在光栅图像的平坦区域降低了噪声。 |
RasterSubsetter | 光栅功能使用象素剪辑界定,而不是地面坐标,以及任选地添加围绕周边细胞。 |
RasterTiler | 将每个输入栅格成通过指定在细胞/像素的平铺尺寸或瓦片的数目的一系列瓦片。 |
RasterToPolygonCoercer | 创建一个从输入栅格功能多边形。一个多边形是用于与输入栅格相同值像素的每一连续区域的输出。 |
WebMapTiler | 创建一系列可以通过Web制图应用程序,如必应地图™,谷歌地图™或Web的地图图块服务可以利用图像瓦片。这是通过重采样光栅各种不同的分辨率,然后将它们分割成瓦片来完成。 |
与乐队合作
RasterBandAdder | 添加一个新的乐队为栅格功能。 |
RasterBandCombiner | 合并成一个单一的巧合光栅特性 output raster feature, preserving and appending all bands. |
RasterBandInterpretationCoercer | Alters the interpretation type of individual raster bands, converting cell values if necessary. |
RasterBandKeeper | Removes all unselected bands from a raster feature. |
RasterBandMinMaxExtractor | 提取物 the minimum and maximum band values, palette keys, and palette values from a raster feature, and adds them to a list attribute. |
RasterBandNameSetter | 集 the band name of selected bands on a raster, making raster contents simpler to understand compared to band numbers. |
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 | Specifies the required order of bands in a raster.Bands are reordered according to the input band indices. |
RasterBandPropertyExtractor | 提取物 the band and palette properties of a raster feature and exposes them as attributes. |
RasterBandRemover | Removes any selected bands from a raster feature. |
RasterBandSeparator | Separates bands or unique band and palette combinations, and outputs either individual raster features or a single new raster feature containing all combinations. |
RasterStatisticsCalculator | Calculates statistics on raster bands and adds the results as attributes. |
与细胞工作
RasterAspectCalculator | 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 | Creates individual points or polygons for each cell in a raster, optionally extracting band values as z coordinates or attributes. |
RasterCellValueCalculator | Evaluates basic arithmetic , minimum, maximum or average operations on the cell values of a pair of rasters. |
RasterCellValueReplacer | Replaces a range of band values in a raster with a new single value. |
RasterCellValueRounder | Rounds off raster cell values. |
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 | Performs basic arithmetic operations on the cell values of a raster against a numeric value. |
RasterSlopeCalculator | Calculates the slope (maximum rate of change in z) for each cell of a raster. |
与调色板工作
RasterPaletteAdder | 创建从属性的调色板,并将此调色板上的光栅的所有选择的波段。 |
RasterPaletteExtractor | 上创建一个光栅的现有的调色板的字符串表示,并将其保存到一个属性。 |
RasterPaletteGenerator | Generates a palette out of the selected band(s) of a raster.该 output raster will have the selected band(s) replaced by a new band with a palette. |
RasterPaletteInterpretationCoercer | 改变了解释型光栅调色板。 |
RasterPaletteNodataSetter | 标识相匹配的栅格波段的无数据值,并将它的值调色板关键。 |
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.没有 additional operations are performed, and nothing is done with the features. |
RasterExtractor | Serializes the geometry of a raster feature into a Blob attribute, encoding the contents according to a choice of common binary raster formats. |
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 | Creates a color raster feature of specified size, resolution, and interpretation type, with default cell values. |
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 | 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. |
PointOnRasterValueExtractor | 提取物 the band and palette values from a raster at the location of one or more input points and sets them as attributes on the feature. |
RasterDEMGenerator | Produces a raster digital elevation model (DEM) by uniformly sampling a Delaunay triangulation generated from input points and breaklines. |
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. |
组态
输入端口
这种变压器只接受栅格功能。输入栅格必须有一个调色板中选择。
输出端口
光栅设有与所选择的调色板添加到指定的属性。
参数
面板属性 | 到调色板将被写入该属性。 |
编辑变压器参数
使用一组菜单选项,变压器参数可以通过引用在工作区中的其它元件来分配。更先进的功能,如高级编辑,算术编辑,也是一些变压器可用。要访问这些选项的菜单,点击适用的参数旁边。欲了解更多信息,请参阅变压器参数菜单选项。
定义值
有几种方法来定义一个变压器使用的值。最简单的是简单地在一个值或字符串,其可包括各种类型,如属性引用,数学和字符串函数,和工作空间参数的函数类型。有许多的工具和快捷方式,可以帮助构建值,一般可从邻近值字段的下拉上下文菜单。
使用文本编辑器
文本编辑器提供了一个方便的方法来构造从各种数据源,如属性,参数和常量,其中该结果被直接使用的参数中的文本字符串(包括正则表达式)。
使用算术编辑器
算术编辑器提供了一个方便的方法来构造从各种数据源,如属性,参数和特征函数,其中结果被直接使用的参数内的数学表达式。
条件值
根据一个或多个测试条件,要么通过或失败的设定值。
内容
表达式和字符串可以包括多个功能,字符,参数等。
当设定值 - 无论是直接在参数输入或使用的编辑之一构造 - 字符串和表达式包含字符串,数学,日期/时间或FME特征函数将具有评价这些功能。因此,这些功能的名称(在形式@ <FUNCTION_NAME>)不应该被用作文字字符串值。
参考
加工行为 |
|
特点控股 |
没有 |
依赖 | 没有 |
FME许可级别 | FME专业版及以上 |
别名 | |
历史 | |
分类 |
FME社亚搏国际在线官网区
该FME社区是为亚搏国际在线官网演示,入门指南,文章,FAQ,以及更多的地方。解答您的问题,向其他用户学习,并建议,投票,并在新的功能注释。
搜索有关RasterPaletteExtractor所有结果在FME社区。亚搏国际在线官网
实例可以包含开放政府许可协议进行许可信息 - 温哥华