FeatureColorSetter
Assigns colors to incoming features.
输入端口
输入要着色的特征。
请注意,如果使用Map Coloringschemes.
Output Ports
Features with new color attributes.
Features are output through this port when the FeatureColorSetter is passed an inappropriate input type and cannot apply the chosen color scheme to the input. The two color schemes地图着色:五色and地图着色:N Color (Fast)will produce rejected output if the FeatureColorSetter is passed a non-polygon input.
Parameters
Mode
固定的:Manually set a feature's pen and fill colors using the钢笔颜色andFill Colorparameters.
Random:Sets a random color for each incoming feature.
随机(偏移):Same asRandom, but with the pen color slightly different than the fill color. This gives a good visual result.
地图着色:Assigns colors to areas in a coverage so that adjacent areas are output as different colors. The total number of colors used is kept as small as possible while ensuring that no two adjacent regions receive the same color.
When using theN Color (Fast)scheme, each area is colored with the first available color. Ideally, only a few colors will be used but the total number of colors is not guaranteed.
When using the五色scheme, a maximum of five colors will be used to color the regions.
Color Limit:Enables theUnique Color Limitparameter described below.
属性:Enables theRandomize By Attributesparameter described below.
当Color Scheme设置为Randomor随机(偏移)and theRandomize Based On设置为属性, use this parameter to group the input features based on the specified attributes. Grouped features will all be colored the same random and unique color.
If left empty while enabled, each input feature will be treated as its own group.
当Color Scheme设置为Randomor随机(偏移)and theRandomize Based On设置为Color Limit,使用此参数设置随机选择的唯一颜色数的限制。该限制可以设置为下限为0的任何整数值。如果设置为0,则不应用任何绑定,并且对使用的不同颜色的数量没有限制。
当Color Scheme设置为N Color (Fast),使用此参数控制颜色分布的均匀程度。如果给定一个大于0的值,则将投入更大的精力在最大颜色数上提供均匀分布。(但是,如果在该限值下无法快速找到解决方案,则可以使用比该限值更多的颜色。)如果给定值0,则将投入更大的精力来找到使用的颜色数最少的解决方案,但这些颜色之间的分布将不太均匀。
Parameters
当Color Scheme设置为固定的, use this parameter to set the pen color (fme_color).
If blank, the pen color will remain unchanged and the value offme_color将保持原样。
The color is formatted as r,g,b, where each of r, g, and b is a number between 0 and 1.
Use this parameter to set the fill color (fme\ U填充颜色). If blank, the fill color will remain unchanged and the value offme\ U填充颜色将保持原样。
The color is formatted as r,g,b, where each of r, g, and b is a number between 0 and 1.
当Color Scheme设置为Map Coloring,这是包含输出颜色代码的属性。默认值为_颜色\u id.
Colors are output to the Color ID Attribute as integers (the first color is 0, the second color is 1, etc.).
这些参数用于Color Scheme设置为Map Coloring.
When you provide a Pre-existing Area ID Attribute and Neighbor ID Attributes for each area, you can force the relationships to follow pre-existing mappings. For example, if your data contains aggregates and you know the area to which they belong, you can define that relationship using these parameters.
当输入数据包含聚合并且您希望“映射”预先存在的id以定义关系时,此选项特别有用。
Note:If these parameters are not provided, adjacencies between areas are determined geometrically, and non-polygon geometries (including aggregates and ellipses) are removed.
Area IDs must be non-negative integers, and neighbor IDs are entered as a comma-separated list.
Example
In the example below, there are unique feature counts and then IDs.
如果骨料不重要,只需要3种颜色:
Feature | Adjacent to Areas |
---|---|
2,20 | 1, 3, 6 |
8,20 | 3 |
9,20 | 4 |
但是,如果将ID 2,20视为聚合,则需要4种颜色,并且必须提供预先存在的ID属性。
Feature | Adjacent to Areas |
---|---|
20 | 10, 30, 40, 60 |
Feature | 不邻近区域 |
20 | 50 |
相关变压器
- ATopologyBuilder放置在FeatureColorSetter之前可以帮助您构建相邻区域的列表。
- AnAttributeFilteror another FeatureColorSetter can be used to manipulate the Color ID attribute.
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, see变压器参数菜单选项.
Transformer Categories
Transformer History
此转换器结合了这些转换器的功能,并替换了这些转换器:NeighborColorSetter、ColorSetter、RandomColorSetter。
搜索FME知识中心
在上搜索有关此变压器的示例和信息FME Knowledge Center.
TagsKeywords: AreaFillColorSetter AreaFillColourSetter PenColorSetter PenColourSetter ColorSetter ColourSetter FeatureColourSetter NeighborColorSetter NeighbourColourSetter NColorer NColourer MapColorer MapColourer MapColorizer MapColourizer RandomColorSetter RandomColourSetter