Hi Annette, The alternate to a looping transformer would be to use a Cloner to create X duplicates (where x is the number of list elements which you can get with a ListElementCounter). Then use a ListIndexer where ListIndex = _copynum. Rename the attributes. Use an ExpressionEvaluator to calculate _copynum+1 and a second ListIndexer where listIndex=copynum+1
Then concatenate the two sets of attributes to get the required line for output to the text file. You're right that the Chopper would do the same thing, but with much less certainty re the order of features, esp polygons. Hope this helps. It might need fine-tuning, but it's the method I'd try at first. 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], "annettefarrell" <[EMAIL PROTECTED]> wrote: > > Hi, > > I'm looking for something similiar to fmepedia's vertexcounter and the > polylineanalyzer (couldn't get this working when I tested). Take a > line or area, split it up, and output a table in the format > segmentno,x1,y1,x2,y2 > > I'm trying to iterate through a list but not having much success. > Have tried to loop based on custom tranformer. This is feature based > as one list per feature so no group by required. > > To start off if I could get a table with I'd be able to go on from there. > > List{0}, List{1} > List{1}, List{2} > List{2}, List{3} > ... > > > Alternatively, I tried the a chopper transformer and it worked okay > but I had problems restarting the counter per feature, and I don't > think know if the chopper will be fine tuned enough for area features. > > Any thoughts appreciated. > > Thanks, > > Annette > 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/
