Output from this program is designed to be used as input to the program v.cadlabel.
The v.in.dxf program will only recognize points, lines, polylines, and text in the DXF format, and will translate these to GRASS vector format; other types of data are ignored.
The names of the GRASS vector (dig, dig_ascii, and dig_att) files output are constructed as prefix.extension, where prefix is the prefix name specified by the user and extension is the number of the DXF layer from which the data were obtained. If the user does not specify a prefix name, the output files take their prefix from the prefix of the input DXF map layer. For example, for the DXF file named streams.dxf containing line data on layer , the GRASS vector map layer output would be named streams..
The below examples are given for a DXF design file named cont.dxf containing contour lines and contour line labels, in which:
v.in.dxf can be run with default values, as shown below:
Here, this is equivalent to running the following command:
Either of the above commands will produce three GRASS dig files (named cont.9, cont.11, and cont.12) and one dig_att file (named cont.12).
In our example, however, the cont.12 file contains intermediate contour lines that the user would like to add to the dig file cont.11. Our user also wishes to use a different file prefix than the default prefix cont. The user therefore types the following command:
The above command will generate three dig files (named contour.9, contour.11, contour.12), and will create one dig_att file containing text labels (called contour.12). No contour lines will appear in the dig_att file.
Translation:
This data translation program does not contain any of the quality control
functions available in v.digit that will prevent data in an improper
format from being input to a GRASS data base. If present, DXF entities
are placed in output file(s) corresponding to the layers on which they
occurred in the DXF design file input.
Editing:
If the user asks v.in.dxf to output ASCII vector (dig_ascii) files,
they must be converted to binary vector format before they are usable by
most GRASS vector commands. The user can convert GRASS vector files from
ASCII to binary format by running such programs as v.support or
v.in.ascii.
After conversion to binary format the vector files can be displayed
(e.g., with d.vect); however, the user must run
v.support
on the binary vector files before they can be edited in v.digit.
The files output by v.in.dxf will preserve the data in whatever form they
exist in the DXF file. This means that output files may contain
unsnapped nodes, overshoots, gaps, and replicated lines.
The data, and the file header information (including the owner's name,
map's name, date, and scale, and UTM zone) for the GRASS vector files output
may require editing by the user in v.digit.
Attributes:
The v.in.dxf program attaches attributes only to DXF text data
that are converted to GRASS vector data (such as contour line labels).
Attributes are not attached to converted DXF line data. For each layer
of text data in the DXF design file, v.in.dxf generates a vector file
consisting of rectangular boxes (lines) that are drawn around the DXF text data,
and uses the text values to create a GRASS attribute file for the boxes.
The vector and attribute files can then be used to label contour lines with the
v.cadlabel program.
Revised by Dave Gerdes, U.S. Army Construction Engineering Reseach Laboratory (12/89)
Revised and appended by Jan Moorman, U.S. Army Construction Engineering Research Laboratory (7/90)
Code for arcs and circles from National Park Service GIS Division written by Tom Howard.
Last changed: $Date: 2002/01/25 05:45:35 $