Ah yes. A thing of beauty. Good one.
-----Original Message----- From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of Mark Ireland Sent: July 26, 2006 10:48 AM To: [email protected] Subject: [fme] Re: Counter (Interval of more than 1) Nice one. Trust a developer to come up with that solution. But as an inveterate workbench hacker I can put your idea into a single transformer! The ExpressionEvaluator has the ability to use the @Count() function within the expression, so you could do it all from there w/o even using the Counter transformer! The expression would be: ((@Count())*2)+1 Alternatively (a little more hacky) an AttributeCreator will do the same with the value set to: @Evaluate("((@Count())*2)+1") Ah - the power of FME functions in a workspace! Mark --- In [email protected], "Don Murray" <[EMAIL PROTECTED]> wrote: > > You could also use a counter that starts at zero followed by an > expression evaluator that uses the > > Value = count_value*2 + 1 > > To get the series 1,3,5,7,9 etc. > > > > -----Original Message----- > From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of Mark > Ireland > Sent: July 25, 2006 3:49 PM > To: [email protected] > Subject: [fme] Re: Counter (Interval of more than 1) > > No - but you could preceed it with a Cloner to create two copies of > everything, then follow it with a Tester to remove _copynum=0 - I > think that would give the effect you're after. > > 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], "thchan2003" <Thomas.Chan@> wrote: > > > > Hi, > > > > Is there a way to invoke the @counter command to output values that > are > > increment of 2? For example, given a start value of 1, I would get a > > series of 1, 3, 5, 7, 9, 11.etc? > > > > Thanks, > > > > Thomas > > > > > > Join us at the FME Worldwide User Conference Sept. 21-22, 2006 Vancouver > BC Canada. For more information, visit www.safe.com/2006uc. > Yahoo! Groups Links > Join us at the FME Worldwide User Conference Sept. 21-22, 2006 Vancouver BC Canada. For more information, visit www.safe.com/2006uc. Yahoo! Groups Links Join us at the FME Worldwide User Conference Sept. 21-22, 2006 Vancouver BC Canada. For more information, visit www.safe.com/2006uc. Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/fme/ <*> 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/
