Skip to main content

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
-2 votes
1 answer
41 views

We getting different scale of dxf to base DWG file once we did georeferenced in QGIS? [closed]

We getting different scale of dxf to base DWG file once we did georeferenced in QGIS ?
emsops pavan's user avatar
0 votes
0 answers
32 views

QGIS - Exporting layers with symbology and colors to Microstation DGN format via Project Export to DXF

The final result I want to arrive to is exporting exactly what is seen of the shp file in the QGIS window view to Bentley Microstation DGN file format while retaining the same symbology that is shown ...
Faisal Alsoufi's user avatar
0 votes
0 answers
41 views

How to read attached object data of points in DXF

I'm reading a DXF with ezdxf module in Python. Some entities have attribute data, xdata and object data. I'm able read attribute and xdata, but how to read the attribute data? dwg = ezdxf.readfile(...
Velugoti Venkateswarlu's user avatar
0 votes
0 answers
69 views

Export DXF from QGIS with Symbology and Fill for Points in PyQGIS

I'm trying to export multiple vector layers from QGIS to a DXF file using PyQGIS. The export mostly works, but I’m running into issues with points. Currently, points are exported as simple circles or ...
Paul WOISARD's user avatar
0 votes
0 answers
92 views

Coordinate difference when exporting .shp to .dxf?

I'm working with both QGIS and AutoCAD. I import DXF files into QGIS, where I then digitize some geometries and then I export them back to .DXF to be able to upload them on the company's internal ...
Maria's user avatar
  • 9
1 vote
1 answer
113 views

Writting both PEN and LABEL tool parameters when exporting line features to DXF using GDAL/OGR

When transferring data from a PostgreSQL/PostGIS database to a DXF file using ogr2ogr I'm not able to figure out if it's possible to have both a PEN and a LABEL on line features. This is what I ...
swiss_knight's user avatar
  • 10.9k
0 votes
2 answers
90 views

DXF with incomplete Gauß Krüger Zone 4 Coordinates [closed]

I have a DXF file (dwg originaly). The Coordinates in said file are set in Gauß Krüger Zone 4 (wich was used in Bavaria, Germany around 20 Years ago. While loading the File in QGIS (3.28.15) the ...
Koronus's user avatar
0 votes
0 answers
47 views

Exporting labels of vector GPKG to DXF on QGIS 3.34 GUI Windows 10

Objective: Generate a DXF grid of depth labels of a water body in AUTOCAD, a sample is shown here. Input: I have a raster from which I have performed "raster pixel to points" to create a ...
Ashish AJ's user avatar
1 vote
0 answers
128 views

.SHP to .DXF while preserving the labels

I have a shapefile layer containing points that hold their name as an attribute and I displayed those names as labels using QGIS . Now when I try to export these points as .dxf file the label is not ...
aogino's user avatar
  • 25
0 votes
1 answer
91 views

DXF to GeoJSON conversion gets coordinates completely wrong?

I am using GDAL and the ogr2ogr tool in order to convert a file from a DXF to GeoJSON but at the same time convert the coordinates to another CRS, from Sweref 99TM to WGS84. The issue I am facing is ...
Ms01's user avatar
  • 103
0 votes
0 answers
302 views

Use GDAL to convert DXF drawing to GeoTIFF

Is GDAL capable of converting AutoCAD DXF to a GeoTIFF? I've tried ogr2ogr -f "GTiff" C:/output.tif C:/input.dxf and that returned ERROR 1: GTiff driver has no vector capabilities ...
guest_231213's user avatar
1 vote
0 answers
148 views

QGIS Profile Tool - Batch export of multiple profiles

I have a DEM and a vector shapefile of multiple lines and I need to obtain multiple DXF export of each profile based on the position of the lines. There is a way to obtain multiple exports (many DXF) ...
Paolo's user avatar
  • 11
1 vote
0 answers
550 views

How to correctly convert a DEM/GeoTIFF to 3D Contours in a DXF file

I am trying my darndest to turn a DEM/GeoTIFF into a 3D DXF file of contours but so far haven't been able to make it work correctly - I still end up with a seemingly 2D DXF that I can open in ...
Lost Mapper's user avatar
  • 1,971
1 vote
1 answer
272 views

QGIS .dxf file conversion to .kml no geometry notification

My colleague is having an issue converting DXF files into KML files. He is using QGIS version Lima (not sure version no.) and I am using Hannover (3.16) We have checked all the various options and ...
Bob's user avatar
  • 11
1 vote
0 answers
65 views

DXF to ArcGIS Pro - scattering of lines

I am trying to import 3D CAD polylines (DXF file) into ArcGIS Pro. However some lines scatter randomly when importing, and I am unable to understand why, or how to prevent it. In this image, the red ...
ads's user avatar
  • 11
0 votes
1 answer
178 views

Import from Intergraph G/Technology in QGIS

we currently use Hexagon's Intergraph G/Technology. Unfortunately, when exporting (via dwg / dxf) and importing into QGIS, all symbols (e.g. hydrants) are displayed in the wrong place. The symbols are ...
Martin's user avatar
  • 29
0 votes
2 answers
102 views

Converting DXF format using Beijing 1954 datum to WGS84 [closed]

I have a file in DXF format. I am trying to convert this format to shapefile, but CRS does not match. The information I have is that the Coordination System is in DXF format and has UTM-based ...
Teddy Sosan Yun's user avatar
1 vote
0 answers
42 views

QGIS DXF - Import Script to use the Windows fonts

I can find the font information in the "style" column and I use this for styling. The following code adjust all layers: from qgis.core import QgsProject for layer in QgsProject.instance()....
Martin's user avatar
  • 29
0 votes
0 answers
202 views

Export Layers with Labels to DXF from QGIS

i have a problem with DXF-Export from QGIS. As shown below, the labels of my lines are not correctly exported to the DXF file. What settings have I done wrong? These are the settings I use for Export:...
Toby's user avatar
  • 135
0 votes
0 answers
170 views

QGIS export to DXF crash

I have a point GPKG layer with 14 features. It has a number of symbol styles. I click import/export -> export project to DXF -> select only this point layer. It exports in a split second. I have ...
Simon Forster's user avatar
0 votes
2 answers
164 views

Exporting polygon as DXF using PyQGIS

I am working on a script to export my dissolved polygon into Dxf but I get an error. Could somebody teach me how to do this? Here is my code: from qgis import processing from datetime import datetime, ...
PyCher's user avatar
  • 171
1 vote
0 answers
872 views

DXF/DWG not loading into ArcGIS Pro

So I was following the directions at https://gis.stackexchange.com/a/169914/17847 and extracted a DXF/DWG from a PDF. When I try to load the DXF/DWG into ArcGIS Pro. However, I do not see anything: I ...
neubert's user avatar
  • 370
0 votes
0 answers
601 views

Import DXF/DWG in QGIS not at correct location

I have multiple DXF files in CRS EPSG 3857. I would like to import this data into QGIS and convert it into another CRS (EPSG 28992). I've tried importing the DXF file both through the built-in DXF/DWG ...
Jori1224's user avatar
0 votes
0 answers
82 views

GeoTIFF for DEM has right coordinates but the actual dimensions are very smaller

The GeoTIFF file I have for Digital Elevation Model (DEM) has the following span: N: 51 deg E: -110 deg S: 50 deg W: -112 deg The actual length and width of the area should be (89.1 miles x 69....
Anish Silwal's user avatar
1 vote
0 answers
34 views

QGIS grass imports vector line data as points, not vector lines

I am very new to QGIS and Grass. I am trying to create a dxf file with height data using Grass 7 as per this youtube video. (1:35 mark) My contour data and Qgis file is uploaded here. When I go to ...
J.Watt's user avatar
  • 51
3 votes
0 answers
376 views

How to create Block References in dxf files using GDAL?

I need to use GDAL to create dxf files in AutoCAD. I have already implemented the creation of point-line geometry layers and label layers, but now the creation of Block References keeps failing. In ...
DXnima's user avatar
  • 31
2 votes
2 answers
521 views

What does exec(Path('C:/PROGRA~1/KMSpico/temp/tmpq2wwvz7_.py').read_text()) mean?

When I run this code: #Load the dfx file to get the sublayers. vlayer = QgsVectorLayer(dfx_file, 'layer_test', 'ogr') subLayers = vlayer.dataProvider().subLayers() #For each sublayer, different types ...
Student's user avatar
  • 21
0 votes
0 answers
621 views

QGIS : Problem in importing geopackage that was created from a .dwg file

I have an AutoCAD .dwg file of stream/channels and hydraulic engineering data. I want to use it in QGIS (3.22.14-Białowieża) for some geoprocessing tasks. The steps I want to take are: Convert the *....
Karan Mahajan's user avatar
0 votes
0 answers
68 views

Export object id in DXF from Inkscape

I have to integrate Inkscape drawings into QGIS. In order to do so, I export the drawings in DXF format from Inkscape. There's no problem to georeference them in QGIS, but I would like to know if ...
Arn's user avatar
  • 21
1 vote
1 answer
134 views

QGIS DXF - Import does not use the Windows fonts

The integrated DXF import didn't use the fonts installed in Windows (for special symbols). These can be used in QGIS, but the import doesn't use them.
Martin's user avatar
  • 11
0 votes
1 answer
380 views

ogr2ogr only shows specific layer name when converting dxf file to geojson

I am learning the process of extracting only certain layers inside the dxf file and converting them into GEOJSON files using the ogr2ogr of Gdal. Let me show you an example. ex) ogr2ogr -f "...
sjanjan's user avatar
  • 11
0 votes
0 answers
326 views

Convert DXF files into shapefiles using ogr2ogr

I'm trying to convert DXF to shapefile through org2org in GDAL Ask about some questions and errors during the attempt. Here's the command: ogr2ogr -f "ESRI Shapefile" test_13.shp Ceco.NET-...
sjanjan's user avatar
  • 11
0 votes
0 answers
62 views

Problems with the Z-values / exporting MXD (ArcMap) to DXF (AutoCAD)

Circular arcs are polygonalized in the DXF output. Several support points are inserted into an arc, which are connected to each other with polylines. The Z-values ​​of the inserted support points are ...
C. J.'s user avatar
  • 1
1 vote
1 answer
102 views

Loading DXF data with original dimensions into QGIS

I have many DXF files. And these are architectural drawings. In QGIS, I want to place buildings in their real locations on earth, and I am preparing a plugin for this. But when I export the DXF data ...
Vecihi's user avatar
  • 23
3 votes
1 answer
716 views

Speeding up the import of DXF files in QGIS

I have to import several DXF-Files into QGIS and load them into a database. The files are quite big, around 20 MB or 30 MB large. I started to import the first DXF-File several hours ago and it is ...
Enzo Baldini's user avatar
  • 2,385
0 votes
0 answers
444 views

QGIS file exported as AutoCAD DXF not visible on the map and loosing attribute table

By continuing the thread here: QGIS Export project to DXF loses attribute data in AutoCAD I was trying to export my file as the DXF in order to make the attribute table changes yet in QGIS. ...
Geographos's user avatar
  • 3,791
0 votes
0 answers
62 views

Export as ,DXF fle

I am trying to export a QGIS 3.6.2 file as a .DXF and receive an 'export failed' notification with no details. Export as .PDF and .JPG are successful
Chris's user avatar
  • 1
1 vote
1 answer
876 views

Some labels disappear when exported from QGIS to DXF

I'm using QGIS 3.14. I have two layers with labels in QGIS, set up to map units. In "rendering" section of label properties I have set up to show all labels for these layers. I want to ...
Ivan Mihaljević's user avatar
1 vote
1 answer
414 views

Extract particular layers from DXF file and make shapefile

I've been given a DXF file with many different points, linestrings and polygons. Alongside these, there are some text annotations with arrows pointing to a particular feature. (The CAD-user's ...
guest_98732012's user avatar
3 votes
1 answer
1k views

Importing layers from DWG and they aren't appearing on my QGIS map

I am extremely new to QGIS and havent been able to find a solution to this problem I ran into when trying to upload a .dwg file I was given. I imported the file using Project > Import/Export > ...
Corinne's user avatar
  • 33
0 votes
2 answers
379 views

How to create a 3D DXF from ARCGEN with gdal ogr2ogr?

From ARCGEN (Esri ArcInfo Generate) I want to create a DXF with distinguishable layers: import_polz.pol The transformation to a three-dimensional shapefile runs flawlessly with gdal ogr2ogr: ogr2ogr ...
Chris Naujoks's user avatar
1 vote
1 answer
574 views

Exporting DXF from Revit to QGIS, loss of coordinates

I'm trying to combine Revit and QGIS. It's mostly about exporting Revit files as DXF and opening them in QGIS. Every file, no matter how I try to work with the projection in Revit (survey point and ...
AlexWood's user avatar
1 vote
1 answer
412 views

DXF to GeoJSON issue

I'm trying to convert DXF file to GeoJSON. Layer name: entities Geometry: Unknown (any) Warning 1: One or several characters couldn't be converted correctly from CP1254 to UTF-8. This warning will ...
Yasar Ozyurt's user avatar
2 votes
1 answer
177 views

Move points to a Z-value?

I want to export a 800k points, which correspond to a DEM (terrain elevation) to Rhino. Currently, I tried to export a CSV with X,Y,Z coordinates based on the point attributes, however, there seems to ...
Topow's user avatar
  • 361
1 vote
1 answer
768 views

How to export DXF lines and polylines into one shapefile in QGIS

I imported a DXF file into QGIS and now after editing it, I wish to save different parts of it as a shapefile. When I go to save the layers by highlighting the ones I want and pressing right click >...
enor's user avatar
  • 411
1 vote
0 answers
74 views

ArcMap ModelBuilder: Select Annotation from iteration of CAD (.dxf) files and then import them into a geodatabase

I'm trying to build a model which exports the "Annotations" and the "Area", "Line", "CadDoc" (after running the Import from CAD tool) of several DXF files and ...
Alwin 's user avatar
  • 181
1 vote
0 answers
2k views

Save/convert geopackage to DWG

Is there a way to save data from a geopackage to a DXF/DWG without saving each layer to a DXF in the process and then stitching them together in CAD?
Ma Fo's user avatar
  • 743
0 votes
0 answers
692 views

How to import CAD drawings into QGIS?

I have a dxf with a polygon. This polygon has an area of 680279.678 m² in Autocad. When i import it into QGIS and calculate the area in the field calculator with area($geometry) i get 680281.25 I ...
kigmbh's user avatar
  • 1
0 votes
0 answers
771 views

Python in QGIS to convert from dxf to shapfile

Within the QGIS python console, I'm trying to convert a dxf file into a shp file. I run this section of code, and am not getting an error but no output file is generated. Wondering if I'm missing ...
Geno's user avatar
  • 73
0 votes
0 answers
363 views

Changing the output DXF version when exporting with ogr2ogr

I am exporting a DXF file from a PostgreSQL database. If I use the OSGeo4W installed with the 3.8 vesrion of QGIS, the dxf version will be a newer one than what I would get if I would use the OSGeo4W ...
588chm's user avatar
  • 645

1
2 3 4 5
7