Skip to main content
This is a simple question but it's Monday morning so would appreciate help.

 

 

I have a list of features, and one attrbute is between 6-8 characters long.

 

 

I want to rename the attribute with the first 6 characters of their existing attribute (so drop the last two characters where they occur), and remove any features whose attributes are duplicateed due to the new name.

 

 

eg.

 

 

i want to make;

 

 

AB1234AB to AB1234 and only leave 1 record of AB1234 in my output.

 

 

i'm trying in BulkAttributeRenamer but think i may be over complicating it

 

 

cheers

 

 

Hi,

 

 

"AB1234AB" looks like an attribute value. Is it indeed an attribute name?

 

If it was an attribute value, the SubstringExtractor transformer can be used to get the first 6 characters...

 

Takashi

Reply