RasterConsumer
读取用于测试目的的栅格功能,包括任何累计光栅操作。没有执行额外的操作,没有任何内容功能。
Typical Uses
- Performance testing or benchmarking raster processing.
- 调试光栅处理。
- 测试光栅特征有效性。
它是如何工作的?
The RasterConsumer receives raster features and reads all of their data at their current state in the workspace. It does not perform any new operations on the rasters.
FME在“延迟评估”模型中处理栅格。光栅读者读取有关栅格的基本信息,但不会读取实际的小区内容,直到绝对必要。变压器操作累积直到所需的结果,通常被举行,直到特征进入作家。此时,完全读取和处理所需的数据。
这旨在优化性能 - 例如,如果栅格均粘夹并拼凑,则FME将通过未恢复截止夹边界的数据来优化处理,并最终丢弃。
RasterConsumer transformer强制执行此读取,并且在读取特征时执行任何累积操作。读取特性没有任何作用,转换器也不会提高性能——它只是模拟读取数据的效果,不管数据放在哪里。
它可用于测试工作区性能而无需配置编写器,并且对使用多个累加的操作进行调试栅格处理工作空间非常有用。它也可以用于光栅几何验证,因为它将拒绝任何非栅格功能。
该变压器不受光栅频段和调色板选择的影响。
Note: ">不te:Though the transformer has parameters that can be used to adjust the way in which the raster is read (tiles), they are primarily of interest for internal Safe performance testing and are not generally useful in a production environment.
例子
In this example, we are building a raster processing workspace.
The source dataset is a2 GB地球仪光栅,需要重新投影,然后金字塔,然后传递给进一步的处理。
由于这两个操作都将累积直到所需的(例如输入写入者),我们尚不确定处理此过程可能需要多长时间。
运行工作区的速度非常快,这表明这两个光栅操作已被保留以供以后处理。
To get a more accurate idea of how long this will take, we add a RasterConsumer after the two raster processing transformers - the Reprojector and RasterPyramider.
In the parameters dialog, we keep the default settings.
再次运行工作区,我们可以看到,在应用累积操作的情况下,完全读取和处理光栅将花费更多的时间。
使用说明
- TheRasterCheckpointer类似地强制处理任何累积的栅格操作,还将当前状态写入临时磁盘文件。它可以放置在光栅变换器之间,以潜在地优化处理性能和内存使用情况。
- The启用功能缓存option in FME Workbench should bedisabled以获得更精确的处理基准。
Choosing a Raster Transformer
FME拥有广泛的变形金机,用于使用光栅数据。它们通常可以归类为与整个栅格,频带,单元格或调色板一起使用,以及为工作流控制设计或与矢量数据组合的那些。亚搏在线
有关光栅几何图形和特性的信息,请参见rasters(ifmeraster).
与罗斯特合作
RasterCelloriginsetter. | Sets the cell origin point within cells in a raster. |
RasterConvolver | 应用卷积滤波器(有时称为akernel或镜片)对要素进行栅格化并输出结果。 |
RasterExpressionEvaluator | 计算光栅或光栅对中每个单元格上的表达式,包括代数运算和条件语句。 |
RASTEREXTENTSCOERCER. | 用多边形替换输入栅格功能的几何图形,覆盖光栅范围的范围或栅格内的数据范围。 |
Rastergcpextractor. | Extracts地面控制点(GCP)来自栅格功能的坐标系和点值,并将其视为属性。 |
RasterGCPSetter | Sets地面控制点(GCPS)在光栅上,用已知坐标配对单元位置。 |
RasterGeoreferencer | Georeferences a raster by either known corner coordinates or origin, cell size, and rotation. |
RasterHillshader | 基于高程值,生成地形的灰度阴影浮雕表示。 |
RasterInterpretationCoercer. | 改变了栅格的解释类型,包括所有频段,并在必要时转换单元值。 |
拉斯特莫萨克 | 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. |
RasterRegisterer. | Transforms an image to minimize its difference with another. |
光栅采样器 | 基于指定的输出尺寸,地面单位的单元格大小或原始的百分比,并对新的单元格值进行resples。 |
旋转锉刀 | 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增强边界,线条和曲线,同时降低光栅图像的平坦区域中的噪音。 |
RasterSubsetter | 使用像素绑定而不是地坐标的剪辑栅格功能,并且可选地在周边围绕周边添加单元格。 |
锉刀 | 通过指定单元/像素或瓷砖数量的图块大小将每个输入栅格分成一系列差块。 |
范特利奥戈翁塞纳克 | 从输入栅格功能创建多边形。为每个连续区域的像素区域输出一个多边形,在输入栅格中具有相同的值。 |
WebMapTiler | 创建一系列可通过Web映射应用程序使用的图像块,例如Bing™Maps,Google Maps™或Web地图图块服务。这是通过重新采样仪器来完成各种不同分辨率的,然后将它们拆分为瓷砖。 |
与乐队一起使用
RasterBandAdder | Adds a new band to a raster feature. |
RasterBandCombiner. | 将重合的光栅要素合并到单个输出光栅要素中,保留并附加所有标注栏。 |
RasterBandInterpretationCoercer. | 更改单个光栅标注栏的解释类型,必要时转换单元值。 |
RasterBandKeeper | 从栅格功能中删除所有未选择的频带。 |
Rasterbandminmaxxtractor. | 从栅格功能中提取最小和最大频带值,调色板键和调色板值,并将它们添加到列表属性。 |
光栅尺 | 设置光栅上选定标注栏的标注栏名称,使光栅内容比标注栏编号更易于理解。 |
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. | 从栅格功能中删除任何选定的频段。 |
光栅带分离器 | 分离标注栏或唯一的标注栏和选项板组合,并输出单个光栅要素或包含所有组合的单个新光栅要素。 |
rastertatisticscalculator. | Calculates statistics on raster bands and adds the results as attributes. |
使用单元格
RasterSpectCalculator. | 计算光栅的每个单元的方面(斜率方向)。方面以从北方顺时针的0到360测量。 |
RasterCellCoercer | 为光栅中的每个单元创建单独的点或多边形,可以选择将标注栏值提取为z坐标或属性。 |
RasterCellValue计算器 | 对一对光栅的单元格值进行基本算术、最小值、最大值或平均值运算。 |
Rastercellvaluerepler. | 用新的单个值替换栅格中的一系列频带值。 |
rastercellvaluerounder. | 舍入光栅单元值。 |
RasterSegmenter | 基于输入光栅图像单元中的强度差,将光栅图像分配到从输入图像中的任意大小的小区组。 |
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. |
光栅发生器 | 从光栅的选定频段中生成调色板。输出栅格将使所选频段由带有调色板的新频段替换。 |
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 | 强制累计覆盖栅格操作要处理,将状态保存到磁盘并释放资源以调整性能或协助内存限制。 |
RasterConsumer | 读取用于测试目的的栅格功能,包括任何累计光栅操作。没有执行额外的操作,没有任何内容功能。 |
rasterextractor. | 将光栅要素的几何图形序列化为Blob属性,并根据常用二进制光栅格式的选择对内容进行编码。 |
RasterNumericCreator | 创建指定大小和分辨率的数字栅格,具有默认单元格值。 |
RasterReplacer | 对包含存储为水滴的编码光栅的二进制属性进行解码,用解码的光栅替换特征的几何体。 |
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. |
映射光栅器 | 从输入向量和光栅功能生成光栅,使用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. |
配置
输入端口
此变形器仅接受栅格功能。
输出端口
Raster features with no modifications made.
不n-raster features will be routed to the
Rejected features will have anfme_reimpe_code.属性包含以下值之一:
Invalid_geometry_type.
无效的\u光栅\u没有\u波段
拒绝功能处理:可以设置为终止翻译或在遇到被拒绝的功能时继续运行。此设置可用作默认设置FME option和A.工作区参数.
Parameters
请注意,通常使用默认参数设置。
瓷砖请求订单 | Tile (Default):光栅数据一次读取一个分幅,直到所有分幅都用完为止。对于给定的图块,可以读取多个条带。 乐队:栅格数据一次读取一个频段,直到消耗所有频段。 |
瓷砖尺寸 | 使用源磁贴大小(默认值):消耗图块或频带时,将使用频带报告的默认图块大小。 指定源磁贴大小:栅格将使用指定的指定消耗Number of Tile Rows和平铺列数. |
Number of Tile Rows 平铺列数 |
结合指定源磁贴大小,指定行数和列数。 |
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
算术编辑器提供了一种方便的方法来构建来自各种数据源的数学表达式,例如属性,参数和特征函数,其中结果直接在参数内使用。
Conditional Values
Set values depending on one or more test conditions that either pass or fail.
内容
表达式和字符串可以包括许多函数,字符,参数等。
设置值 - 无论是否直接在参数中输入或使用其中一个编辑器和包含字符串的表达式都是构造的,都会评估这些函数的字符串和表达式。因此,这些函数的名称(以@ <function_name.>) should not be used as literal string values.
These functions manipulate and format strings. | |
Special Characters |
文本编辑器中提供了一组控制字符。 |
两个编辑器都提供数学函数。 | |
Date/Time Functions | 文本编辑器中提供日期和时间函数。 |
这些运算符可在算术编辑器中使用。 | |
These return primarily feature-specific values. | |
可以使用FME和工作区的参数。 | |
创建和修改用户参数 | 创建自己的可编辑参数。 |
对话框选项-表格
具有桌面参数的变压器具有填充和操作值的其他工具。
行重新排序 |
启用后,单击行项目后。选择包括:
|
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.
参考
处理行为 |
|
Feature Holding |
不 |
Dependencies | 没有 |
FME Licensing Level | FME Professional Edition and above |
Aliases | |
History |
FME社亚搏国际在线官网区
FME社区是演示亚搏国际在线官网,TOS,文章,常见问题和更多的地方。获取您的问题的答案,从其他用户学习,并建议,投票和评论新功能。
Search for所有结果都是关于栅格的on the FME Community.
例子may contain information licensed under the Open Government Licence – Vancouver and/or the Open Government Licence – Canada.