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.

Filter by
Sorted by
Tagged with
18 votes
2 answers
16k views

Computing parameters for QGIS Affine Transformation

I have a vector floorplan (DXF) that I've added to a blank project in QGIS using the Dxf2Shp Plugin. I've been reading tutorials and StackExchange threads, but I can't seem to find out how to "...
flackend's user avatar
  • 283
17 votes
7 answers
31k views

Georeferencing DXF using QGIS? [duplicate]

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.
Willy's user avatar
  • 3,500
13 votes
2 answers
16k views

Georeferencing vector PDF/SVG/DXF linework using QGIS? [duplicate]

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 ...
bfncs's user avatar
  • 231
11 votes
14 answers
14k 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
9 answers
68k 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 ...
Alexander's user avatar
  • 117
10 votes
4 answers
10k 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 ...
SonOfabox's user avatar
  • 809
10 votes
3 answers
5k 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, ...
BenjaminGolder's user avatar
10 votes
2 answers
4k 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 ...
Nathan W's user avatar
  • 34.7k
9 votes
3 answers
10k 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 ...
Thomas Wood's user avatar
8 votes
4 answers
7k views

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?
Developer's user avatar
  • 3,387
8 votes
4 answers
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 ...
Nathan W's user avatar
  • 34.7k
8 votes
2 answers
4k 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 ...
Pieri70's user avatar
  • 81
8 votes
2 answers
4k 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 ...
dom's user avatar
  • 113
7 votes
3 answers
3k 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) ...
김철진's user avatar
7 votes
1 answer
1k 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. ...
she_weeds's user avatar
  • 12.5k
7 votes
1 answer
715 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 ...
Gian Marco Artioli's user avatar
6 votes
1 answer
5k views

Handling layer names (only "entities") in DXF files using OGR

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) ...
SonOfabox's user avatar
  • 809
6 votes
4 answers
3k views

Re-scaling and moving vector layer manually in QGIS

I have imported a DXF file (site layout drawings for proposed development), but its scaling is too small and it does not line up with the Google street maps. I want to re-scale the layer manually ...
Reinier's user avatar
  • 89
6 votes
3 answers
6k views

QGIS Export: Set DXF Layers By Attribute

I have a shapefile layer of contour lines that I'd like to export to DXF, but I want to have each feature be on a layer defined by an elevation attribute. I saw here that something like this should be ...
Don's user avatar
  • 576
6 votes
5 answers
9k 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. ...
Frank's user avatar
  • 61
6 votes
2 answers
5k 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 ...
hapa's user avatar
  • 421
6 votes
4 answers
8k views

Workflow for DXF interchange with QGIS

What is a method for 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 project. I ...
boberdorf's user avatar
  • 1,357
6 votes
3 answers
6k 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 ...
Akheloes's user avatar
  • 688
6 votes
0 answers
1k views

How to export "solid" 3D objects from QGIS to DXF?

I work in architecture and we often have to create urban contexts for our projects which involves obtaining a building footprint file and then extruding them by hand. I have attempted to use QGIS (v3....
Tomek's user avatar
  • 161
5 votes
5 answers
20k 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?
user28075's user avatar
  • 237
5 votes
2 answers
310 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 ...
Pablo's user avatar
  • 9,827
5 votes
1 answer
17k 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 ...
nigellaw's user avatar
  • 1,103
5 votes
2 answers
2k 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, ...
kelly's user avatar
  • 51
5 votes
1 answer
1k 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 ...
Frank 's user avatar
  • 337
5 votes
1 answer
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 ...
ChrisJ's user avatar
  • 1,129
5 votes
1 answer
994 views

Loading DXF file as vector layer using PyQGIS?

Can somebody help me with loading a dxf file as a vector layer with PyQGIS? Is QgsDataSourceURI an option? I've tried it with this code, but it didn't work. fitxer="/tmp/prova.dxf" uri = ...
Alexandre's user avatar
  • 151
4 votes
7 answers
19k 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?
Jorge Marques's user avatar
4 votes
2 answers
1k 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....
user23288's user avatar
4 votes
2 answers
11k 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 ...
Rayjax's user avatar
  • 193
4 votes
2 answers
3k 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 ...
Ger's user avatar
  • 2,575
4 votes
1 answer
3k 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, ...
Dmitriy Litvinov's user avatar
4 votes
2 answers
3k views

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 ...
MapEngine's user avatar
  • 995
4 votes
2 answers
9k 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 ...
H. Rigsby's user avatar
  • 141
4 votes
2 answers
11k 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?
Dùn Caan's user avatar
  • 1,294
4 votes
2 answers
943 views

How can I create a QGIS plugin that needs an external Python library?

I’m trying to enhance QGIS's Profiletool plugin by adding DXF export functionnality. For this, I need to to import dxfwrite library. As it's installed on my computer, i added the following lines to ...
Jerry Magnin's user avatar
4 votes
2 answers
2k 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 ...
aibars's user avatar
  • 51
4 votes
1 answer
2k views

Exporting attributes from QGIS to .dxf/dwg

I have a QGIS point layer with attributes in table. I want to export a layer with some of the attributes as a CAD block with attributes. Is it possible to do something like this?
Tomeczeg's user avatar
4 votes
1 answer
1k 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 ...
BRichardson's user avatar
4 votes
2 answers
7k views

QGIS DXF file projection match

I need to use this file on a map but I am not able to match the projection with the others I have, primarily data downloaded from OSM (city of Boston). I read many articles, I have repeatedly tried to ...
Horia Popa's user avatar
4 votes
1 answer
3k 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 ...
Jorge Marques's user avatar
3 votes
1 answer
14k views

Importing DXF in QGIS 3

I'd like to import a *.dxf-file into GIS 3.10 LTR. Does the DXF2Shape plugin available for this version of QGIS?
geofee's user avatar
  • 631
3 votes
2 answers
308 views

Export Project to DXF dialog using Python

I'm trying to run 'Export Project to DXF' in QGIS using the Python console. The intention is to export multiple vector layers, as defined by a Theme Visibility State, in the same way as if you ...
kelvin's user avatar
  • 33
3 votes
4 answers
5k 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 ...
Rafa Agustí's user avatar
3 votes
3 answers
1k 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 ...
Mirko's user avatar
  • 305
3 votes
1 answer
9k 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 ...
QGisRookie's user avatar

1
2 3 4 5
7