Here you go - my first ever attempt at writing a transformer. I'm quote proud of it (even if chunks were copied from elsewhere).
The AttributeNameTrimmer trims characters from the front of an attribute name. Sorry, trimming it from the end was beyond me (should be a simple $ instead of ^, but then TCL interprets it as a variable). Anyway the file is in the files section of the group and on our ftp site at... ftp://ftp.safe.com/outgoing/attributeNameTrimmer.fmx It's very much provided as-is, though I may file a PR to see if this or something similar can be added to FME. You should copy the file to <fme install folder>/transformers then refresh your transformer gallery (or restart FME). Hope you find this useful Mark Mark Ireland, Senior Product Specialist Safe Software Inc. Surrey, BC, CANADA [EMAIL PROTECTED] http://www.safe.com Solutions for Spatial Data Translation, Distribution and Access > > --- In [email protected], "amp_starapic" <amp_starapic@> wrote: > > Hi Everyone > > Happy new year to all! > > I am using workbench to create an automatic translator. The source > features have a number of attributes all beginning with a prefix, > e.g. "data_feat_". I would like to be able to automatically rename > the attributes by removing this prefix. I do not have a full list of > the attributes that have the prefix, hence the need to make it quite > generic! > > I suspect this may involve TCL which i afraid I do not much > experience of! > > Does any one have any suggestions? > > Many Thanks > > Adrian For insights into what's up at Safe Software and what's on the development horizon, visit Safe's blog at spatial-etl.blogspot.com. Safe Software has also made slides available that outline enhancements planned for FME 2007. The slides are from the "Road Ahead" presentation given on Day 2 of the FME Worldwide Users Conference. To view these slides, visit www.safe.com/2006uc. Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/fme/ <*> Your email settings: Individual Email | Traditional <*> To change settings online go to: http://groups.yahoo.com/group/fme/join (Yahoo! ID required) <*> To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
