Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [dxf]

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.

14
votes
7answers
17k views

Georeferencing DXF using QGIS?

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.
12
votes
2answers
6k views

Georeferencing vector PDF/SVG/DXF linework using QGIS?

I want to create a small web application to visualize election results on a per poll site basis for my city. The result is going to be very similar to what has been done for Berlin here. Hopefully ...
11
votes
14answers
12k 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. ...
10
votes
4answers
9k views

Transforming from DWG/DXF to GIS?

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 ...
10
votes
3answers
3k 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, ...
10
votes
2answers
3k 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 ...
8
votes
8answers
35k views

Exporting to DXF file from QGIS?

Is it possible to export labels based on Shapefile attributes into a DXF file? I use QGIS 1.7.4. I've been reading a CSV file and view it as a Shape Layer. With the help of attributes from the File ...
8
votes
4answers
3k 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 the contour lines a Z value and then export them to dxf for some cad work. PS. I know FME can do this, however I ...
8
votes
2answers
3k views

Converting a .dxf to a .shp containing a field with height information in QGIS?

I received two .dxf for my project that represent my area of interest: one of them contains buildings, the other one terrain elevation (they both are 3D). I can successfully convert them to shapefiles ...
7
votes
2answers
3k 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 ...
7
votes
2answers
3k views

Batch export multiple layers to DXF

I have only had limited experience with QGIS. What i have: I currently have many different layers (water mains, sewer mains, drainage etc.). These layers are TAB files with attributed data. What I ...
7
votes
1answer
378 views

Geoserver dxf plugin - How to export attributes labels?

I'm trying to export from Geoserver a set of layers with WFS request and dxf plugin for dxf conversion. There is an option withattributes:true that I have added for each vector layer a ...
6
votes
2answers
3k 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?
6
votes
1answer
3k 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
5answers
6k views

Exported DXF from QGIS won't open in AutoCAD

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 Value "AC1018" found in drawingversion. ...
6
votes
2answers
3k views

postgis error: when adding features geometry has z dimension but column does not

I have to define a geometry column in PostGIS for 2D points, but when I try to import points from DXF to postgres I get the following message: "postgis error: when adding features geometry has z ...
6
votes
4answers
7k 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 ...
6
votes
3answers
4k views

Exporting .mxd to .dxf?

Converting a .mxd to .dxf is something we need to do, and we do not only need the layers but also the layout of a map on our .mxd to be transfered to .dxf. I've done some research on the internet but ...
5
votes
5answers
8k views

Importing 3D DXF file into QGIS with z information as attribute value?

I have a dxf file of 3d contours. after import it does have only layer,x,y attribute and doesn't have Z attribute. How can I provide Z attribute to create a TIN file?
5
votes
3answers
709 views

Export DXF from QGIS layer using PyQGIS?

I want to export a DXF file from a QGIS layer. Sample code: dialog = QtGui.QFileDialog() dialog.setFileMode(QtGui.QFileDialog.Directory) dialog.setOption(QtGui.QFileDialog.ShowDirsOnly) ...
5
votes
2answers
297 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 ...
5
votes
2answers
1k views

Converting many .dxf files to one file geodatabase

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, ...
5
votes
1answer
15k views

DXF format for QGIS

I am trying to import some DWG files into QGIS. I am using ODA to convert the DWG files to DXF and then want to use the Dxf2Shp converter plugin in QGIS. The ODA converter has many options for the ...
5
votes
1answer
4k views

Converting a CAD/DXF file to a SHP file

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 associated with the drawing is actually a separate layer... What ...
5
votes
1answer
402 views

Can't export geometry generator styling to DXF - alternatives?

I've been using QGIS' wonderful geometry generator to dynamically generate root protection zones and crown areas for some tree inventories I've been working on. It's been a massive time saver. ...
5
votes
2answers
4k views

Converting LAS to DWG/DXF using open-source software?

Is there a way to convert LAS point clouds to DWG and/or DXF files using open source software? Also willing to script with Python - is this possible using libLAS/LASlib for example?
4
votes
2answers
430 views

Label rotation values in DXF imported into QGIS

