Skip to main content
Question

How to edit attribute table rows


I'ts pretty clear on how to edit, remove and add attribute columns to a file. But what transformer do I use if I want to edit rows within the attribute field and then write the file?

 

I want to edit the row where it says "<missing>".

Untitled

2 replies

geomancer
Evangelist
Forum|alt.badge.img+47
  • Evangelist
  • June 11, 2021

You have several branches in your workspace. In one branch features get the attribute field Funktion, in another branch they do not. And you combine those branches in the Inspector.

You can add an AttributeCreator to create the attribute field Funktion in the branch where the field is missing, or you can merge the branches and add the NullAttributeMapper.

And as you just want to inspect the data, it may even be enough to use a different inspector for each branch.


chickey
Contributor
Forum|alt.badge.img+4
  • Contributor
  • June 11, 2021

Add an AttributeCreator.

In 'New Attribute', dropdown and select the Funktion attribute.

In 'Attribute Value', dropdown and select the Conditional Value option.

Double click the first If box (under Test Condition).

In the 'Left Value' field, select the Funktion attribute.

In the 'Operator' field, select 'Attribute Is Missing'.

In the 'Attribute Value' field at the bottom, put in the value you want the attribute to be if it is missing.


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