Hi Hans. Thank you very much for you help here but I'm not getting this to work for me. I'm not sure how the NullGeometryCreator should work. Do I add these features in just after the counter is introduced? Do I need to add all of the attributes that exist on my other features that have been generated from my dwg source on my added features? I also have a fanout on my output so that the coordinate data for each input polygon is output to its own csv based upon its entity handle and filename. This causes me problems in sorting the output and getting the required header info to appear at the top of each output csv.
Thanks again. Wallace --- In [email protected], Hans van der Maarel <[EMAIL PROTECTED]> wrote: > > Wallace, > > > I'm outputting dwg polygon coordinates into a csv file. The csv will > > be in turn read by a separate application that requires that the data > > type and a label for the data being read appear at the top of the csv > > file. The first two lines in the csv should contain the information > > defining the data types and labels to be read. > > > > Is there a way to place static data at the top of a csv file and then > > write in coordinate and other information garnered from, in this case, > > a dwg file? > > Yes. Assign an id to each of your features (by using a Counter). Those > will go from 0 to n-1 (where n is the number of features). Next, create > the lines that should go at the top, using NullGeometryCreators and add > the same id attribute to them. Manually set the values to -2 and -1. > Put all the information in the first attribute. > > Then sort all your features before outputting them. Sort by that id > attribute and you're all set. You'll probabely want to disable the > output of the field names. > > Actually, you may just want to stick everything into a single attribute > and add the column separators yourself (Concatenator). This way you have > maximum control over how it'll look. > -- > Hans van der Maarel > Red Geographics > www.redgeographics.com / [EMAIL PROTECTED] > Get the maximum benefit from your FME, FME Objects, or SpatialDirect via our Professional Services team. Visit www.safe.com/services for details. 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/