When loading a dxf in QGIS, the line type files load in ok, however all text rotation values are lost when loaded into QGIS. This is most obvious when you load in OStext.dxf (please see grab_Mar.22....
4
votes
2answers
2k views

Splitting DXF layers into Shapefile layers in QGIS?

When I load a DXF into QGIS all the layers are present in the attribute table. Is it possible to split this "entities" layer in QGIS into its component parts and save each component part as an ...
4
votes
2answers
6k views

Convert multi-layer DWG into several KML or geoJSON files (one per layer)

I have some big DWG files, with 5 to 50 layers, which I draw and geolocated using AutoCAD (with some external modules). I need to convert them to KML or geoJSON so that the JS library can load them ...
4
votes
1answer
119 views

Add DXF text to shape as attribute

I have a DXF with text and I have a shapefile with some squares. Is it possible, in QGIS, to add the text from the DXF to a new column in the shapefile?
4
votes
1answer
223 views

Import .dxf with pyqgis

I made a plugin to quickly analyse dxf files for work. It works fine on most .dxf files, but for some reason it does not work on all. The ones that do not work properly are imported as an "image" of ...
4
votes
1answer
1k views

How to create dataset in python with creation options like in ogr2ogr with -dsco options

In ogr2ogr there is dsco option (data source creation option). e.g. ogr2ogr -f DXF -dsco trailer=trailer_buildings.dxf -dsco header=header_buildings.dxf out.dxf test_buldings_shp.shp. It works well, ...
4
votes
1answer
2k views

QGIS Export to DXF Scale Problem

I'm having a problem that is universal to any shapefile that I'm trying to convert into a DXF with QGIS. I've used the "Export DXF" option in the toolbar as well as the "Save As" option when right ...
4
votes
2answers
1k views

OGR DXF Closed Polyline Conversion

I'm trying to convert closed polylines into polygons using ogr2ogr from dxf to mssql. Here It says that polylines are converted into POLYGON if they are closed, but I always get the type LINESTRING ...
4
votes
1answer
588 views

Empty dxf export from QGIS 2.16.2

In an attempt to create an architectural site model from GIS data, I am trying to export a project from QGIS to .dxf, with the intention of setting up a cut file in Rhino. QGIS tells me the export ...
4
votes
1answer
2k views

TIN Creation from 3D Contour File

I'm currently trying to import a 3D contour file into a QGIS project. How can I export the DXF file from Microstation with height information? I already have imported it to the QGIS project but ...
3
votes
6answers
11k views

Export 3D data DXF file

I'm trying to export a DXF file from QGIS 1.8.0 Lisboa and can not have a 3D file in AutoCAD or Microstation. It results always in 2D file. How can I export height data from a shapefile in QGIS?
3
votes
3answers
495 views

Projecting a dxf on QGIS

I need to use a waste dump .dxf on a map but unfortunately I'm not able to match the projection with the others I have. I'm working with Google hybrid using CRS: EPSG:32632 WGS84 / UTM zone 32N and ...
3
votes
3answers
1k views

QGIS export/save to .dxf scale problems

I'm working in AutoCAD with a layer from a shapefile. The problem occurs when Autocad opens the file : the coordinates are the same than in QGIS, but when I try to draw a line 1 meter is 0,00001 in ...
3
votes
2answers
3k views

How georeference a DXF file in QGIS 2.14?

In Illustrator I exported a PDF as DXF and inserted it in QGIS as Vector and obtained two layers as points and lines but it is misaligned and in a unknown location. I know georeference a raster file, ...
3
votes
1answer
7k views

Exporting QGIS contour attributes in DXF file?

I have a .tiff data file that generates contours in QGIS. I save it as .dxf. The contours don't have any attributes or data. That's bad, because I want to make a 3D landscape in Revit using the ...
3
votes
2answers
2k views

Error message when trying to export dxf?

Im using QGIS 2.18.2 and have tried to export layers as dxf using the project tab and by clicking the layer and using save as. Both have given me error message Export to vector file failed. Error: ...
3
votes
2answers
283 views

Is it possible to create CAD file from shapefile and also create CAD blocks from the database fields

I am trying to find out if there is any software or plugin/code that I can bundle that will take a shapefile and export it to a CAD file with CAD blocks generated so our CAD mappers can just move the ...
3
votes
1answer
313 views

Export DXF Issue in QGIS?

I got the shapefiles in QGIS and transformed them to UTM NAD83 from WGS84, then tried to create a DXF of it so I could use it as an overlay in fieldgenius software for a topographic survey we're ...
3
votes
1answer
462 views

Exporting QGIS shp file to dxf-Which dxf format?

As I understand it, dxf comes in a range of format types. QGIS (v2.0 'Dufour') can export any layer to a dxf file. However I have a hydraulic modelling package which relies upon importing the dxf file ...
3
votes
1answer
1k views

Wrong scale when importing dxf into QGIS?

Has anyone had the problem that the scale of the shp layer converted originally from a .dxf file turns out to be wrong? For example, I draw a line of 10 meters long in AutoCAD and imported it in QGIS,...
3
votes
1answer
4k 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 ...
3
votes
1answer
487 views

Exporting to dxf file from QGIS creating dxf layers by QGIS layer name?

I'm very new to QGIS, and this is baffling me. I used "split vector layers" to create new layers in QGIS, and have been trying to export the file to dxf. However, when I open my new dxf files, every ...
3
votes
1answer
313 views

Using OGR to export 3d polygons from postgis to DXF

Today I tried to export a 3-dimensional geometry out of postgis into a dxf file. After some tests it came out, that I was able to export a 3d-linestring which represents the geometry or a 2d-polygon ...
3
votes
1answer
359 views

DXF Export - Layers in same GIS file import to AutoCAD in different locations

I'm still pretty new to QGIS, so I may be missing something basic here. I'm trying to export several layers from a GIS project to DXF so we can create a base map in AutoCAD. However, even though all ...