RasterCellOriginSetter
将单元格源点设置在栅格中的单元格中。
典型的用途
- 调整小区起源以将数据与不同格式或源对齐。
- 调整通过矢量化栅格产生的点的位置。
- 调整光栅的单元格来源以满足格式或处理要求。
它是如何工作的?
RasterCellorigInsetter收到栅格功能并设置细胞来源raster property to coordinates between 0,0 and 1,1.
细胞来源与光栅原点不同。单元来源是每个单元格内的参考点,而栅格源是指整个光栅的原点。
0,0表示单元的左下角,1,1右上角。
左下(0,0)和中心(0.5,0.5)单元格源在栅格格式中很常见,有时需要调整以从不同来源对齐功能。
This transformer is unaffected by raster band and palette selection.
例子
在此示例中,我们将展示在将栅格转换为点特征时改变单元来源的效果。
不te that the source raster has 10 x 10 meter cells (as the ground units of the coordinate system are meters), and the Cell Origin is set to 0.5,0.5 - the center of the cell.
通过使用RasterCellCoercer变压器来产生细胞的两个点和多边形几何形状,我们可以清楚地看到点的中心位置。我们将通过改变细胞来源将它们移动到角落。
栅格被路由到一个rastedcelloriginsetter,然后on toRasterCellCoercer.transformer to generate points.
在RASTCELLORIGINSETTER参数对话框中,X和Y Cell Origin设置为零(0.).
在RASTCELLCOERCER参数对话框中,输出Cell Geometry设定为点。
在此处显示的输出点与输出栅格以其修改的单元来源为0,0,位于单元的左下角。
注意,给定电池尺寸为10米,新创建的点的位置距原始细胞源大约7米。
Usage Notes
- 设置整个光栅的起源坐标,考虑使用RastergeoreFerencer.。
选择光栅变压器
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.
有关光栅几何和属性的信息,请参阅罗斯克斯(IFMERaster)。
与罗斯特合作
RasterCellOriginSetter | 将单元格源点设置在栅格中的单元格中。 |
RasterConvolver. | Applies a convolution filter (sometimes called a核心或者lens)栅格功能并输出结果。 |
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 | 提取物地面控制点(GCP)来自栅格功能的坐标系和点值,并将其视为属性。 |
Rastergcpsetter. | 套地面控制点s(GCPS)在光栅上,用已知坐标配对单元位置。 |
RastergeoreFerencer. | 通过已知的角落坐标或起源,单元格尺寸和旋转来绕地理栅格。 |
Rasterhillsshader. | 基于高程值,生成地形的灰度阴影浮雕表示。 |
RasterInterpretationCoercer. | Alters the interpretation type of rasters, including all bands, and converts cell values if necessary. |
rastermosaicker. | 将多个栅格功能合并到单个栅格功能中。 |
Rasterpropertyextractor. | 提取栅格功能的几何属性并将其视为属性。 |
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. | 增强光栅图像的特征。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. | 将新频段添加到栅格功能。 |
RasterBandCombiner. | 将巧合栅格功能合并到单个输出栅格功能,保留和附加所有频段。 |
RasterBandInterpretationCoercer | 改变单个光栅带的解释类型,如有必要,转换单元值。 |
Rasterbandeepter | 从栅格功能中删除所有未选择的频带。 |
Rasterbandminmaxxtractor. | 提取物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. | 套a new nodata value on selected bands of a raster feature. |
RasterBandorder | 指定栅格中的频带所需顺序。频带根据输入带索引重新排序。 |
RasterBandPropertyextractor. | 提取物the band and palette properties of a raster feature and exposes them as attributes. |
RasterBandremover | 从栅格功能中删除任何选定的频段。 |
漂流带带子 | 将频带或唯一频带和调色板组合分开,并输出单个栅格功能或包含所有组合的单个新栅格功能。 |
RasterStatisticsCalculator | 计算栅格频段的统计信息,并将结果添加为属性。 |
使用细胞
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. | 计算栅格的每个单元格的斜率(z的最大变化率)。 |
Working with Palettes
RasterPaletteAdder | Creates a palette from an attribute, and adds this palette to all selected bands on a raster. |
RasterPaletteExtractor | 在栅格上创建现有调色板的字符串表示,并将其保存到属性。 |
Rasterpalettegenerator | 从光栅的选定频段中生成调色板。输出栅格将使所选频段由带有调色板的新频段替换。 |
RasterpaletteInterpretationCoercer. | 改变光栅调色板的解释类型。 |
RasterPaletteNodataSetter | 标识与栅格乐队的Nodata值匹配的调色板键,并设置一个值。 |
RasterPaletteRemover | 从栅格功能中删除选定的调色板。 |
Rasterpaletteresolver | 通过用相应的调色板值替换单元值来解析栅格上的调色板。具有多个组件(如RGB)的调色板值被分解,并且分配给多个新添加频段的单个值。 |
Workflow Control
RastercheckPointer. | 强制累计覆盖栅格操作要处理,将状态保存到磁盘并释放资源以调整性能或协助内存限制。 |
RasterConsumer. | 读取用于测试目的的栅格功能,包括任何累计光栅操作。没有执行额外的操作,没有任何内容功能。 |
RasterExtractor | 将栅格功能的几何图中序列化为Blob属性,根据常用二进制栅格格式的选择编码内容。 |
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. | 使用纯背景填充的FME_COLOR属性填充矢量功能,创建矢量或点云输入功能的光栅表示。可以使用颜色或强度分量呈现点云。 |
NumericRasterizer | 创建矢量或点云输入特征的数字栅格表示,其中从输入特征的z坐标中取出单元值并覆盖在均匀的背景上。 |
Mapnikerasterizer. | 从输入向量和光栅功能生成光栅,使用MapNik Toolkit对符号化和标签进行精细控制。 |
PointCloudonRasterComponentsEtter. | 通过覆盖光栅上的点云来设置点云组件值。每个点的组件值从点位置处的频带值内插。 |
PointonRasterValueExtractor. | 从一个或多个输入点的位置处从栅格中提取频带和调色板值,并将其设置为特征上的属性。 |
RasterDemgenerator. | 通过统一采样从输入点和断裂线产生的Delaunay三角测量来产生光栅数字高度模型(DEM)。 |
vectoronrasteroverlayer. | 将矢量或点云功能光栅化到现有的光栅上。对于向量特征,FME_Color属性设置像素颜色,可以使用它们的颜色或强度分量呈现点云。 |
配置
输入端口
此变形器仅接受栅格功能。
输出端口
Raster features with the cell origin modified according to parameter selections.
参数
X细胞源 Y Cell Origin |
指定单元来源的x和y坐标,其中0,0是左下角,1,1是右上角。 0.。5,0.5 represents the center of the cell. 值必须在0到1之间,包容性。 |
编辑变压器参数
使用一组菜单选项,可以通过引用工作区中的其他元素来分配变压器参数。一些变压器也可提供更高级的功能,例如高级编辑器和算术编辑器。要访问这些选项的菜单,请单击除适用的参数旁边。有关更多信息,请参阅Transformer Parameter Menu Options。
定义值
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
文本编辑器提供了一种方便的方法来构建来自各种数据源的文本字符串(包括正则表达式),例如属性,参数和常量,其中结果直接在参数内使用。
使用算术编辑器
算术编辑器提供了一种方便的方法来构建来自各种数据源的数学表达式,例如属性,参数和特征函数,其中结果直接在参数内使用。
条件值
根据通过或失败的一个或多个测试条件设置值。
Parameter Condition Definition Dialog
内容
表达式和字符串可以包括许多函数,字符,参数等。
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>)不应用作文字字符串值。
对话框选项 - 表格
Transformers with table-style parameters have additional tools for populating and manipulating values.
行重新排序 |
Enabled once you have clicked on a row item. Choices include:
|
剪裁,复制和粘贴 |
Enabled once you have clicked on a row item. Choices include:
切割,复制和粘贴可以在变压器或变压器之间使用。 |
Filter |
输入一个字符串,和矩阵只会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. |
重置/刷新 |
通常将表重置为其初始状态,并且可以提供其他选项以删除无效条目。行为在变压器之间变化。 |
笔记:并非所有变压器都提供所有工具。
参考
Processing Behavior |
|
功能持有 |
不 |
依赖性 | 没有任何 |
FME许可级别 | FME专业版及以上 |
别名 | |
历史 |
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.
搜索所有关于RasterCelloriginsetter的结果关于FME社区。亚搏国际在线官网
例子可能包含根据开放政府许可证的信息 - 温哥华和/或公开的政府许可证 - 加拿大。