Hey Adrian,
(This should work if you're trying to rename attribute
values, not attribute names)
A relatively easy way to do this might be to use the
AttributeSplitter and use "10s20s" as the delimiter (asuming there's
less than 20 characters after your first ten).
This will basically trim the first 10 characters (ie. "data_feat_")
and add it to a list.
You should then be able to explode that list, then use the Attribute
Filter to separate only those with said list name mylist{1} that has
a value of "data_feat_".
Once they're separated, the ones that don't have a value
of "data_feat" leave them alone and re-connect them to the flow at
the end. Those with "data_feat_" use the attribute renamer to set
the new attribute value to the mylist{2} value (see the
AttributeSplitter description in FME).
Basically you're chopping off the first 10 letters of attributes,
but only on those that start with "data_feat_"
Hope this helps
Steve
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/