RasterSubsetter
Clips raster features using pixel bounds instead of ground coordinates, and optionally adds cells around the perimeter.
Typical Uses
- Clipping a portion of a raster based on number of pixels instead of ground coordinates
- Adding a frame of empty cells around a raster or subset of a raster
它是如何工作的?
The RasterSubsetter accepts raster features, and clips them according to the origin and number of pixels defined.
子集由起始列和行定义,以及要包括的列和行(即,单元)的数量。
The starting column and row position are offset from the raster origin (0,0), in the upper left corner of the raster. For more information on raster structure, seeRasters (IFMERaster).
The clipped raster (subset) may be padded with empty cells, with settings available for top, bottom, left and right.
This transformer is unaffected by raster band and palette selection.
例子
In this example, we will extract a portion of a raster image, and add a frame of empty cells around it. Note that the original image is 1600 x 1000 pixels.
The raster is routed into a RasterSubsetter.
子集将从列300,行300开始,并且将是500像素的方形。我们还在左侧,顶部和右侧添加细胞填充 - 100像素,底部有更宽的300像素填充。
The output feature is the raster subset, including the padding. Note the new dimensions include both the 500 x 500 cropped image, plus the specified padding.
The output raster, including padding, compared to the extents of the original image:
Usage Notes
- To superset a raster, set the Subset to include the entire raster and add Padding.
- To clip a raster by spatial extents, use the Clipper.
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, seeRasters (IFMERaster).
与罗斯特合作
RasterCellOriginSetter | Sets the cell origin point within cells in a raster. |
RasterConvolver | Applies a convolution filter (sometimes called akernelorlens) to raster features and outputs the results. |
RasterExpressionEvaluator | 评估栅格或一对栅格中的每个单元格的表达式,包括代数操作和条件陈述。 |
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 | Extracts地面控制器l Point(GCP)来自栅格功能的坐标系和点值,并将其视为属性。 |
RasterGCPSetter | Sets地面控制器l Points(GCPS)在光栅上,用已知坐标配对单元位置。 |
RasterGeoreferencer | Georeferences a raster by either known corner coordinates or origin, cell size, and rotation. |
RasterHillshader | 基于高程值,生成地形的灰度阴影浮雕表示。 |
RasterInterpretationCoercer. | Alters the interpretation type of rasters, including all bands, and converts cell values if necessary. |
RasterMosaicker | 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. |
RasterResampler | Resamples rasters, based on specified output dimensions, cell size in ground units, or percentage of original, and interpolates new cell values. |
RasterRotationApplier | 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. | 增强光栅图像的特征。Rastersharpener增强边界,线条和曲线,同时降低光栅图像的平坦区域中的噪音。 |
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地图图块服务。这是通过重新采样仪器来完成各种不同分辨率的,然后将它们拆分为瓷砖。 |
与乐队一起使用
RasterBandAdder | Adds a new band to a raster feature. |
RasterBandCombiner. | Merges coincidental raster features into a single output raster feature, preserving and appending all bands. |
RasterBandInterpretationCoercer | 改变单个光栅带的解释类型,如有必要,转换单元值。 |
RasterBandKeeper | 从栅格功能中删除所有未选择的频带。 |
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 | Sets 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 | 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. | 从栅格功能中删除任何选定的频段。 |
RasterBandSeparator | 将频带或唯一频带和调色板组合分开,并输出单个栅格功能或包含所有组合的单个新栅格功能。 |
RasterStatisticsCalculator | Calculates statistics on raster bands and adds the results as attributes. |
Working with Cells
RasterAspectCalculator | 计算光栅的每个单元的方面(斜率方向)。方面以从北方顺时针的0到360测量。 |
RasterCellCoercer | Creates individual points or polygons for each cell in a raster, optionally extracting band values as z coordinates or attributes. |
RasterCellValueCalculator | Evaluates basic arithmetic , minimum, maximum or average operations on the cell values of a pair of rasters. |
RasterCellValueReplacer | 用新的单个值替换栅格中的一系列频带值。 |
RasterCellValueRounder | Rounds off raster cell values. |
RasterSegmenter | 基于输入光栅图像单元中的强度差,将光栅图像分配到从输入图像中的任意大小的小区组。 |
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 | 通过用相应的调色板值替换单元值来解析栅格上的调色板。具有多个组件(如RGB)的调色板值被分解,并且分配给多个新添加频段的单个值。 |
Workflow Control
RasterCheckpointer | 强制累计覆盖栅格操作要处理,将状态保存到磁盘并释放资源以调整性能或协助内存限制。 |
RasterConsumer | 读取用于测试目的的栅格功能,包括任何累计光栅操作。没有执行额外的操作,没有任何内容功能。 |
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 | 创建指定大小和分辨率的数字栅格,具有默认单元格值。 |
RasterReplacer | 解码包含存储为Blobs的编码栅格的二进制属性,用解码栅格替换要素的几何图形。 |
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 | 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. |
Mapnikerasterizer. | 从输入向量和光栅功能生成光栅,使用MapNik Toolkit对符号化和标签进行精细控制。 |
PointCloudonRasterComponentsEtter. | Sets point cloud component values by overlaying a point cloud on a raster. The component values for each point are interpolated from band values at the point location. |
PointonRasterValueExtractor. | Extracts 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 | 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. |
配置
输入Ports
此变形器仅接受栅格功能。
输出端口
One subsetted raster per input raster feature.
Non-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
INVALID_RASTER_CANNOT_SUBSET
Rejected Feature Handling:可以设置为终止翻译或在遇到被拒绝的功能时继续运行。此设置可用作默认设置FME option和A.工作区参数.
Parameters
These parameters specify the position and size of the subset, in cells (pixels), to be taken from the raster. They do not include any padding values.
Start Column | The position of the starting pixel (x-axis) for the subset. Pixels are counted rightwards from the upper left point of origin. |
Number of Columns (cells) | The number of cells (pixels) to include to the right of the Start Column. |
Start Row | The position of the starting pixel (y-axis) for the subset. Pixels are counted downwards from the upper left point of origin. |
行数(单元格) | The number of cells (pixels) to include below the Start Row. |
这些参数指定了在栅格的子集部分周围应放置多个小区中的填充的行数和列。
Number of Top Padding Rows (cells) | The number of cells (pixels) to add above the subset raster. |
Number of Left Padding Columns (cells) | The number of cells (pixels) to add to the left of the subset raster. |
Number of Bottom Padding Rows (cells) | The number of cells (pixels) to add below the subset raster. |
Number of Right Padding Columns (cells) | The number of cells (pixels) to add to the right of the subset raster. |
Editing Transformer Parameters
Using a set of menu options, transformer parameters can be assigned by referencing other elements in the workspace. More advanced functions, such as an advanced editor and an arithmetic editor, are also available in some transformers. To access a menu of these options, clickbeside the applicable parameter. For more information, seeTransformer Parameter Menu Options.
Defining Values
有几种方法来定义一个值供我使用n 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
Content
表达式和字符串可以包括许多函数,字符,参数等。
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>) should not be used as literal string values.
These functions manipulate and format strings. | |
Special Characters |
文本编辑器中提供了一组控制字符。 |
Math functions are available in both editors. | |
Date/Time Functions | 文本编辑器中提供日期和时间函数。 |
这些运算符可在算术编辑器中使用。 | |
These return primarily feature-specific values. | |
FME and workspace-specific parameters may be used. | |
Creating and Modifying User Parameters | Create your own editable parameters. |
Dialog Options - Tables
Transformers with table-style parameters have additional tools for populating and manipulating values.
行重新排序 |
Enabled once you have clicked on a row item. Choices include:
|
Cut, Copy, and Paste |
Enabled once you have clicked on a row item. Choices include:
Cut, copy, and paste may be used within a transformer, or between transformers. |
Filter |
Start typing a string, and the matrix will only display rows matching those characters. Searches all columns. This only affects the display of attributes within the transformer - it does not alter which attributes are output. |
Import |
Import populates the table with a set of new attributes read from a dataset. Specific application varies between transformers. |
Reset/Refresh |
Generally resets the table to its initial state, and may provide additional options to remove invalid entries. Behavior varies between transformers. |
Note:Not all tools are available in all transformers.
参考
Processing Behavior |
|
Feature Holding |
No |
Dependencies | 没有任何 |
FME Licensing Level | FME Professional Edition and above |
Aliases | |
History |
FME Community
FME社区是演示亚搏国际在线官网,TOS,文章,常见问题和更多的地方。获取您的问题的答案,从其他用户学习,并建议,投票和评论新功能。
Search forall results about the RasterSubsetteron the FME Community.
例子may contain information licensed under the Open Government Licence – Vancouver and/or the Open Government Licence – Canada.