This program can be run either non-interactively or interactively. The program will be run non-interactively if the user specifies parameter values on the command line using the following format:
Alternately, the user can simply type:
on the command line; in this case, the program will prompt the user for parameter values.
A GRASS vector file to be exported to ARC/INFO must either contain only linear features (i.e., have only line coverage) or contain only area edge features (i.e., have only polygon coverage). v.out.arc will begin by asking the user which type of coverage (line or polygon) is to be imported:
COVERAGE TYPE Enter "polygon" or "line" Hit RETURN to cancel request >The program then prompts the user for the name of the GRASS vector file to be converted to ARC/INFO format:
VECTOR (DIGIT) FILENAME Enter 'list' for a list of existing binary vector files Hit RETURN to cancel request >Next, the user is asked for a file-name prefix to be used in naming the output ARC/INFO Generate format files:
ARC/INFO (GENERATE) FILENAME PREFIX Hit RETURN to cancel request >The filename prefix will be used to name the various files that will be created for export to ARC/INFO. When labeled polygon coverage data are exported, three such files will be created: a lines file with the suffix .lin, a label-points file with the suffix .lab, and a label-text file with the suffix .txt. When line coverage data are exported, two such files will be created: a lines file with the suffix .lin, and a label-text file with the suffix .txt. Export of unlabeled polygon or line coverage data will result in creation of a lines file (.lin suffix) only. See the DATA FILE FORMATS section for more information on these files.
Arc: GENERATE SOILS Generate: INPUT soils.pol Generate: LINES Generating lines ... Generate: INPUT soils.lab Generate: POINTS Generating points ... Generate: QUIT Arc: _The above example would create a polygon coverage data file named soils with label-points. The label-points would have ID numbers that correspond to the GRASS category values for the polygons in the coverage. The INFO portion of ARC/INFO can be used to associate these label-point ID numbers with descriptive text from the soils.txt file.
101 223343.62 218923.15 223343.62 222271.06 259565.31 222271.06 259565.31 195577.37 END 102 237862.53 203392.37 244970.75 203744.28 253137.66 195577.37 259565.31 195577.37 END 103 237862.53 203392.37 237862.53 203744.28 223343.62 218392.37 END 104 239072.44 186200.56 237862.53 187410.50 237862.53 203392.37 END ENDLABEL-POINTS FILE, also known as prefix.lab file:
1 242777.81 211533.09 2 243458.37 199282.28 3 243458.37 195199.28LABEL-TEXT FILE, also known as prefix.txt file:
The first column is the row number (which is arbitrary), the second column contains the category value, the third column holds the line or label-point ID number, and the fourth column contains the attribute text string.
1 4 1 Coniferous 2 5 2 Deciduous 3 2 3 Rangeland