vectoronrasteroverlayer.
将矢量或点云功能光栅化到现有的光栅上。For vector features theFME_COLOR.属性设置像素颜色,可以使用它们的颜色或强度分量呈现点云。
典型的用途
- Imprinting vector data onto an existing raster background (such as orthophotos)
- Updating a raster image from vector data
How does it work?
该vectoronrasteroverlayer.receives vector geometries (points, lines, areas) and/or point clouds, and rasterizes them onto an input raster feature, producing a single output raster.
用于矢量输入功能,FME_COLOR.attribute determines the pixel color in the raster. Pixel values for red, green, and blue bands will be taken from the corresponding component of a feature'sFME_COLOR.属性。Pixel values for gray bands will be the average of theFME_COLOR.components.
多边形特征也可以任选地具有fme_fill_color属性;在这种情况下,将使用外边界使用FME_COLOR.和the inner area will be drawn usingfme_fill_color。
For point clouds, pixel coloring may be done using either the color or intensity component.
该Z coordinates of the input vector features are used to generate pixel values for numeric bands.
不支持线权重,并且功能将以一个(1)个像素的宽度绘制。在进入变压器之前可以缓冲线条和点以提高其可见性。
Alpha value and anti-aliasing options are available. The resolution, extents, and interpretation of the output raster will be identical to the input raster.
Vector data extents do not need to match the extents of the raster - if they extend beyond the raster, they will be clipped.
Attributes from the input vector or point cloud features may be merged onto the output raster, with a列表属性option available.
Features with no color attribute (or point clouds without an intensity component, if selected) will be discarded and output via the
不支持汇总栅格,但在进入变压器之前,它们可能会被分析和镶嵌。聚合矢量数据可以是光栅化,但如果创建列表属性,则可以生成重复记录。
不支持调色板的栅格。
This transformer supports raster band selection. The栅格Selectorcan be used to modify selection.
![关闭](http://www.baooytra.com/docs/fme/2019.2/html/FME_Desktop_Documentation/FME_Transformers/Transformers/../Skins/Default/Stylesheets/Images/transparent.gif)
In this example, we will overlay a set of park polygons on an orthoimage. The parks are contained in a Mapinfo TAB file.
Note that the extent of the Parks dataset covers a much larger area than the orthoimage.
注意:标签文件可以存储功能颜色信息,与(例如)形状文件不同。没有颜色的功能需要使用A的工作空间中色FeatureColorsetter.要么alternate method.
该parks and input raster are routed into a VectorOnRasterOverlayer.
在“参数”对话框中,我们启用生成列表,名称列表属性ParksInArea, and select a single attribute -ParkName- 要添加到列表中。剩余的参数留给其默认设置。
该output raster has the park polygons rendered on the image, and they have been clipped beyond the extents of the input raster. Note the list attribute containing the names of the parks that have been included.
Usage Notes
- To rasterize vectors/point clouds and create a new raster (not drawing on an existing one), use theImageRasterizer.。
- 要添加标签,可以使用a标签和TextRograk.prior to the VectorOnRasterOverlayer.
- For fine control over cartographic styling, consider using theMapnikRasterizer。
- 如果您的背景光栅跨越多个图像,请使用a栅格Mosaickerprior to the VectorOnRasterOverlayer.
- To produce elevation rasters, use theNumericRasterizer.。
- 要增加矢量特征的大小和可见性,请考虑使用缓冲器。
- To colorize a point cloud from a raster, use thePointCloudOnRasterComponentSetter。
- 如果栅格有调色板,请使用aRasterpaletteresolverprior to the VectorOnRasterOverlayer.
选择光栅变压器
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.
For information on raster geometry and properties, see栅格s (IFMERaster)。
![关闭](http://www.baooytra.com/docs/fme/2019.2/html/FME_Desktop_Documentation/FME_Transformers/Transformers/../Skins/Default/Stylesheets/Images/transparent.gif)
Working with Rasters
![关闭](http://www.baooytra.com/docs/fme/2019.2/html/FME_Desktop_Documentation/FME_Transformers/Transformers/../Skins/Default/Stylesheets/Images/transparent.gif)
栅格CellOriginSetter | 将单元格源点设置在栅格中的单元格中。 |
RasterConvolver. | Applies a convolution filter (sometimes called a核心要么镜片) to raster features and outputs the results. |
rasterexpressionEvaluator. | Evaluates expressions on each cell in a raster or pair of rasters, including algebraic operations and conditional statements. |
栅格ExtentsCoercer | 用多边形替换输入栅格功能的几何图形,覆盖光栅范围的范围或栅格内的数据范围。 |
Rastergcpextractor. | 提取物地面控制点(GCP) coordinate system and point values from a raster feature and exposes them as attributes. |
Rastergcpsetter. | 套地面控制点(GCPs) on a raster, pairing cell positions with known coordinates. |
RastergeoreFerencer. | 通过已知的角落坐标或起源,单元格尺寸和旋转来绕地理栅格。 |
Rasterhillsshader. | Generates a grayscale shaded relief representation of terrain, based on elevation values. |
栅格InterpretationCoercer | 改变了栅格的解释类型,包括所有频段,并在必要时转换单元值。 |
栅格Mosaicker | 将多个栅格功能合并到单个栅格功能中。 |
栅格PropertyExtractor | 提取物the geometry properties of a raster feature and exposes them as attributes. |
Rasterpyramider. | 基于最小输出光栅的任一数量或尺寸,将栅格重新列出到多个分辨率。 |
栅格Registerer | 转换图像以最小化其与另一个的差异。 |
栅格Resampler | Resamples rasters, based on specified output dimensions, cell size in ground units, or percentage of original, and interpolates new cell values. |
栅格RotationApplier | 根据其旋转角度旋转栅格功能,内插新的单元格值,更新所有受影响的栅格属性,并使用旋转角度产生输出栅格功能。 |
栅格Sharpener | 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. | Clips raster features using pixel bounds instead of ground coordinates, and optionally adds cells around the perimeter. |
栅格Tiler | Splits each input raster into a series of tiles by specifying either a tile size in cells/pixels or the number of tiles. |
栅格ToPolygonCoercer | 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. | 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
![关闭](http://www.baooytra.com/docs/fme/2019.2/html/FME_Desktop_Documentation/FME_Transformers/Transformers/../Skins/Default/Stylesheets/Images/transparent.gif)
RasterBandadder. | 将新频段添加到栅格功能。 |
栅格BandCombiner | Merges coincidental raster features into a single output raster feature, preserving and appending all bands. |
栅格BandInterpretationCoercer | Alters the interpretation type of individual raster bands, converting cell values if necessary. |
Rasterbandeepter | Removes all unselected bands from a raster feature. |
栅格BandMinMaxExtractor | 提取物the minimum and maximum band values, palette keys, and palette values from a raster feature, and adds them to a list attribute. |
Rasterbandnamesetter. | 将所选频段的频带名称设置在栅格上,与频带数字相比,使栅格内容更加简单地理解。 |
栅格BandNodataRemover | 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. | 在栅格功能的所选频段上设置新的Nodata值。 |
RasterBandorder | 指定栅格中的频带所需顺序。频带根据输入带索引重新排序。 |
栅格BandPropertyExtractor | 提取物the band and palette properties of a raster feature and exposes them as attributes. |
栅格BandRemover | 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. |
栅格StatisticsCalculator | 计算栅格频段的统计信息,并将结果添加为属性。 |
使用细胞
![关闭](http://www.baooytra.com/docs/fme/2019.2/html/FME_Desktop_Documentation/FME_Transformers/Transformers/../Skins/Default/Stylesheets/Images/transparent.gif)
栅格AspectCalculator | 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坐标或属性。 |
栅格CellValueCalculator | 在一对栅格的单元格值上评估基本算术,最小值或平均操作。 |
Rastercellvaluerepler. | 取代了在光栅频带范围值new single value. |
栅格CellValueRounder | 舍入光栅单元值。 |
罗斯特司人 | Partitions a raster image into arbitrarily sized groups of cells from the input image based on intensity differences in the input raster image cells. |
栅格SingularCellValueCalculator | 对栅格的小区值对数值执行基本算术运算。 |
rasterslopecalculator. | 计算栅格的每个单元格的斜率(z的最大变化率)。 |
Working with Palettes
![关闭](http://www.baooytra.com/docs/fme/2019.2/html/FME_Desktop_Documentation/FME_Transformers/Transformers/../Skins/Default/Stylesheets/Images/transparent.gif)
栅格PaletteAdder | 从属性中创建一个调色板,并将此调色板添加到栅格上的所有选定频段。 |
栅格PaletteExtractor | 在栅格上创建现有调色板的字符串表示,并将其保存到属性。 |
Rasterpalettegenerator | 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. | 改变光栅调色板的解释类型。 |
Rasterpalettenodatasetter. | 标识与栅格乐队的Nodata值匹配的调色板键,并设置一个值。 |
栅格PaletteRemover | 从栅格功能中删除选定的调色板。 |
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. |
亚搏在线工作流控制
![关闭](http://www.baooytra.com/docs/fme/2019.2/html/FME_Desktop_Documentation/FME_Transformers/Transformers/../Skins/Default/Stylesheets/Images/transparent.gif)
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. | 创建指定大小,分辨率和解释类型的颜色栅格功能,具有默认单元格值。 |
栅格Selector | Selects specific bands and palettes of a raster for subsequent transformer operations. |
Vectors and Rasters
![关闭](http://www.baooytra.com/docs/fme/2019.2/html/FME_Desktop_Documentation/FME_Transformers/Transformers/../Skins/Default/Stylesheets/Images/transparent.gif)
ImageRasterizer. | 使用纯背景填充的FME_COLOR属性填充矢量功能,创建矢量或点云输入功能的光栅表示。可以使用颜色或强度分量呈现点云。 |
NumericRasterizer. | 创建矢量或点云输入特征的数字栅格表示,其中从输入特征的z坐标中取出单元值并覆盖在均匀的背景上。 |
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. |
栅格DEMGenerator | 通过统一采样从输入点和断裂线产生的Delaunay三角测量来产生光栅数字高度模型(DEM)。 |
vectoronrasteroverlayer. | 将矢量或点云功能光栅化到现有的光栅上。对于向量特征,FME_Color属性设置像素颜色,可以使用它们的颜色或强度分量呈现点云。 |
组态
Input Ports
![关闭](http://www.baooytra.com/docs/fme/2019.2/html/FME_Desktop_Documentation/FME_Transformers/Transformers/../Skins/Default/Stylesheets/Images/transparent.gif)
Vector or point cloud features to be rasterized. Vector features must have anFME_COLOR.属性。点云必须具有颜色或强度分量。
![关闭](http://www.baooytra.com/docs/fme/2019.2/html/FME_Desktop_Documentation/FME_Transformers/Transformers/../Skins/Default/Stylesheets/Images/transparent.gif)
栅格用作输出光栅的背景。除非Group By正在使用,只接受一个栅格。不支持聚合。
This must be a raster feature or an error will occur.
Output Ports
![关闭](http://www.baooytra.com/docs/fme/2019.2/html/FME_Desktop_Documentation/FME_Transformers/Transformers/../Skins/Default/Stylesheets/Images/transparent.gif)
该raster drawn from a group of features.
![关闭](http://www.baooytra.com/docs/fme/2019.2/html/FME_Desktop_Documentation/FME_Transformers/Transformers/../Skins/Default/Stylesheets/Images/transparent.gif)
无效的功能将被路由到<拒绝>端口。
拒绝功能将具有FME_Reempe_code属性,其中一个值之一:
Invalid_vector_geometry_type.
Invalid_vector_geometry_Interpretation.
INVALID_VECTOR_GEOMETRY_COLOR
INVALID_VECTOR_GEOMETRY_DIMENSION
extra_raster_feature.
Rejected Feature Handling: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 option和as aworkspace parameter。
参数
![关闭](http://www.baooytra.com/docs/fme/2019.2/html/FME_Desktop_Documentation/FME_Transformers/Transformers/../Skins/Default/Stylesheets/Images/transparent.gif)
Group By | If theGroup By参数设置为属性列表,将生成每组一个栅格。 |
Group By Mode | 结束过程(阻塞):这是默认行为。只有在存在所有输入时,处理将在此变换器中发生。 组更改时的过程(高级):此变压器将按顺序处理输入组。通过输入流上参数的Group的值的更改将触发当前累积组的处理。这可以提高整体速度(特别是具有多个等大小的组),但如果输入组未真正有序,则可能导致不期望的行为。 ![]() 使用两种典型的原因组更改时的过程(高级)。该first is incoming data that is intended to be processed in groups (and is already so ordered). In this case, the structure dictates Group By usage - not performance considerations. 该second possible reason is potential performance gains. Performance gains are most likely when the data is already sorted (or read using aSQL ORDER BYstatement) since less work is required of FME. If the data needs ordering, it can be sorted in the workspace (though the added processing overhead may negate any gains). 根据数据流的数量,排序变得更加困难。由于所有匹配的功能,多个数据流可能几乎不可能排序到正确的顺序中Group By需要在属于下一个组的任何功能(任何特征类型或数据集)之前到达。在这种情况下,使用Group By借结束过程(阻塞)may be the equivalent and simpler approach. 注意:Multiple feature types and features from multiple datasets will not generally naturally occur in the correct order. 与许多情况一样,使用您的数据测试工作区中的不同方法是识别性能增益的唯一明确方式。 |
![关闭](http://www.baooytra.com/docs/fme/2019.2/html/FME_Desktop_Documentation/FME_Transformers/Transformers/../Skins/Default/Stylesheets/Images/transparent.gif)
alpha值(0-1) | Specify the alpha channel value (0-1) for the vector features, where 0 is fully transparent and 1 is fully opaque. |
Composite Using Alpha Band | IfYes,栅格将预期选择alpha频段。向量功能将根据其alpha值与底层光栅混合,而不是仅覆盖底层光栅。 |
![关闭](http://www.baooytra.com/docs/fme/2019.2/html/FME_Desktop_Documentation/FME_Transformers/Transformers/../Skins/Default/Stylesheets/Images/transparent.gif)
抗锯齿 | IfYes,输出线将使用抗锯齿算法进行平滑。 |
Tolerance | 该Tolerance参数是最大的归一化距离a line segment or polygon vertex to a pixel to be rendered. For example a tolerance of 1.0 will draw all pixels touched by the input vector line, while a tolerance of 0.0 will draw only those pixels where the input vector line passes directly through their center. Tolerance can only be selected when anti-aliasing is off. |
![关闭](http://www.baooytra.com/docs/fme/2019.2/html/FME_Desktop_Documentation/FME_Transformers/Transformers/../Skins/Default/Stylesheets/Images/transparent.gif)
输入组件 | When drawing point clouds on color bands, the输入组件指定应使用该点的哪个组件来设置光栅像素的颜色。 If颜色,云中的点必须具有颜色组件。 IfIntensity的点云必须有一个强度component. The intensity component is converted to a color using a grayscale continuum, where the minimum intensity in the cloud is black and the maximum intensity in the cloud is white. |
![关闭](http://www.baooytra.com/docs/fme/2019.2/html/FME_Desktop_Documentation/FME_Transformers/Transformers/../Skins/Default/Stylesheets/Images/transparent.gif)
Merge Attributes
If enabled, attributes from the overlaid vector features will be merged onto the output raster.
累积模式 | 合并向量:Attributes from all features will be merged, and in case of conflicts, the value of解决冲突will be used. 前缀向量:传入属性将以前缀设置为呈现字首parameter. Only Use Vectors:Only attributes from vectors will be used. |
解决冲突 | This parameter is enabled when累积模式is set toMerge Vectors。 Use Raster和Use Vectors将分别优先考虑栅格和vectors,以便在属性冲突。 |
字首 | 该value is used as a prefix when累积模式is字首Vectors。 |
生成列表
When enabled, adds a list attribute to the output raster feature, and the attributes of overlaid features are added to that list, in order of appearance.
列表名称 | Enter a name for the list attribute. 注意:List attributesare not accessible from the output schema in Workbench unless they are first processed using a transformer that operates on them, such aslist exploder.要么ListConcatenator。或者,attributeexposer.可以使用。 |
Add To List | 所有属性: All attributes will be added to the output features. Selected Attributes:启用所选属性参数,其中可以选择特定属性以便包含。 |
Selected Attributes | 添加到列表时已启用设置为所选属性。指定要包含的属性。 |
Editing Transformer Parameters
使用一组菜单选项,可以通过引用工作区中的其他元素来分配变压器参数。一些变压器也可提供更高级的功能,例如高级编辑器和算术编辑器。要访问这些选项的菜单,请单击除适用的参数旁边。有关更多信息,请参阅变压器Parameter Menu Options。
Defining Values
有几种方法可以在变压器中定义使用的值。最简单的是简单地输入值或字符串,其可以包括各种类型的函数,例如属性引用,数学和字符串函数和工作区参数。有许多工具和快捷方式可以帮助构造值的值,通常可以从与值字段相邻的下拉上下文菜单中提供。
![关闭](http://www.baooytra.com/docs/fme/2019.2/html/FME_Desktop_Documentation/FME_Transformers/Transformers/../Skins/Default/Stylesheets/Images/transparent.gif)
Using the Text 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.
条件值
Set values depending on one or more test conditions that either pass or fail.
Parameter Condition Definition Dialog
Content
Expressions and strings can include a number of functions, characters, parameters, and more.
设置值 - 无论是否直接在参数中输入或使用其中一个编辑器和包含字符串的表达式都是构造的,都会评估这些函数的字符串和表达式。因此,这些函数的名称(以@ <function_name.>)不应用作文字字符串值。
![关闭](http://www.baooytra.com/docs/fme/2019.2/html/FME_Desktop_Documentation/FME_Transformers/Transformers/../Skins/Default/Stylesheets/Images/transparent.gif)
这些功能操纵和格式化字符串。 | |
特殊的角色 |
A set of control characters is available in the Text Editor. |
Math functions are available in both editors. | |
Date/Time Functions | Date and time functions are available in the Text Editor. |
该se operators are available in the Arithmetic Editor. | |
这些主要是特定于特征的值。 | |
可以使用FME和工作区的参数。 | |
创建和修改用户参数 | Create your own editable parameters. |
Reference
处理行为 |
|
功能持有 |
Yes |
Dependencies | None |
FME许可级别 | FME专业版及以上 |
别名 | |
历史 | |
类别 |
FME社亚搏国际在线官网区
该FME社亚搏国际在线官网区is the place for demos, how-tos, articles, FAQs, and more. Get answers to your questions, learn from other users, and suggest, vote, and comment on new features.
搜索所有结果关于vectoronRasteroverLayer关于FME社区。亚搏国际在线官网
Examples may contain information licensed under the Open Government Licence – Vancouver