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/
 


Reply via email to