public void writeObject(Object o, GraphicsDocument document, boolean asChild) throws RenderException {
		GeometryCollection coll = (GeometryCollection) o;
		document.writeElement("path", asChild);
		document.writeAttribute("fill-rule", "evenodd");
		document.writeAttributeStart("d");
		for (int i = 0; i < coll.getNumGeometries(); i++) {
			document.writeObject(coll.getGeometryN(i), true); // TODO delegate to appropriate writers, is this correct?
		}
		document.writeAttributeEnd();
	}
public void writeObject ( Object o , GraphicsDocument document , boolean asChild ) throws RenderException { GeometryCollection coll = ( GeometryCollection ) o ; document . writeElement ( "path" , asChild ) ; document . writeAttribute ( "fill-rule" , "evenodd" ) ; document . writeAttributeStart ( "d" ) ; for ( int i = 0 ; i < coll . getNumGeometries ( ) ; i ++ ) { document . writeObject ( coll . getGeometryN ( i ) , true ) ; } document . writeAttributeEnd ( ) ; }
Writes a <code>GeometryCollection</code> object.

@param o The <code>LineString</code> to be encoded.