RasterBandOrderer
指定一个栅格波段的要求的顺序。频带根据输入频带索引重新排序。
典型用途
- 改变栅格波段为了满足格式或处理要求。
How does it work?
所述RasterBandOrderer接收光栅的特征和根据指定的频带顺序重新排列它们的频带。
带顺序由当前频带索引的列表中定义,在所希望的顺序,分离通过的空间。索引编号从零开始。
在原有的光栅不包含在频段列表频段都指定频段后追加,在原来的顺序。乐队可能不包括在列表中不止一次。
在这个例子中,我们将装配从哨兵2卫星数据,它是从云服务使用所检索的RGB光栅哨兵2 AWSReader. There are numerous layers of data available, of different wavelengths and resolutions. B2, B3, and B4 contain the data we want:
- B2: 蓝色
- B3: Green
- B4: Red
读取三个频带后,将各单波段栅格特征相结合,与一个RasterBandCombiner(一个),然后亮*(因为它们是非常暗)有RasterExpressionEvaluator(B)。
The bands are combined in the same order the features were received from the web service. Inspecting the output after combining and brightening(C),我们可以看到光栅功能的当前结构。
Note the band order and band numbers: 0 - Blue, 1 - Red, and 2 - Green.
所需的顺序是红,绿,蓝,所以栅格要素被路由到一个RasterBandOrderer。在参数的对话框,所期望的输出顺序由输入带索引号,用空格隔开表示。
The new order will be 1, 2, 0 - red, green, blue.
输出栅格功能包含在所要求的顺序乐队。需要注意的是带索引号已被重置。
尽管图像视觉上看起来一样的,竞争wed in the FME Data Inspector, the band order is important if we wish to write the data to most raster formats.
*简单的增亮已经做了这个例子,25单元格值乘以。
该实施例中包含修改哥白尼哨兵数据2019。
选择一个光栅变压器
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, seeRasters (IFMERaster)。
Working with Rasters
RasterCellOriginSetter | 设置在光栅单元格内的细胞起源点。 |
对栅格 | Applies a convolution filter (sometimes called a核心orlens) 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. |
RasterExtentsCoercer | Replaces the geometry of input raster features with a polygon covering either the extents of a raster or the extent of data within a raster. |
RasterGCPExtractor | 提取物地面控制点(GCP) coordinate system and point values from a raster feature and exposes them as attributes. |
RasterGCPSetter | 集地面控制点s(GCPs) on a raster, pairing cell positions with known coordinates. |
RasterGeoreferencer | Georeferences通过或是已知的角坐标或起源,细胞大小和旋转光栅。 |
RasterHillshader | Generates a grayscale shaded relief representation of terrain, based on elevation values. |
RasterInterpretationCoercer | Alters the interpretation type of rasters, including all bands, and converts cell values if necessary. |
RasterMosaicker | 合并多个栅格功能到一个单一的栅格要素。 |
RasterPropertyExtractor | 提取物the geometry properties of a raster feature and exposes them as attributes. |
RasterPyramider | 重新采样栅格以多种分辨率的基础上,无论是数水平或最小输出栅格的尺寸。 |
RasterRegisterer | 转换的图像,以尽量减少其与另一个区别。 |
RasterResampler | Resamples rasters, based on specified output dimensions, cell size in ground units, or percentage of original, and interpolates new cell values. |
RasterRotationApplier | 旋转的栅格要素根据其旋转角特性,内插新的小区的值,更新所有其他受影响光栅的特性,并产生具有零的旋转角的输出光栅的功能。 |
RasterSharpener | 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. |
RasterTiler | Splits each input raster into a series of tiles by specifying either a tile size in cells/pixels or the number of tiles. |
RasterToPolygonCoercer | 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
RasterBandAdder | 添加一个新的乐队为栅格功能。 |
RasterBandCombiner | Merges coincidental raster features into a single 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 | 指定一个栅格波段的要求的顺序。频带根据输入频带索引重新排序。 |
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 | 计算栅格波段的统计数据,并增加了结果的属性。 |
Working with Cells
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 | 创建单独的点或面用于在光栅的每个小区,任选提取频带值作为Z坐标或属性。 |
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 | 计算栅格的每个小区的斜率(沿z最大变化率)。 |
Working with Palettes
RasterPaletteAdder | Creates a palette from an attribute, and adds this palette to all selected bands on a raster. |
RasterPaletteExtractor | 上创建一个光栅的现有的调色板的字符串表示,并将其保存到一个属性。 |
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 | 标识相匹配的栅格波段的无数据值,并将它的值调色板关键。 |
RasterPaletteRemover | 去除光栅特征选择调色板(一个或多个)。 |
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. |
Workflow Control
RasterCheckpointer | 力量积累光栅操作过程ed, 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 | 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 | Selects specific bands and palettes of a raster for subsequent transformer operations. |
Vectors and Rasters
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. |
RasterDEMGenerator | Produces a raster digital elevation model (DEM) by uniformly sampling a Delaunay triangulation generated from input points and breaklines. |
VectorOnRasterOverlayer | 光栅化矢量或点云特征到现有栅格。对于矢量要素的fme_color属性集的像素颜色,并且点云可使用它们的颜色或强度分量被呈现。 |
组态
Input Ports
This transformer accepts only raster features.
产量Ports
Raster features with bands reordered as specified.
非光栅的特征将被路由到<拒绝>端口,以及无效栅格。
被拒绝的功能将有以下值之一的fme_rejection_code属性:
INVALID_GEOMETRY_TYPE
INVALID_RASTER_NO_BANDS
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选项and as aworkspace parameter。
参数
Band List | 列出在所需的输出顺序的原始频带索引,用空格分开。 |
编辑变压器参数
使用一组菜单选项,变压器参数可以通过引用在工作区中的其它元件来分配。更先进的功能,如高级编辑,算术编辑,也是一些变压器可用。要访问这些选项的菜单,点击beside the applicable parameter. For more information, seeTransformer Parameter Menu Options。
Defining Values
There are several ways to define a value for use in a Transformer. The simplest is to simply type in a value or string, which can include functions of various types such as attribute references, math and string functions, and workspace parameters. There are a number of tools and shortcuts that can assist in constructing values, generally available from the drop-down context menu adjacent to the value field.
Using the Text Editor
文本编辑器提供了一个方便的方法来构造从各种数据源,如属性,参数和常量,其中该结果被直接使用的参数中的文本字符串(包括正则表达式)。
使用算术编辑器
The Arithmetic 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.
条件值
根据一个或多个测试条件,要么通过或失败的设定值。
Parameter Condition Definition Dialog
Content
Expressions and strings can include a number of functions, characters, parameters, and more.
When setting values - whether entered directly in a parameter or constructed using one of the editors - strings and expressions containing String, Math, Date/Time or FME Feature Functions will have those functions evaluated. Therefore, the names of these functions (in the form @<function_name>)不应该被用作文字字符串值。
这些功能操作和格式字符串。 | |
特殊字符 |
A set of control characters is available in the Text Editor. |
Math functions are available in both editors. | |
时间/日期函数 | Date and time functions are available in the Text Editor. |
These operators are available in the Arithmetic Editor. | |
这些收益主要功能特定的值。 | |
FME and workspace-specific parameters may be used. | |
Creating and Modifying User Parameters | Create your own editable parameters. |
Reference
Processing Behavior |
|
特点控股 |
No |
依赖 | None |
FME许可级别 | FME专业版及以上 |
别名 | RasterBandSorter |
历史 | |
分类 |
FME Community
The FME Community 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.
搜索有关RasterBandOrderer所有结果在FME社区。亚搏国际在线官网
Examples may contain information licensed under the Open Government Licence – Vancouver