v.in.dxf(1)

πŸ’– v.in.dxf β€” bestie edition πŸ’–

okay so this is the manual page for v.in.dxf, a GRASS GIS User's Manual situation, and it is genuinely one of the most useful little tools ever. it takes your DXF files (yes, the CAD ones) and turns them into GRASS vector maps. slay.

✨ KEYWORDS ✨

vector, import, DXF, level1


🌸 SYNOPSIS 🌸

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

πŸŽ€ Flags

  • -e β€” ignore the map extent of the DXF file, like it's not even there
  • -t β€” do NOT create an attribute table
  • -b β€” do not build topology. genuinely advantageous when you're handling a huge number of points, no cap
  • -f β€” import polyface meshes as 3D wire frame
  • -l β€” just list the available DXF layers and exit. window shopping, iconic
  • -i β€” invert the selection by DXF layers (so: don't import the layers that are in the list)
  • -1 β€” import all objects into one layer
  • --overwrite β€” allow output files to overwrite existing files
  • --help β€” print usage summary
  • --verbose β€” verbose module output
  • --quiet β€” quiet module output
  • --ui β€” force launching GUI dialog

πŸ¦‹ Parameters

  • input=name [required] β€” path to input DXF file
  • output=name [required] β€” name for output vector map
  • layers=string[,string,...] β€” list of DXF layers to import (default: all)

πŸ’… DESCRIPTION πŸ’…

v.in.dxf converts DXF format CAD files to GRASS vector format. periodt.

here's the whole roster of graphical objects (DXF entities) it supports, and bestie it is a list:

  • point
    • DXF POINT
  • line
    • DXF LINE
    • DXF POLYLINE
    • DXF LWPOLYLINE
    • DXF ARC
    • DXF CIRCLE
    • DXF TEXT
  • face
    • DXF POLYFACE MESHES
    • DXF 3DFACE

Table and column names are changed to lowercase characters for easier SQL usage β€” and the reason that matters is that lowercase table/column names avoid the need to quote them if the attribute table is stored in a SQL DBMS such as PostgreSQL. iykyk.

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 β€” and heads up, that's 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.


πŸ“š REFERENCES πŸ“š

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

πŸ‘€ SEE ALSO πŸ‘€

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

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


πŸ‘‘ AUTHORS πŸ‘‘

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


⭐ SOURCE CODE ⭐

Available at: v.in.dxf source code (history)

Accessed: Saturday Jan 17 05:41:24 2026

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

Β© 2003-2025 GRASS Development Team, GRASS GIS 8.4.2 Reference Manual


and that's the whole page, bestie 🫢 this was GRASS 8.4.2, and the vibe check was completed on Saturday Jan 17 05:41:24 2026. go import something pretty. πŸ’–βœ¨

πŸ“¦ where this page comes from