Tagged Questions

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

5
votes
3answers
2k views

I exported a DXF from QGIS, but it won't open in AutoCAD

I'm new in QGIS and here is my problem: I exported a DXf from QGIS by right-clicking on the layer. Then tried to open in AutoCAD 2000. That did not work. AutoCAD gave a failure-message: Unknown ...
4
votes
2answers
995 views

How to convert 3D DXF to PostGIS 2.0?

I'm not very skilled on using postgis but I face a problem that I must solve, i.e. create tables to load geographical data stored as dxf. I have a thousand dxf files (3d) with polylines, points and ...
2
votes
0answers
204 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 ...
1
vote
0answers
172 views

QGIS dxf2shp text angle problem

I am trying to convert from dxf to shp. Any text layer when converted has attributes including text, height, and angle. The angle is in radians, and I can see that it is in degrees in the dxf file. ...
1
vote
0answers
126 views

How to export dxf of window view from postGis MasterMap layer

I have managed to get qgis to show my Mastermap data which is stored in a postGis database. It's national coverage so seems to take ages to load but that's another question. I basically want to ...
2
votes
0answers
193 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. ...
5
votes
2answers
632 views

How do I convert many .dxf files to one gdb file?

I am using ArcView and ArcCatalog 9.2 with the Data Interoperability extension and I have 159 .dxf files that are comprised of 6 files; a dessin DAO, an annotation DAO, a multipatch DAO; a point DAO, ...
1
vote
1answer
289 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 ...
0
votes
3answers
4k views

How to export a layer to DXF from QGIS?

How do I export layers as a dxf? When I go to Layer > save selection as vector file the resulting dxf file is empty.
2
votes
1answer
365 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 = ...
1
vote
2answers
138 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( ...
4
votes
1answer
1k views

OGR and DXF files: Is it possible to handle layer names? (only “entities”)

I'm using Python and OGR to extract the layers of a DXF file and convert them into SHP. I began with: import ogr, os, sys driver = ogr.GetDriverByName('DXF') datasource = driver.Open('test1.dxf', 0) ...
6
votes
4answers
4k views

Ways to transform from DWG/DXF to GIS (Experiences are welcome)

I've got tons of DWG/DXF files with information (in several layers) dealing with: Contour lines and elevation (lines) positions of antennas (points) protection areas (polygons) administrative ...
1
vote
2answers
1k 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 ...
5
votes
4answers
4k views

Workflow for DXF interchange with QGIS

What is the best method of importing/exporting dxf files with QGIS ? I work in an engineering field and we use CAD and specialist design programs, and often go through several iterations during a ...
2
votes
5answers
4k views

How to export labels to DXF file?

Is it possible to export labels based on Shapefile attributes into a DXF file? I use Quantum gis in Version 1.7.4. I've been reading a CSV file and view it as a Shape Layer. With the help of ...
5
votes
5answers
4k views

How to georeference a dxf?

I have got myself a dxf which is built with units in the wrong scale. How do I upscale that in QGIS? Note it does open in QGIS, just in the wrong map units and location.
5
votes
2answers
901 views

Python: How to export Shapely objects to DXF file

Using shapely package for Python how to export the resulting shapely objects such as buffer to a DXF file?
2
votes
3answers
796 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 ...
7
votes
2answers
764 views

DXF attribute to z value

We have been given a DXF that contains a Elevation attribute but we would like to generate a 3D DXF. I know I can generate a 3D dxf from a shapefile using: ogr2ogr -f "DXF" out.dxf in.shp -zfield ...
1
vote
1answer
782 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 ...
5
votes
2answers
274 views

How to deal with multitype data sources in QGIS?

Today I was trying to import a DXF to Qgis, the result is that qgis displays everything LINES and POINTS but it only displays options for the POINT objects. When I try to export to a shapefile, it ...
10
votes
3answers
2k views

getting dxf files out of PostgreSQL

I've successfully loaded a bunch of shapefiles into a PostGIS database. I would like to be able to retrieve specific geometry and layers as dxf files based on SQL queries. I'm using PostGIS, GDAL, ...
5
votes
1answer
2k views

Converting a CAD/DXF file to a SHP file

I need your ideas and suggestions about a problem.... I have a dxf file which was converted from a CAD file. I used QGIS to convert it to a shp file... This is when I realized that the text ...
1
vote
1answer
661 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 ...
6
votes
4answers
2k views

Is it possible to create 3D dxf with OGR?

Does anyone know if it's possible to create a 3D dxf with OGR. I would like to assign our contour lines a z value and export them to dxf for some cad work. PS I know FME can do this, however I would ...
10
votes
14answers
6k views

Which GIS support DXF and/or DWG?

Which GIS support DXF and/or DWG (preferably read&write)? Update: Are there any open source GIS supporting these or similar CAD files? Support of CAD files generally seems to be problematic. ...