Question

Basic attribute removal


I have a shapefile from a GDB and I'm trying to remove extra fields that are null, blank, or just aren't needed to make the file size smaller and generally clean things up. I have my reader, the attribute remover, and the writer but when the translation is done and indicates it was successful, I open the new shapefile and all the fields that I wanted gone are still there. Am I missing an additional transformer or should I write it out as a GDB? This seems so simple but I can't get it to work!


3 replies

Badge +16

Try removing the attributes (red arrows) from the writer feature type

Userlevel 4

You cannot change the schema between features, it is the same for the whole dataset.

This means that the scema is defined by the writer, not by the features that are sent to it, and as such the AttributeRemover has no effect on the Writer.

Badge +10

Try removing the attributes (red arrows) from the writer feature type

Or set the attribute defniition to Automatic within the writer

Reply