qgis / QGIS

QGIS is a free, open source, cross platform (lin/win/mac) geographical information system (GIS)
https://qgis.org
GNU General Public License v2.0
10.52k stars 2.99k forks source link

dxf Export does not work Since Version 3.12 #39799

Closed gafzgarrr closed 3 years ago

gafzgarrr commented 3 years ago

dxf Export from QGIS 3.10 worked without Problems. On higher Versions (Tested on 3.12 an 3.14) the dxf Export does not work. The dxf File is Empty or only the Descriptions were exported.

gioman commented 3 years ago

@gafzgarrr can you be more specific? I just tried to export a vector to DXF (using project > import/export > export project to DXF) and seems to have worked.

gioman commented 3 years ago

Related/duplicate of https://github.com/qgis/QGIS/issues/37202 ?

gafzgarrr commented 3 years ago

@gioman thanks for responding. I do it the same way (using project ....)

I get an dxf-file but there are no Lines or Points inside. The dxf File is empt or (from time to time) there are short Lines. I use AutoCAD Map2017 for opening the dxf files. I tried with 2 other PC´s always the same.

QGIS 3.10 has no issues, QGIS 3.12 an 3.14 has the Problems.

It always looks like the Picture 2020-11-05 08_09_57-Autodesk AutoCAD Map 3D 2017 -  Borna_gesamt_1 dxf

gioman commented 3 years ago

I get an dxf-file but there are no Lines or Points inside.

@gafzgarrr attach a sample of your data.

spad1991 commented 3 years ago

@gioman I provide two samples of the same file exported from 3.10.3 LTR and 3.16.0. The labels are exported correctly but all the symbols are collapsed to a single point. SAMPLES.zip

gioman commented 3 years ago

I provide two samples of the same file exported from 3.10.3 LTR and 3.16.0.

@spad1991 you must add the input data also, thanks.

spad1991 commented 3 years ago

I provide two samples of the same file exported from 3.10.3 LTR and 3.16.0.

@spad1991 you must add the input data also, thanks.

Sorry but I'm not allowed to share the input data. I can tell you that the points are from a .csv file with EPSG:4326 - WGS 84 coordinates. I belive you can reproduce the error with any coordinates structure (I have tried WKT and X,Y columns).

gioman commented 3 years ago

Sorry but I'm not allowed to share the input data. I can tell you that the points are from a .csv file with EPSG:4326 - WGS 84 coordinates. I belive you can reproduce the error with any coordinates structure (I have tried WKT and X,Y columns).

@gafzgarrr can you provide/attach such sample?

spad1991 commented 3 years ago

@gioman I found an approved project I can share to show the problem. I cannot upload the background, it's too heavy and also irrelevant to the issue (last time it was a poly shapefile, wich exported correctly, this time it is a .tif raster that is not exportable in dxf, no change in the point geometry behaviour). SAMPLES.zip

gioman commented 3 years ago

@gioman I found an approved project I can share to show the problem. I cannot upload the background, it's too heavy and also irrelevant to the issue (last time it was a poly shapefile, wich exported correctly, this time it is a .tif raster that is not exportable in dxf, no change in the point geometry behaviour). SAMPLES.zip

@spad1991 just tested your sample on 3.10 and 3.16 and I get identical results.

spad1991 commented 3 years ago

@gioman I found an approved project I can share to show the problem. I cannot upload the background, it's too heavy and also irrelevant to the issue (last time it was a poly shapefile, wich exported correctly, this time it is a .tif raster that is not exportable in dxf, no change in the point geometry behaviour). SAMPLES.zip

@spad1991 just tested your sample on 3.10 and 3.16 and I get identical results.

So is it because of something in my export settings? Cattura

gioman commented 3 years ago

So is it because of something in my export settings?

you are exporting using the 32632 CRS, but your project/data is in 4326 and I don't think that this parameter allows you do any reprojection, it is supposed you to choose the correct CRS, in this case 4326.

gioman commented 3 years ago

Closing for lack of feedback.

tmcgill26 commented 3 years ago

I am not sure if I should post here or somewhere else since this issue has been closed, but I have experienced the same problem (the current version is 3.16.2).

I do not know if the change in behavior that occurred after 3.10 (I skipped 3.12 and went straight to 3.14) was intentional or accidental, but I much prefer the older behavior. If the change was intentional, I would like to convert this issue to a feature request.

My circumstances can be described as:

  1. Project CRS is defined.
  2. Web layers contained in the project have a properly defined CRS that is different from the project CRS.
  3. Initiate the [Project] [Import/Export] [Export Project to DXF] dialog to export a DXF.
  4. Set the [CRS] setting to the project CRS (mine is set to this by default or precedent).
  5. Export the DXF.
  6. Open the DXF in AutoCAD Civil 3D

When I do this in version 3.10, all layers are exported using the project CRS (the web layers have been reprojected and everything looks just like it did on the screen in QGIS). When I do this in version 3.16, all layers are located in their original and un-reprojected locations and they do not line up on the screen.

gioman commented 3 years ago

I am not sure if I should post here or somewhere else since this issue has been closed

@gafzgarrr file a new ticket attaching sample data.