Skip to main content
Solved

What to do when there is no "Group by" on a transformer

  • August 9, 2013
  • 1 reply
  • 10 views

Forum|alt.badge.img
Hi,

 

 

I would like to use the FeatureColorSetter with the 5 color options but I woud like to group the feature by an attribute.

 

 

Unfortunately there is no Group by option in this transformer. Is there a way to group (or fetch) the features by an attribute with other transformers before the FeatureColorSetter.

 

 

Except the AttributeFilter, I dont have any idea. The problem with the AttributeFilter, is that there is more than 60 groups in the dataset, and linking all the groups is not really elegant.

 

 

Thank you for your help,

 

Max Demars

 

Best answer by takashi

Hi Max,

 

 

I created this image a few weeks ago for other thread, but this might be also useful in your case. The points are:

 

- create features having color  (5 features in your case?)

 

- merge color properties to input features using group name as join key

 

- set color to features.   The necessary condition is that every feature has an attribute corresponding to a color like group name of this example.

 

Hope this helps.

 

Takashi
View original
Did this help you find an answer to your question?
<strong>This post is closed to further activity.</strong><br /> It may be a question with a best answer, an implemented idea, or just a post needing no comment.<br /> If you have a follow-up or related question, please <a href="https://community.safe.com/topic/new">post a new question or idea</a>.<br /> If there is a genuine update to be made, please contact us and request that the post is reopened.

1 reply

takashi
Evangelist
  • Best Answer
  • August 9, 2013
Hi Max,

 

 

I created this image a few weeks ago for other thread, but this might be also useful in your case. The points are:

 

- create features having color  (5 features in your case?)

 

- merge color properties to input features using group name as join key

 

- set color to features.   The necessary condition is that every feature has an attribute corresponding to a color like group name of this example.

 

Hope this helps.

 

Takashi

Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings