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
12
votes
2answers
7k 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 ...
14
votes
7answers
18k 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.
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?
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 ...
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. ...
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 ...
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. ...
5
votes
1answer
460 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. ...
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, ...
8
votes
9answers
37k 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 ...
1
vote
1answer
120 views

Exporting symbols rather than points in .dxf

I have a map I've made in QGIS which is points from a .csv file. These have then be turned into different symbols based on what they represent and then the sizes of said symbols based on values in the ...
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
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 ...
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
2answers
464 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....
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
4k 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 ...
3
votes
7answers
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?
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?
5
votes
3answers
814 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) ...
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 ...
2
votes
1answer
2k views

How can I use QGIS to convert points with elevations to DXF?

I'm trying to convert points (with their elevations) into a dxf file for use in AutoCAD LT. I've tried "save as" to dxf for the layer, which appears to almost work...the dxf has x and y location ...
2
votes
1answer
2k views

Export Postgis Geometry POINT as Label text to DXF or DGN

I really need to export, by the ogr2ogr command or similar, text information related to a geometry position from my PostgreSQL(with PostGIS) database to an AutoCAD DXF layer file or to a Microstation ...
2
votes
1answer
2k views

DXF Import QGIS: Text Components

I want to import several dxf-features. This works fine in QGIS 2.18 apart from text (annotations). The respective text information is stored, at least in my case, within the point components of dxf ...
1
vote
1answer
874 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 ...
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 ...
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
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 ...
3
votes
1answer
597 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 = ...
1
vote
2answers
344 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
261 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
2answers
308 views

v.in.dxf not working properly in GRASS toolbox in QGIS 2.18.11

I am using the GRASS v.in.dxf tool from the GRASS plugin to import some contours in QGIS. Everything seems fine, but the tool does not import all the contours. There are no additional options in this ...