DXF (Drawing Interchange Format, or Drawing Exchange Format) is a CAD data file format developed by Autodesk for enabling data interoperability between AutoCAD and other programs.

learn more… | top users | synonyms

2
votes
2answers
425 views

Exporting from Draftsight: how to set correct co-ordinate system

I'm trying to import a DXF into GIS (I have QGIS, Arcmap 9.2, GVsig ) The file has been given a coordinate system & appears to be the right size, just in the wrong place. In Draftsight (or any ...
2
votes
1answer
330 views

Can a DXF File contain raster images (TIFF/JPG)?

I am maintaining a large Program with a graphical editor. Our Program can export DXF and it can show Background Raster Images of various types (TIFF, JPG, BMP etc.). Is it possible to embed these ...
2
votes
1answer
2k views

How to convert lines from dxf to polygons?

I have several dxf files. Each file, contains the 0 layer. The 0 layer contains lines (which make a closed polygon). In each dxf the lines have their color and line width. I do not have autocad or ...
2
votes
3answers
1k views

How to change DXF unit by Python 2.6

I have a bunch of DXF files to import into ArcGIS 10 but they are all in mm. However I need to change the unit to Meter and to do this I have to open AutoCAD to do it each time. Can anyone help to ...
2
votes
1answer
44 views

Export to DXF from PostgreSQL using ogr2ogr

I have a large dataset in a PostGIS database (OS MasterMap). My aim is to export specific areas of this dataset to DXF, while retaining the attributes of the data as layers in the DXF. My current ...
2
votes
1answer
237 views

Can i combine DXF, Google Earth Models, Shape Files and Rasters in QGIS?

I'm an architect, trying to bring a number of data sets together for use in a CAD package (AutoCAD). I have some georeferenced images (.jpg, .jgw.), Some model files downloaded from GoogleEarth (.kml ...
2
votes
1answer
958 views

.dxf export in QGIS 2.0.1 gives hatches instead of polylines [duplicate]

This may see like a stupid question, but I'm new to QGIS, so please bear with me. I'm having a problem when saving as .dxf. I export a building layer (polygons) as a .dxf file However in AutoCAD it ...
2
votes
1answer
169 views

Relationship between DXF's entities and objects

I'm trying to parse a raw .dxf file. Inside the Entities section I can see the polylines I'm looking for (they contain bus routes) and I inside the Objects section I can see each route's data (bus ...
2
votes
1answer
83 views

calibrating vector line in qgis

I have loaded GPS points into a QGIS vector layer. I also imported a vector line from a dxf file which doesn't have georeferencing. I would like to fit in line geometry between the GPS points - how ...
2
votes
1answer
507 views

How to create new layer within a DXF file?

Using OGR in Python, I'd like to create some geometries within a DXF file, but not in the "0" layer, but in new ones. I tried with: import ogr, os, osr, sys ds = ogr.GetDriverByName('DXF')....
2
votes
1answer
814 views

GRASS v.out.dxf 3D into AutoCAD

So continuing with my last question (Create 3D dxf with OGR) I have decided to give the GRASS option a go. I have imported my polylines into GRASS using v.in.ogr and converted them to 3D using v.to....
2
votes
1answer
72 views

Converting a CSV to DXF using ogr2ogr from the command line

I am trying to convert a .csv file to .dxf using ogr2org from the command line using the following command: ogr2ogr -f DXF control.dxf opua.vrt This is the .vrt file I am using: <...
2
votes
2answers
184 views

some shp to dxf converted lines don't show in Autocad

I have a group of vector files that I intend to convert to "DXF" format. But after the conversion, only contour lines(white lines in the red polygon) are not displayed in Autocad. I read some related ...
2
votes
1answer
312 views

Import georeferenced dwg-files to SketchUP

I have a georeferenced dwg-file in a national projection and want to import it into SketchUp pro 2015 without loosing the georeference. My workflow so far was to import it into QGIS, check it's ...
2
votes
0answers
223 views

How to export postgis points as blocks in dxf with ogr2ogr

I'm trying to export postgis points as blocks to DXF format. I have a simple table in postgis with columns: CREATE TABLE pod_com_azimuth ( ogc_fid integer, rotation double precision, pointtype ...
2
votes
0answers
191 views

Exporting SHP files into Autocad readeable files

I have a full water supply network drawn in a shapefile which I created using Qgis 2.2.0. Now I need to export it into a format that enables me to open it in AutoCAD. I am trying to export it as a dxf ...
2
votes
1answer
3k views

Export all visible layers in map view window to DXF (as one)

