GRASS logo

NAME - Converts file in DXF format to GRASS vector map.


vector, import, DXF, level1

SYNOPSIS --help [-etbfli1] input=name output=name [layers=string[,string,...]] [--overwrite] [--help] [--verbose] [--quiet] [--ui]


Ignore the map extent of DXF file
Do not create attribute table
Do not build topology
Advantageous when handling a large number of points
Import polyface meshes as 3D wire frame
List available DXF layers and exit
Invert selection by DXF layers (don't import layers in list)
Import all objects into one layer
Allow output files to overwrite existing files
Print usage summary
Verbose module output
Quiet module output
Force launching GUI dialog


input=name [required]
Path to input DXF file
output=name [required]
Name for output vector map
List of DXF layers to import (default: all)

Table of contents

DESCRIPTION converts DXF format CAD files to GRASS vector format. The following graphical objects (DXF entities) are supported: Table and column names are changed to lowercase characters for easier SQL usage (lowercase table/column names avoid the need to quote them if the attribute table is stored in a SQL DBMS such as PostgreSQL).

The "layer" column will contain the name(s) of the DXF input layer(s). The DXF entity type string will be stored in the "entity" column as uppercase.

The "handle" column can be used to store small bits of data associated with any entity in the DXF file (i.e., entity handle or unique object identifiers in the layer). The entity handle is a "text string of up to 16 hexadecimal digits", which is a 64-bit integer (currently not supported by GRASS database drivers). For text type entities, the text value will be stored in the "label" column of the GRASS vector output map. Neither the "handle" nor "label" column is mandatory.


AutoCad DXF (from Wikipedia, the free encyclopedia)
DXF References (Autodesk-supplied documentation)


v.out.dxf,, v.out.ogr

How-to import DXF files in wxGUI (from GRASS User Wiki)


Original written by Chuck Ehlschlaeger, 6/1989
Revised by Dave Gerdes, 12/1989
US Army Construction Engineering Research Lab

Updated for GRASS 6 and 3D support. Huidae Cho, 3/2006
With minor additions by Benjamin Ducke (Oxford Archaeology), 4/2009


Available at: source code (history)

Latest change: Tuesday Feb 14 10:12:01 2023 in commit: fedef50a866e47846d46cf475b795719407ed8f3

Main index | Vector index | Topics index | Keywords index | Graphical index | Full index

© 2003-2024 GRASS Development Team, GRASS GIS 8.3.3dev Reference Manual