FME Transformers: 2024.2

Categories
Rasters
Spatial Analysis
Related Transformers
FeatureColorSetter
ImageRasterizer
MapnikRasterizer
NumericRasterizer
PointCloudOnRasterComponentSetter
RasterNumericCreator
RasterRGBCreator

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.

Jump to Configuration

Typical Uses

  • Imprinting vector data onto an existing raster background (such as orthophotos)
  • Updating a raster image from vector data

How does it work?

The VectorOnRasterOverlayer receives vector geometries (points, lines, areas) and/or point clouds, and rasterizes them onto an input raster feature, producing a single output raster.

For vector input features, the 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's fme_color attribute. Pixel values for gray bands will be the average of the fme_color components.

Polygonal features may also optionally have an fme_fill_color attribute; in this case, the outer boundary will be drawn using fme_color and the inner area will be drawn using fme_fill_color.

For point clouds, pixel coloring may be done using either the color or intensity component.

The Z coordinates of the input vector features are used to generate pixel values for numeric bands.

Line weights are not supported, and features will be drawn at a width of one (1) pixel. Lines and points may be buffered prior to entering the transformer to increase their visibility.

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 list attribute option available.

Features with no color attribute (or point clouds without an intensity component, if selected) will be discarded and output via the <Rejected> port, as will extra or invalid raster images.

Aggregate rasters are not supported, but they may be deaggregated and mosaicked prior to entering the transformer. Aggregate vector data may be rasterized, but may produce duplicate records if a list attribute is created.

Rasters with palettes are not supported.

This transformer supports raster band selection. The RasterSelector can be used to modify selection.

Examples

Usage Notes

Choosing a Raster Transformer

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 Rasters (IFMERaster).

Configuration

Input Ports

Output Ports

Parameters

Editing Transformer Parameters

Transformer parameters can be set by directly entering values, using expressions, or referencing other elements in the workspace such as attribute values or user parameters. Various editors and context menus are available to assist. To see what is available, click beside the applicable parameter.

For more information, see Transformer Parameter Menu Options.

Reference

Processing Behavior

Group-Based

Feature Holding

Yes

Dependencies None
Aliases  
History  

FME Community

The FME Community has a wealth of FME knowledge with over 20,000 active members worldwide. Get help with FME, share knowledge, and connect with users globally.

Search for all results about the VectorOnRasterOverlayer on the FME Community.

 

Examples may contain information licensed under the Open Government Licence – Vancouver, Open Government Licence - British Columbia, and/or Open Government Licence – Canada.