I'm looking to find a way of exporting all that is visible in the map view window to a dxf file. That is to say, multiple features from multiple layers, all at once. Can this be done?
2
votes
2answers
2k views

How can I “reset” SketchUp origin after importing DXF with “Preserve Drawing Origin” option enabled?

I can successfully import all of my 3D DXFs into a common location so that they are referenced correctly (in reference to each other). TO do this I simply check the Import DXF "Preserve Drawing Origin"...
2
votes
0answers
284 views

Displaying text from dxf in Openlayers

I managed to import .dxf into Postgis table, and now have, among others, rows with Point geometries and values in text column (which corespodent with Label values from ACAD .dxf). What is the best ...
2
votes
0answers
235 views

Naming layers in DXF using OGR2OGR

We have been using ogr2ogr to export data from PostGIS into DXF. Using the default behaviour of the export, all data are put into layer '0'. We would put data into a layer name from the PG table name. ...
1
vote
1answer
2k views

How to convert MXD to DWG File

I have been trying to export from MXD format to DWG format without much success. I used the Export to CAD conversion tool in GIS 9.3 but it only converts the lines and polygon.. etc to DWG format and ...
1
vote
2answers
180 views

“AttributeError: getZ” error when trying to get the elevation of DXF linestrings

I'm using Python and OGR to extract the elevation of lines within a DXF file. import ogr driver = ogr.GetDriverByName('DXF') datasource = driver.Open('test1.dxf', 0) layers=datasource.ExecuteSQL( "...
1
vote
2answers
2k views

OGR DXF to KML conversion

I'm trying to convert a DXF 2010 file to KML using ogr2ogr: ogr2ogr -f "KML" outfile.kml infile.dxf In the file, $INSUNITS is 6, that's meters, if I'm correct? The problem is that DXF is not ...
1
vote
1answer
53 views

Projecting SHP file in QGIS [duplicate]

I have a DXF file of a building from AutoCAD. I saved this DXF file as a SHP file in QGIS. But this SHP file is converted from a plain DXF file and is not referenced/projected, it is drawn from ...
1
vote
1answer
127 views

Convert .xyz to .dxf in QGIS

