Transects are often used to better understand local variation in soil properties. Planning and mapping a transect in the office can make time spent in the field more efficient. Sometimes we return from the field with a transect starting point and bearing (CCW from north) of travel. Accurate digitizing of this information can often be time consuming when multiple transects are involved.
The command d.bearing can facilitate rapid planning, visualization, and digitization of transects given the parameters: origin=x,y, theta=bearing, radius=length_of_transect. The following examples illustrate some common methods of working with transect data. Command names are in boldface and comments are in grey. The source code for d.bearing is attached at the bottom of this page. Unarchive in the grass6/display/ directory of the GRASS61-CVS source code directory.
Example 1: Plot a hypothetical transect; bearing 230 degrees, 1000m length.
Example 2: Make a permanent vector 't1' of the same transect.
Example 3: Create a new vector of points every 100m along the transect 't1'.
| t1_points_1: layer 1 | t1_points_2: layer 2 |
+------+ | cat | +------+ | 1 | | 2 | +------+ |
+------+------+------------------+ | cat | lcat | along | +------+------+------------------+ | 1 | 1 | 0 | | 2 | 1 | 100.000000000004 | | 3 | 1 | 200.000000000007 | | 4 | 1 | 300.000000000011 | | 5 | 1 | 400.000000000015 | | 6 | 1 | 500.000000000019 | | 7 | 1 | 600.000000000022 | | 8 | 1 | 700.000000000026 | | 9 | 1 | 800.00000000003 | | 10 | 1 | 900.000000000034 | | 11 | 1 | 1000.00000000004 | +------+------+------------------+ |