Skip to main content
Open

Dynamic Attributes on Writer

Related products:Transformers
  • November 19, 2016
  • 2 replies
  • 42 views

fmelizard
Safer
Forum|alt.badge.img+22

I would like some mechanism to dynamically add attributes to a writer – presumably linked to some transformer.

Note that this is not a dynamic schema -- The attributes do not exist on the source data, and I don’t know ahead of time what the attributes will be so I can’t manually add them to the writer. An example is any key/value pair from a list (ListHistogrammer for instance) where I would like the attribute name (key) added to the writer.

2 replies

bruceharold
Influencer
Forum|alt.badge.img+19
  • Influencer
  • December 19, 2016

Yes it is painful that dynamic attribute creation within the workspace isn't handled well.


martinkoch
Enthusiast
Forum|alt.badge.img+25
  • Enthusiast
  • January 6, 2017

I just started to write the idea 'Add attributes to dynamic writer', when this post was autosuggested to me. I don't know if my idea spawned from a comparable problem as @FMELizard, but I will add mine as a comment here..... (and add a vote-up).

At the moment the dynamic writer allows to remove attributes, but I have some big workspaces doing a lot of tests on multiple featuretypes, resulting only in adding an attribute 'reason_failed' to some. Not being able to use a dynamic writer with 'add attribute, reason_failed (string)' results in a FeatureTypeFilter spanning the whole vertical region of my screen when zoomed out to the max, and a motherload of attribute-keepers to recreate the schema of every feature, with the reason_failed attribute. This of course is error prone beyond normal software development standards ;-).

Kind regards, Martin