v.in.dxf(1grass)
π v.in.dxf β the GRASS User's Manual glow-up π
okay bestie, so this is v.in.dxf from the GRASS User's Manual, and it's literally here to convert DXF CAD files into GRASS vector maps. no cap. let's get into it π¦
β¨ NAME β¨
v.in.dxf β Converts file in DXF format to GRASS vector map. periodt.
π·οΈ 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 DXF file-tβ Do not create attribute table-bβ Do not build topology. Advantageous when handling a large number of points (iykyk)-fβ Import polyface meshes as 3D wire frame-lβ List available DXF layers and exit-iβ Invert selection by DXF layers (don't import layers in 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 fileoutput=name[required] β Name for output vector maplayers=string[,string,...]β List of DXF layers to import (default: all)
πΈ DESCRIPTION πΈ
v.in.dxf converts DXF format CAD files to GRASS vector format. it's giving β¨interoperabilityβ¨. here's the tea on which graphical objects (DXF entities) are supported:
- point
- DXF
POINT
- DXF
- line
- DXF
LINE - DXF
POLYLINE - DXF
LWPOLYLINE - DXF
ARC - DXF
CIRCLE - DXF
TEXT
- DXF
- face
- DXF
POLYFACE MESHES - DXF
3DFACE
- DXF
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. lowkey genius era π
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.
heads up bestie: that 64-bit integer situation is currently not supported by GRASS database drivers β it's not a you problem, it's just how it is fr fr π«
π 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)
Latest change: Friday Apr 17 01:04:26 2026 in commit: 32a143358df26b2e518b03c7e0d79541e8d1e5b1
Main index | Vector index | Topics index | Keywords index | Graphical index | Full index
okay and for the lil sign-off moment π: this whole thing lives under Β© 2003-2026 GRASS Development Team, GRASS 8.5.0 Reference Manual, blessed to us by GRASS 8.5.0, and the page itself is v.in.dxf(1grass). stan. go import some CAD files, bestie, you got this πβ¨
π¦ where this page comes from
- alpine 3.24: grass-gis-doc 8.5.0-r1 Β· GPL-2.0-or-later
- ubuntu stonking: grass-doc 8.5.0-1ubuntu1 Β· GPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms