Converts a rectangle list to sections of an Eternal Lands map def file.