Hi
why not use tcl, with this you can create your own counter with any
incrimination you like - even negative
do something like this
in the header of your mapping file place this
Tcl2 set i 1 ; set increment 2
\
proc myCouter {} { return [ incr i $increment ] }
and then in the pipeline place this
@SupplyAttributes(myCountAttr, @Tcl2( myCounter ))
by using an array to hold the current state of the counter, we could even
expand this counter to include domains the way the @Count() do
the only thing that are missing is that we will not get the final count into
the logfile, but even that is possible using a little extra coding
simple and flexible, have fun
Peter Laulund
National survey and cadastre, Denmark
>From: "Don Murray" <[EMAIL PROTECTED]>
>Reply-To: [email protected]
>To: <[email protected]>
>Subject: RE: [fme] Re: Counter (Interval of more than 1)
>Date: Tue, 25 Jul 2006 16:23:00 -0700
>
>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" <[EMAIL PROTECTED]> 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
>
>
>
>
>
>
>
_________________________________________________________________
Opret en personlig blog og del dine billeder på MSN Spaces:
http://spaces.msn.com
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/