I am new to all of this and I would like to know if it is possible to convert .xyz to .dxf in QGIS? I heard that it is possible in ArcGIS but I am not sure about it in QGIS. (I hope I am right asuming ...
1
vote
1answer
63 views

DXF entities not showing on import into QGIS

I regularly get sent DWG files containing Ordnance Survey base mapping (variously with & without additional layers). I usually re-scale & reposition these in Draftsight, or just run a ...
1
vote
1answer
297 views

Layers with the same CRS in QGIS do not line up

I am busy with a project where I have to layer a .dxf and a .kml file but the layers are not lining up. The .dxf file's coordinates are completely wrong and the scale also does not appear to math up ...
1
vote
1answer
716 views

ogr2ogr convert DXF to GeoJSON with defined geometry

I trie to convert a DXF file into a GeoJSON file with: ogr2ogr -f 'GeoJSON' -sql "SELECT * FROM entities WHERE layer = 'geom_test'" test.json dfxtest.dxf Is it possible to convert only geometries ...
1
vote
2answers
183 views

Interpolate dxf polyline vertex elevation from DTM?

I am working on several autocad polylines (with several vertices...) that have the exact N,E coords but now I would like to add the elevation data for every polyline's vertices from a dtm. I thought ...
1
vote
1answer
459 views

How to get DXF to show up in the right spot?

I just followed the advice of this forum post in order to export the vector layers of a PDF for usage in ArcMap. The map vector layers in the PDF were spatially referenced. I was able to export the ...
1
vote
1answer
334 views

Dxf drawings displaying as points but i need lines

I have an autocad dwg. which i then saved as a dxf. I have way to many layers in it such as contours, buildings etc. All I need is the red and blue lines. I cannot delete the other lines as they ...
1
vote
1answer
835 views

Last edited information missing when used QGIS - Dxf to Shp

I am doing as constructed drawings which require the information to be in a GIS system and more specifically drainage as constructed drawings. I must have a separate file for Pipes and Pits. First I ...
1
vote
1answer
27 views

Exporting multiple layers to single dxf file using Grass GIS?

I'm very new to Grass GIS. I need to export multiple vector layers into a single dxf file (required in order to import into another application). However, I can't see a way of selecting more than ...
1
vote
1answer
64 views

QGIS 2.14.3 export PostGIS layer to dxf issue

I am trying to export a PostGIS layer to dxf in QGIS (2.14.3) via Project>DXF-Export using the following settings (German GUI): When I open the resulting dxf in DWG TrueView 2016 I see nothing, but ...
1
vote
1answer
37 views

how to extract OSM data to as many layers as possible in DXF( or multiple DXF file) as path for illustrator use?

So i am just touching QGIS, mainly to explorer way to use map data for my animation. Here's my first try to make it clear to understand what I am aiming for: https://www.youtube.com/watch?v=jhC-C5f-...
1
vote
1answer
402 views

Autocad DXF to Qgis and exporting to KML for viewing in Google Maps

/ Background: I have a DWG trace made in AutoCad using Gauss-Kruger coordinate system ( a CRS used in Slovenia ). I'm using AutoDesk Map 3D to transform the coordinate system to WGS84.PseudoMercator ...
1
vote
1answer
229 views

QGIS - How do I stop automatic ANSI_1252 to UTF-8 encoding when adding a DXF layer?

I have a DXF file encoded in ANSI_1252, with object attributes containing umlauts. When I open it in QGIS, the umlauts don't display properly. This apparently happens because QGIS automatically sets ...
1
vote
2answers
155 views

Keeping layer name when exporting to CAD?

I am trying to export selected features from layers from SDE into a DXF using python, but it does not retain the layer name. But if I do it manually using the ArcToolbox tool, it does work. Example ...
1
vote
1answer
668 views

DXF created by QGIS crashes Autocad [duplicate]

This is slightly complicated. I have a dxf created by autocad which seems to have been corrupted. It will not open in AutoCAD. However, it opens in QGIS. I tried selecting the file in QGIS and ...
1
vote
0answers
18 views

QGIS join attribute data to dxf file using EntityHandle as key field

I would like to joint attribute data (csv table or slt.) to a drawing (dxf file) imported to QGIS. Such imported data have an attribute EntityHandle which seem to me like an AutoCAD specific 'id'. I'...
1
vote
1answer
56 views

Import dxf file with QGIS

I use "add vector layer" to import my dxf file in QGIS. But, when I open the attributes tables of the layers (point, polyligne, polygone), I see that the majority of the attributes (color, ...) of the ...
1
vote
0answers
37 views

problem in veiwing Dxf files in Qgis

the problem of getting from DXF format, to display in QGIS correctly.we have loaded it in and fixed the rotation and TTF font mapping problems. That is all great however the objects are coming in ...
1
vote
0answers
50 views

Is there any way to connect features (entities) of dxf to database in python?

I'm using gdal, ezdxf, sqlite python packages and sqlite ODBC driver. They work fine, and in AutoCAD I can easily manually connect to my dbase.sqlite (read only) using _DBCONFIGURE and _DBCONNECT ...
1
vote
0answers
29 views

Can typical Meets and Bounds (angles and distances) drawings be accurate in QGIS?

I’ve been working with parcel boundary shape files (.shp), standard satellite imagery, and Meets and Bounds (angles and distances) site maps / legal descriptions for a few weeks. Wondering if those ...
1
vote
0answers
36 views

Importing DXF - Polylines with elevation data

When importing a DXF file (containing 3D contour data) to QGIS, none of the various methods described elsewhere are retaining elevation data as an attribute. e.g. DXF2SHP, GRASS v.in.dxf, opening ...
1
vote
0answers
37 views

Converting 3d images in meters to feet when exported to dxf

In QGIS 2.10, I am using the raster calculator to convert a metric elevated raster to feet and then create 2 foot contours (no problem). But when I dxf it out and put it in CAD, I can get the contours ...
1
vote
0answers
29 views

Qgis -> DXF2ShapeConverter -> Inscriptions in Qgis

Sorry, but this is my first question which very often was asked . It has not yet answered very well. I would like to import a DXF with captions in QGIS. I have already tried this with the DXF ...
1
vote
0answers
54 views

Export Feature with attribute to dxf

I'm trying to export features with at least one attribute to dxf, is that possible? E.g. I need the name or layer name of the feature in the CAD application.
1
vote
0answers
76 views

dxf-Export is not readable in BricsCad

With the QGIS 2.8 dxf-Export it is not possible to open these files in BricsCad (a CAD-Programm which is very similar to AutoCad). the dxf-Export from GIS 2.8 and import in BricsCad looks like!(not ...
1
vote
0answers
49 views

How to configure “-nlt MULTILINESTRING” for DXF export?

When I try and export a polygon shapefile to DXF, the resulting features in AutoCAD are hatch patterns, which is as expected if you read http://www.gdal.org/drv_dxf.html, "Polygon and MultiPolygon ...