Rasterbandminmaxxtractor.
Extracts the minimum and maximum band values, palette keys, and palette values from a raster feature, and adds them to a list attribute.
Typical Uses
- Determining minimum and maximum values for use in expressions or further processing
- Examining value ranges prior to converting to a different interpretation type
How does it work?
The RasterBandMinMaxExtractor receives raster features, and extracts each raster’s minimum and maximum band values.
If the raster has palettes, the palette key and palette values are also determined. The minimum and maximum palette values are determined from the maximum possible extent of palette values, regardless of whether all values are used in the raster data itself. String palettes are evaluated alphanumerically.
The values are added tolist attributes在输出栅格功能上。可能的列表属性包括:
最小频段值 | _BAND {}。分钟 |
Maximum Band Value | _band{}.max |
最小调色板钥匙 | _BAND {}。调色板{}。凯明 |
Maximum Palette Key | _band{}.palette{}.keyMax |
Minimum Palette Value | _band{}.palette{}.valueMin |
最大调色板值 | _band{}.palette{}.valueMax |
任何nodata在最小值和最大值计算中忽略频段上存在的值。
This transformer is unaffected by raster band and palette selection.
In this example, we will extract the minimum and maximum elevation values from a DEM raster. Note that the original raster feature has one band, containing elevation values in meters.
栅格被路由到Rasterbandminmaxxtractor中。
The transformer has no parameters to configure.
List attributesare added to the output feature, containing the minimum and maximum cell values found on the band. As the raster did not have any palettes, palette-related attributes were not created.
This shows that in this DEM, the elevations range from zero (sea level) to 1,782. The units are those used by the data, which in this case are meters.
Usage Notes
- 此变换器仅提取频带和调色板最小和最大特性。提取其他乐队属性, use theRasterBandPropertyExtractor.
- 提取光栅几何属性,例如行和列的数量,使用RasterPropertyExtractor.
- To calculate additional band statistics, use theRasterStatisticsCalculator.
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 combing raster with vector data.
有关光栅几何和属性的信息,请参阅罗斯克斯(IFMERaster).
Working with Rasters
RasterCellOriginSetter | 设置栅格的单元格原点。 |
RasterConvolver | Applies a convolution filter (sometimes called akernel要么lens)栅格功能并输出结果。 |
RasterExpressionEvaluator | 评估栅格或一对栅格中的每个单元格的表达式,包括代数操作和条件陈述。 |
RasterExtentsCoercer | Replaces the geometry of input raster features with a polygon covering the extents of the raster. |
RasterGCPExtractor | Extracts the coordinate system and the Ground Control Points (GCP) from the raster feature and exposes them as attributes. |
RasterGCPSetter | 使用指定的列(像素),行(行),x坐标,y坐标和z坐标设置栅格上的地面控制点(GCP)。 |
RasterGeoreferencer | 使用指定的参数来GeoReferences栅格。 |
RasterHillshader | Generates a shaded relief effect, useful for visualizing terrain. |
RasterInterpretationCoercer. | 改变底层的解释of the bands of the raster geometry on the input features, using the specified conversion options. For example, an input raster feature with three bands of interpretation (UInt16, Gray8, and Real64) could be converted to a raster feature with three bands of interpretation (Red8, Green8, and Blue8) or four bands of interpretation (Red16, Green16, Blue16, and Alpha16) in a single operation. |
rastermosaicker. | Merges multiple raster features into a single raster feature. |
RasterPropertyExtractor | Extracts the geometry properties of a raster feature and exposes them as attributes. |
RasterPyramider | Resamples rasters to multiple resolutions, based on either number of levels or dimensions of the smallest output raster. |
RasterResampler. | Resamples rasters, based on specified output dimensions, cell size in ground units, or percentage of original, and interpolates new cell values. |
RasterRotationApplier | Applies the raster rotation angle on the input raster properties to the rest of the raster properties and data values. 预期输入是具有非零旋转角度的光栅,并且预期输出是具有0.0的旋转角度的旋转光栅。预计将修改输入栅格属性以符合由给定角度旋转的光栅的输出光栅属性。 Applying a rotation angle is primarily done for compatibility with other processing and writers that cannot handle a rotation angle. |
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. |
范特利奥戈翁塞纳克 | 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 | 创建一系列可通过Web映射应用程序使用的图像块,例如Bing™Maps,Google Maps™或Web地图图块服务。这是通过重新采样仪器来完成各种不同分辨率的,然后将它们拆分为瓷砖。 |
Working with Bands
RasterBandAdder | Adds a new band to a raster feature. |
RasterBandCombiner. | 将巧合栅格功能合并到单个输出栅格功能,保留和附加所有频段。 |
RasterBandInterpretationCoercer | 改变单个光栅带的解释类型,如有必要,转换单元值。 |
RasterBandKeeper | Removes all unselected bands from a raster feature. |
Rasterbandminmaxxtractor. | Extracts the minimum and maximum band values, palette keys, and palette values from a raster feature, and adds them to a list attribute. |
Rasterbandnamesetter. | 将所选频段的频带名称设置在栅格上,与频带数字相比,使栅格内容更加简单地理解。 |
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 | Sets 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 | Extracts the band and palette properties of a raster feature and exposes them as attributes. |
RasterBandremover. | Removes any selected bands from a raster feature. |
漂流带带子 | 将频带或唯一频带和调色板组合分开,并输出单个栅格功能或包含所有组合的单个新栅格功能。 |
RasterStatisticsCalculator | Calculates statistics on raster bands and adds the results as attributes. |
使用细胞
RasterAspectCalculator | 计算光栅的每个单元的方面(斜率方向)。方面以从北方顺时针的0到360测量。 |
RasterCellCoercer | 为栅格中的每个单元格创建各个点或多边形,可选地将频带值提取为z坐标或属性。 |
RasterCellvaluecalculator. | 在一对栅格的单元格值上评估基本算术,最小值或平均操作。 |
RasterCellValueReplacer | 用新的单个值替换栅格中的一系列频带值。 |
RasterCellValueRounder | 舍入光栅单元值。 |
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. |
Working with Palettes
RasterPaletteAdder | Creates a palette from an attribute, and adds this palette to all selected bands on a raster. |
RasterPaletteExtractor | Creates a string representation of an existing palette on a raster and saves it to an attribute. |
Rasterpalettegenerator | 从光栅的选定频段中生成调色板。输出栅格将使所选频段由带有调色板的新频段替换。 |
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 | 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 | Sets a checkpoint in the raster processing which forces previous processing to occur immediately. Once complete, it saves the current state to disk. |
RasterConsumer | Requests the tile(s) from the raster geometry but no actual operations are performed on the tile(s). |
RasterExtractor | Serializes the geometry of the feature into the Blob Attribute based on the selected writer format. |
RasterNumericCreator | Creates a feature with a raster of the specified size with a numeric value and sends it into the workspace for processing. It is useful for creating a very large image with a user-specified width and height. |
RasterReplacer | Replaces the geometry of the feature with the geometry held in the Blob Attribute. The blob is decoded according to the selected raster format. |
RasterRGBCreator | Creates a feature with a raster of the specified size with an RGB value and sends it into the workspace for processing. |
rasterselector. | Selects specific bands and palettes of a raster for subsequent transformer operations. |
Vectors and Rasters
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 | 输入一个点、线、多边形特征上a numeric raster filled with the background value. The Z coordinates of the input vector features are used to generate pixel values. Features without Z coordinates will be discarded. |
Mapnikerasterizer. | 从输入向量和光栅功能生成光栅,使用MapNik Toolkit对符号化和标签进行精细控制。 |
PointOnRasterValueExtractor | 从一个或多个输入点的位置处从栅格中提取频带和调色板值,并将其设置为特征上的属性。 |
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. |
配置
输入端口
This transformer accepts only raster features.
Output Ports
Raster features with list attributes added.
没有n-raster features will be routed to the
Rejected features will have an fme_rejection_code attribute with one of the following values:
Invalid_geometry_type.
Invalid_raster_no_bands.
Rejected Feature Handling:可以设置为终止翻译或在遇到被拒绝的功能时继续运行。此设置可用作默认设置FME optionand as aworkspace parameter.
Parameters
This transformer has no parameters.
Editing Transformer Parameters
使用一组菜单选项,可以通过引用工作区中的其他元素来分配变压器参数。一些变压器也可提供更高级的功能,例如高级编辑器和算术编辑器。要访问这些选项的菜单,请单击除适用的参数旁边。有关更多信息,请参阅Transformer Parameter Menu Options.
定义值
在基于“增大化现实”技术e 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 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.
Parameter Condition Definition Dialog
内容
表达式和字符串可以包括许多函数,字符,参数等 - 是否直接在参数中输入或使用其中一个编辑器构造。
These functions manipulate and format strings. | |
A set of control characters is available in the Text Editor. | |
两个编辑器都有数学函数。 | |
这些运算符可在算术编辑器中使用。 | |
These return primarily feature-specific values. | |
FME and workspace-specific parameters may be used. | |
Working with User Parameters | 创建自己的可编辑参数。 |
参考
Processing Behavior |
|
Feature Holding |
没有 |
Dependencies | 没有 |
FME授权级别 | FME Professional Edition and above |
Aliases | |
History | |
Categories |
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.
Search for所有结果都是关于栅格带百分比xtractoron the FME Community.
Examples may contain information licensed under the Open Government Licence – Vancouver