FeatureColorSetter
Assigns colors to incoming features.
输入端口
![Closed](http://www.baooytra.com/docs/fme/2017.0/html/FME_Desktop_Documentation/FME_Transformers/Transformers/../Skins/Default/Stylesheets/Images/transparent.gif)
输入功能要有色。
请注意,如果您使用的是,功能必须在拓扑清洁Map Coloringschemes.
Output Ports
![Closed](http://www.baooytra.com/docs/fme/2017.0/html/FME_Desktop_Documentation/FME_Transformers/Transformers/../Skins/Default/Stylesheets/Images/transparent.gif)
Features with new color attributes.
![Closed](http://www.baooytra.com/docs/fme/2017.0/html/FME_Desktop_Documentation/FME_Transformers/Transformers/../Skins/Default/Stylesheets/Images/transparent.gif)
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
![Closed](http://www.baooytra.com/docs/fme/2017.0/html/FME_Desktop_Documentation/FME_Transformers/Transformers/../Skins/Default/Stylesheets/Images/transparent.gif)
固定: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.
![Closed](http://www.baooytra.com/docs/fme/2017.0/html/FME_Desktop_Documentation/FME_Transformers/Transformers/../Skins/Default/Stylesheets/Images/transparent.gif)
Color Limit:Enables theUnique Color Limitparameter described below.
属性:Enables theRandomize By Attributesparameter described below.
![Closed](http://www.baooytra.com/docs/fme/2017.0/html/FME_Desktop_Documentation/FME_Transformers/Transformers/../Skins/Default/Stylesheets/Images/transparent.gif)
当。。。的时候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.
![Closed](http://www.baooytra.com/docs/fme/2017.0/html/FME_Desktop_Documentation/FME_Transformers/Transformers/../Skins/Default/Stylesheets/Images/transparent.gif)
当。。。的时候Color Scheme被设置为Randomor随机(偏移)and theRandomize Based On被设置为Color Limit,使用此参数设置随机选择唯一颜色的数量的限制。
The limit can be set to any integer value with a lower 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.
Parameters
![Closed](http://www.baooytra.com/docs/fme/2017.0/html/FME_Desktop_Documentation/FME_Transformers/Transformers/../Skins/Default/Stylesheets/Images/transparent.gif)
当。。。的时候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.
![Closed](http://www.baooytra.com/docs/fme/2017.0/html/FME_Desktop_Documentation/FME_Transformers/Transformers/../Skins/Default/Stylesheets/Images/transparent.gif)
Use this parameter to set the fill color (fme_fill_color.). If blank, the fill color will remain unchanged and the value offme_fill_color.将留下。
The color is formatted as r,g,b, where each of r, g, and b is a number between 0 and 1.
![Closed](http://www.baooytra.com/docs/fme/2017.0/html/FME_Desktop_Documentation/FME_Transformers/Transformers/../Skins/Default/Stylesheets/Images/transparent.gif)
当。。。的时候Color Scheme被设置为Map Coloring,这是包含输出颜色代码的属性。默认为_color_id..
Colors are output to the Color ID Attribute as integers (the first color is 0, the second color is 1, etc.).
![Closed](http://www.baooytra.com/docs/fme/2017.0/html/FME_Desktop_Documentation/FME_Transformers/Transformers/../Skins/Default/Stylesheets/Images/transparent.gif)
这些参数使用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
变压器的历史
此变压器结合了这些变压器:邻居ColorEnter,Colorsetter,随机彩色彩色的功能和替换的功能。
搜索FME知识中心
搜索有关此变压器的样本和信息FME Knowledge Center.
TagsKeywords: AreaFillColorSetter AreaFillColourSetter PenColorSetter PenColourSetter ColorSetter ColourSetter FeatureColourSetter NeighborColorSetter NeighbourColourSetter NColorer NColourer MapColorer MapColourer MapColorizer MapColourizer RandomColorSetter RandomColourSetter