RasterToPolygonCoercer
从输入光栅要素创建多边形。对于所有带区中具有相同值的单元的每个相邻区域,输出一个多边形。
典型用途
- 将光栅图像转换为一组多边形。
Vectorizing raster data for vector geoprocessing.
它是如何工作的?
RasterTopolyGonCoercer接受光栅输入功能。多边形围绕单元格(像素)的边缘追踪,封闭带有相同频带值的区域。甜甜圈是在连续区域包含不同价值的岛屿的地方。
可以包括或排除Nodata细胞。
输出多边形可以保留光栅的属性,也可以添加新的标签属性,其中包含以逗号分隔的列表表示的标注栏值。
该变压器支持光栅频段选择。这rasterselector可用于修改选择。
在本例中,我们将对DEM数据集进行矢量化。原始数据表示为单波段数字光栅。标注栏值以米为单位表示高程。
这raster is routed into a RasterToPolygonCoercer.
在“参数”对话框中,我们保留默认设置 - 丢弃Nodata值,保留属性,并创建一个包含频带值的新标签属性。
生成多边形,周围区域具有相同的标注栏值。甜甜圈在必要的地方生产。注意新的_label属性,具有标注栏值。
在这个源数据中,高程间隔是一米,产生了大量的小多边形。可以使用attributerangemapper.and aDissolver生产广义多边形,如图所示。这里使用的范围是每10米。
使用说明
- If memory usage becomes an issue while using this transformer, try adding a雷斯特检查器在RasterTopolyGonCoercer之前。
- If you need a polygon for each pixel in the raster, consider using the拉斯特塞勒.
选择光栅变压器
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.
For information on raster geometry and properties, seerasters(ifmeraster).
与罗斯特合作
RasterCelloriginsetter. | 在光栅中的单元内设置单元原点。 |
光栅卷积器 | 应用卷积滤波器(有时称为a内核或者镜片)栅格功能并输出结果。 |
光栅表达式求值器 | Evaluates expressions on each cell in a raster or pair of rasters, including algebraic operations and conditional statements. |
RASTEREXTENTSCOERCER. | 用多边形替换输入栅格功能的几何图形,覆盖光栅范围的范围或栅格内的数据范围。 |
Rastergcpextractor. | 摘录地面控制点(GCP) coordinate system and point values from a raster feature and exposes them as attributes. |
光栅光栅 | 套地面控制点(GCPs) on a raster, pairing cell positions with known coordinates. |
光栅参考器 | 通过已知角点坐标或原点、单元大小和旋转对光栅进行地理参照。 |
拉斯特希尔斯哈德 | Generates a grayscale shaded relief representation of terrain, based on elevation values. |
RasterInterpretationCoercer | 改变了栅格的解释类型,包括所有频段,并在必要时转换单元值。 |
RasterMosaicker | 将多个光栅要素合并为单个光栅要素。 |
Rasterpropertyextractor. | 提取栅格功能的几何属性并将其视为属性。 |
雷斯特金字塔 | 根据最小输出光栅的层数或尺寸,将光栅重采样为多个分辨率。 |
RasterResampler | 基于指定的输出尺寸,地面单位的单元格大小或原始的百分比,并对新的单元格值进行resples。 |
RasterRotationApplier | 根据光栅要素的旋转角度特性旋转光栅要素,插入新的单元值,更新所有其他受影响的光栅特性,并生成旋转角度为零的输出光栅要素。 |
光栅 | 使用像素绑定而不是地坐标的剪辑栅格功能,并且可选地在周边围绕周边添加单元格。 |
rastertiler. | 通过指定单元/像素或瓷砖数量的图块大小将每个输入栅格分成一系列差块。 |
RasterToPolygonCoercer | 从输入栅格功能创建多边形。为每个连续区域的像素区域输出一个多边形,在输入栅格中具有相同的值。 |
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. |
与乐队一起使用
皮疹 | 向光栅要素添加新标注栏。 |
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. |
捕猎者 | 从栅格功能中删除所有未选择的频带。 |
RasterBandMinMaxExtractor | 从栅格功能中提取最小和最大频带值,调色板键和调色板值,并将它们添加到列表属性。 |
Rasterbandnamesetter. | 将所选频段的频带名称设置在栅格上,与频带数字相比,使栅格内容更加简单地理解。 |
RasterbandNodataremover | 从栅格功能的选定频段中删除现有的Nodata标识符。先前等于Nodata值的任何值都被视为有效数据。 |
RasterbandNodeSetter公司 | 在栅格功能的所选频段上设置新的Nodata值。 |
光栅排序器 | 指定光栅中所需的标注栏顺序。波段根据输入波段索引重新排序。 |
RasterBandPropertyExtractor. | 提取栅格功能的频带和调色板属性并将其作为属性暴露。 |
RasterBandRemover | 从栅格功能中删除任何选定的频段。 |
RasterBandSeparator | Separates bands or unique band and palette combinations, and outputs either individual raster features or a single new raster feature containing all combinations. |
rastertatisticscalculator. | 计算光栅标注栏的统计信息,并将结果作为属性添加。 |
Working with Cells
RasterSpectCalculator. | Calculates the aspect (direction of slope) for each cell of a raster. Aspect is measured in degrees from 0 to 360, clockwise from north. |
拉斯特塞勒 | 为栅格中的每个单元格创建各个点或多边形,可选地将频带值提取为z坐标或属性。 |
RasterCellValueCalculator | Evaluates basic arithmetic , minimum, maximum or average operations on the cell values of a pair of rasters. |
Rastercellvaluerepler. | Replaces a range of band values in a raster with a new single value. |
rastercellvaluerounder. | Rounds off raster cell values. |
RasterSingularCellValueCalculator | 对栅格的小区值对数值执行基本算术运算。 |
rasterslopecalculator. | 计算光栅每个单元的斜率(以z为单位的最大变化率)。 |
与调色板合作
梁栅栏 | 从属性中创建一个调色板,并将此调色板添加到栅格上的所有选定频段。 |
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. |
RasterPalette解释强制器 | 更改光栅选项板的解释类型。 |
Rasterpalettenodatasetter. | 标识与光栅标注栏的nodata值匹配的调色板键,并在其上设置值。 |
Rasterpaletteremover | 从光栅要素中删除选定的选项板。 |
锉刀 | 解决了调色板光栅代替c (s)ell 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. |
亚搏在线工作流控制
雷斯特检查器 | 强制累计覆盖栅格操作要处理,将状态保存到磁盘并释放资源以调整性能或协助内存限制。 |
雷斯特消费者 | 读取用于测试目的的栅格功能,包括任何累计光栅操作。没有执行额外的操作,没有任何内容功能。 |
rasterextractor | Serializes the geometry of a raster feature into a Blob attribute, encoding the contents according to a choice of common binary raster formats. |
Rasternumeric创建者 | Creates a numeric raster of specified size and resolution, with default cell values. |
拉斯特雷普莱瑟 | Decodes a binary attribute containing encoded rasters stored as Blobs, replacing the feature’s geometry with the decoded raster. |
RasterRGBCreator. | 创建指定大小,分辨率和解释类型的颜色栅格功能,具有默认单元格值。 |
rasterselector | 为后续变压器操作选择栅格的特定频带和调色板。 |
矢量和栅格
成像光栅 | 创建矢量或点云输入要素的光栅表示,在矢量要素的实心背景填充上使用fmeèu颜色属性。可以使用点云的颜色或强度组件渲染点云。 |
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. |
矢量光栅叠加器 | 将矢量或点云要素栅格化到现有栅格上。对于矢量特征,“fmeèu颜色”属性设置像素颜色,可以使用其颜色或强度分量渲染点云。 |
配置
Input Ports
此变形器仅接受栅格功能。
输出端口
Polygons and donut polygons produced by tracing around contiguous areas of identical cell (pixel) values.
非光栅特征将路由到
被拒绝的功能将具有fme\ U rejection\ U code属性,该属性具有以下值之一:
INVALID_GEOMETRY_TYPE
Invalid_raster_no_bands.
Invalid_geometry_dimension.
拒绝功能处理: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选项和A.工作区参数.
参数
Extract Nodata Values | Specifies whether polygons will be output for nodata areas in the raster. 对于每个选定的频段,当该单元格的值等于该频段的nodata值时,该单元格被视为nodata。如果任何单元格值不等于该频带的nodata值,则该单元格将被视为数据。 |
保留属性 | 指定输出矢量要素是否应保留输入光栅要素的属性。 |
Label Attribute | Specifies the name of an attribute that will be created on every output feature describing the polygon. 标签将是该多边形覆盖的频段值的逗号分隔列表。 For example, the label for a raster with three bands might be something like64,128,255而单个波段数字或DEM光栅标签可能是单个整数。 |
编辑变压器参数
使用一组菜单选项,可以通过引用工作区中的其他元素来分配变压器参数。一些变压器也可提供更高级的功能,例如高级编辑器和算术编辑器。要访问这些选项的菜单,请单击除适用的参数旁边。有关更多信息,请参阅变压器参数菜单选项.
Defining Values
有几种方法可以在变压器中定义使用的值。最简单的是简单地输入值或字符串,其可以包括各种类型的函数,例如属性引用,数学和字符串函数和工作区参数。有许多工具和快捷方式可以帮助构造值的值,通常可以从与值字段相邻的下拉上下文菜单中提供。
使用文本编辑器
文本编辑器提供了一种从各种数据源(如属性、参数和常量)构造文本字符串(包括正则表达式)的方便方法,其中结果直接用于参数内部。
使用算术编辑器
这算术编辑器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.
条件值
根据通过或失败的一个或多个测试条件设置值。
Content
Expressions and strings can include a number of functions, characters, parameters, and more - whether entered directly in a parameter or constructed using one of the editors.
Reference
处理行为 |
|
特征保持 |
不 |
依赖项 | 不ne |
FME许可级别 | FME专业版及以上 |
别名 | |
历史 | |
类别 |
FME社亚搏国际在线官网区
FME社区是演示亚搏国际在线官网,TOS,文章,常见问题和更多的地方。获取您的问题的答案,从其他用户学习,并建议,投票和评论新功能。
搜索所有结果都是关于光泽度的关于FME社区。亚搏国际在线官网
例子可能包含根据开放政府许可证的信息 - 温哥华