FeatureColorsetter.
将颜色分配给传入功能。
Input Ports
Input features to be colored.
Note that features must be topologically clean if you are using theMap Coloring方案。
输出端口
Features with new color attributes.
通过此端口输出功能,当FextEcolorSetter通过不当输入类型时,无法将所选择的颜色方案应用于输入。两种颜色方案Map Coloring: Five ColorandMap Coloring: N Color (Fast)如果FeatureColorSetter通过非多边形输入,将产生拒绝输出。
参数
Mode
Fixed:Manually set a feature's pen and fill colors using thePen Colorand填色参数。
金兰m:Sets a random color for each incoming feature.
随机(偏移):和...一样金兰m, but with the pen color slightly different than the fill color. This gives a good visual result.
Map Coloring:将颜色分配给覆盖范围内的区域,以便相邻区域作为不同颜色输出。所使用的颜色总数保持在尽可能小,同时确保没有两个相邻区域接收相同的颜色。
使用时N Color (Fast)方案,每个区域都是彩色的第一种可用颜色。理想情况下,只使用少量颜色,但无法保证颜色总数。
使用时Five Color方案,最多五种颜色将用于颜色区域。
颜色限制:启用Unique Color Limit参数下面描述。
属性:启用按属性随机化参数下面描述。
When the配色方案is set to金兰mor金兰m (Offset)and the基于随机化is set to一种ttributes,使用此参数根据指定的属性对输入功能进行分组。分组功能全部都是相同随机和独特的颜色。
如果启用时留空,则每个输入功能将被视为自己的组。
When the配色方案is set to金兰mor金兰m (Offset)and the基于随机化is set to颜色极限, use this parameter to set a limit on the number of unique colors randomly selected.
限制可以设置为任何l的整数值ower bound of 0. If set to 0, then no bound is applied, and there will be no limit to the number of different colors used.
参数
When the配色方案is set toFixed,使用此参数设置笔颜色(FME_COLOR.)。
If blank, the pen color will remain unchanged and the value ofFME_COLOR.will be left as is.
颜色被格式化为R,G,B,其中R,G和B中的每一个是0和1之间的数字。
Use this parameter to set the fill color (fme_fill_color)。If blank, the fill color will remain unchanged and the value offme_fill_colorwill be left as is.
颜色被格式化为R,G,B,其中R,G和B中的每一个是0和1之间的数字。
When the配色方案is set toMap Coloring, this is the attribute that contains the output color code. The default is_color_id。
颜色作为整数输出到Color ID属性(第一个颜色为0,第二种颜色为1等)。
These parameters are used when the配色方案is set toMap 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.
This option is especially useful when the input data contains aggregates and you want to "map" pre-existing IDs to define the relationships.
Note:如果未提供这些参数,则区域之间的区域之间的邻接地区确定,并且除去非多边形几何形状(包括聚集体和椭圆)。
一种rea IDs must be non-negative integers, and neighbor IDs are entered as a comma-separated list.
例
In the example below, there are unique feature counts and then IDs.
If aggregates are not important, only 3 colors are required:
Feature | 邻近地区 |
---|---|
2,20 | 1, 3, 6 |
8,20 | 3. |
9,20 | 4. |
If, however, ID 2,20 is treated as an aggregate, then 4 colors are required and the pre-existing ID attributes must be supplied.
Feature | 邻近地区 |
---|---|
20 | 10, 30, 40, 60 |
Feature | Not Adjacent to Area |
20 | 50 |
Related Transformers
- 一种TopologyBuilderplaced before the FeatureColorSetter can help you build a list of adjacent areas.
- 一个attributefilteror 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, seeTransformer Parameter Menu Options。
Transformer Categories
变压器历史
This transformer combines the features of, and replaces, these transformers: NeighborColorSetter, ColorSetter, RandomColorSetter.
Search FME Knowledge Center
Search for samples and information about this transformer on theFME知识中心。
标签Keywords: AreaFillColorSetter AreaFillColourSetter PenColorSetter PenColourSetter ColorSetter ColourSetter FeatureColourSetter NeighborColorSetter NeighbourColourSetter NColorer NColourer MapColorer MapColourer MapColorizer MapColourizer RandomColorSetter RandomColourSetter