An apparatus and method for generating swath lines (30) including compensation for sloping terrain in a field for use in an automatic guidance system of a work machine (10). The swath lines are created as a function of the position, elevation and/or orientation of the work vehicle.