Thanks,
 
Here is another question.  Is there a way to count backwards and increment by -2 such that I get a serious of 10,8,6,4,2,0... etc
 
Regards,
 
Thomas


From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of mark2atsafe
Sent: Wednesday, July 26, 2006 11: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]com, "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]com [mailto:[EMAIL PROTECTED]com] On Behalf Of Mark
> Ireland
> Sent: July 25, 2006 3:49 PM
> To: [EMAIL PROTECTED]com
> 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]com, "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




__,_._,___

Reply via email to