Hi
just a short note to this discussion
I dont use WB but do some looping in some off my mapping files, Nisse writes
that you have to use a Tester to check when to leave the loop
The looper is based on the BranchingFactory and this factory has a build in
tester - working exactly like a TestFactory - but it dont look like this
functionality is used in WB, beleow is an exampel on how to implement this
in a mapping file
the exampel will dublicate a point and then replace it dxy until X > x1
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- -
FACTORY_DEF * TeeFactory
\
FACTORY_NAME "CREATE GRID: X Loop Start"
\
INPUT FEATURE_TYPE toXLoop
\
OUTPUT FEATURE_TYPE gridPoint
\
OUTPUT FEATURE_TYPE toXLoop
\
@Offset($(dxy), 0 )
FACTORY_DEF * BranchingFactory
\
FACTORY_NAME "CREATE GRID: X Loop"
\
INPUT FEATURE_TYPE toXLoop
\
MAXIMUM_COUNT -1
\
TARGET_FACTORY "CREATE GRID: X Loop Start"
\
TEST @XValue() <= $(x1)
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- -
Peter
>From: "Dahlsten Nils-erik" <[EMAIL PROTECTED]>
>Reply-To: [email protected]
>To: <[email protected]>
>Subject: SV: SV: [fme] Create a Looping FMW
>Date: Fri, 15 Dec 2006 07:59:16 +0100
>
>Hi Steve.
>
>You'll have to use a Tester to decide wether to loop the feature again or
>send it to the OUTPUT node. (See my attached workspace in yesterdays mail.)
>At first this might look akward, but when you start using it you will find
>that it is quite versatile to have the Loop-outputs work this way.
>
>Good luck.
>/Nisse
>
>________________________________
>
>Från: [email protected] [mailto:[EMAIL PROTECTED] För snelsons2006
>Skickat: den 14 december 2006 17:59
>Till: [email protected]
>Ämne: Re: SV: [fme] Create a Looping FMW
>
>
>
>Thanks to all for your suggestions! Will try them out and post any
>success I have.
>
>Regarding the new looping transformer option in 2006GB. Where or how
>do you set the loop 'limit' and where do you specify what value is
>being used to base the loop on? With looping I'm used to setting
>a 'loop until' value, but I don't understand how to set this?
>
>FME Support - a good ol' how to movie would be great for this process.
>
>Steve
>
>
>
>
_________________________________________________________________
Få de bedste søgeresultater med MSN Search: http://search.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/