Hi Mark About TCL /Tcl2
I never use TCL any more even if I have to process a lot off attributes first the functions in Tcl2 are verry flexible and esay to use and my expirence is that you get a better performance with Tcl2 When Tcl2 was a new function I movede some processing involving a lot attribute manipulation from TCL to Tcl2 make the mapping file 2 times as fast Peter >From: "mark2atsafe" <[EMAIL PROTECTED]> >Reply-To: [email protected] >To: [email protected] >Subject: [fme] Re: Automatic attribute renaming >Date: Wed, 10 Jan 2007 23:38:11 -0000 > >Thanks Peter, >Yes, I did wonder about the TCL/Tcl2 issue, but there was a comment in >the existing code that said... > >"@TCL is used rather than @Tcl2 because all attribute values are >processed" > >...so I stuck to what they had. I now see how the functions can be >used to grab and process multiple attributes. Of course it needs a >fair bit of TCL experience to condense it all into a couple of lines >as you've done. > >If I get a spare moment I'll try converting the transformer to Tcl2. > >Thanks > >Mark > >--- In [email protected], "peter laulund" <[EMAIL PROTECTED]> wrote: > > > > Hi Mark > > > > I just tok a look at your first transformer - Bravo - I think it >would worke > > > > I just have this comment, you should not use the TCL function as it >is quit > > slow comparede to Tcl2 and > > > > In Tcl2 you dont have the FME_Attributes array, in stead you have a >group > > off functions allowing you to manipulate and query the attributes >this is > > mutch faster and more flexible > > > > you could try and replace TCL with Tcl2 and the tcl stuff with the >function > > i just mailede to the lsit > > > > Peter > > > > > > >From: "mark2atsafe" <[EMAIL PROTECTED]> > > >Reply-To: [email protected] > > >To: [email protected] > > >Subject: [fme] Re: Automatic attribute renaming > > >Date: Wed, 10 Jan 2007 19:52:22 -0000 > > > > > >Hi Adrian, > > >I can't think of a way to rename the attribute names except by TCL. > > >@RenameAttributes doesn't appear to permit multiple changes - the > > >AttributePrefixer help says it uses this function, but doesn't. > > > > > >The good news is that I think the TCL would be fairly simple. In fact, > > >I'm almost tempted to suggest that the easiest way would be to grab > > >the transformer definition for AttributePrefixer (from fmesuite.fmx) > > >and create a new transformer, replacing the "prefix appending" part > > >with a "strip off these characters" part. That way you have the > > >outline of the TCL already defined, and just need to insert the > > >correct replacement function. > > > > > >I'll maybe have a try at this if I have time... but will definitely > > >look up the TCL command you would need to use. > > > > > >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 > > > > > > > > > > > > > > _________________________________________________________________ > > Opret en personlig blog og del dine billeder på MSN Spaces: > > http://spaces.msn.dk > > > > _________________________________________________________________ Find dine dokumenter lettere med MSN Toolbar med Windows-pc-søgning - hent den gratis her: http://toolbar.msn.dk 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/
