Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"Export Project to DXF" writes same OBJECTS section for every DXF file with fixed handles & LUNITS is incorrect #55705

Open
1 of 2 tasks
iembry opened this issue Dec 24, 2023 · 0 comments
Labels
Bug Either a bug report, or a bug fix. Let's hope for the latter! DXF/DWG Relating to DXF or DWG importing/exporting

Comments

@iembry
Copy link

iembry commented Dec 24, 2023

What is the bug or the crash?

Please refer to the analysis made by Manfred Moitzi (mozman) in the ezdxf issue that I filed (mozman/ezdxf#997):

"They write the same OBJECTS section for every DXF file with fixed handles, but the entities handles of the content are created dynamically. So the handles in the OBJCTS section (fixed handles) will never match the handles in the TABLES section (dynamic handles). And this is true for every entity in the OBJECTS section and therefor 85 or more errors in every DXF file they export!"

In addition, the $LUNITS variable is not correct. I exported a project to a DXF file with EPSG:2274 (units of US survey foot); however, the $LUNITS variable has an identifier of 2 (feet) rather than 21 (US Survey Feet). Please refer to https://ezdxf.readthedocs.io/en/stable/concepts/units.html for the appropriate table defining the units.

Steps to reproduce the issue

Go to File > Import/Export DXF > Export Project as DXF

The bug is actually in the underlying DXF exporter written in C++.

Versions

QGIS 3.34

Supported QGIS version

  • I'm running a supported QGIS version according to the roadmap.

New profile

Additional context

Will you ensure that the $LUNITS variable correctly matches the units from the exported CRS?

@iembry iembry added the Bug Either a bug report, or a bug fix. Let's hope for the latter! label Dec 24, 2023
@agiudiceandrea agiudiceandrea added the DXF/DWG Relating to DXF or DWG importing/exporting label Dec 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Either a bug report, or a bug fix. Let's hope for the latter! DXF/DWG Relating to DXF or DWG importing/exporting
Projects
None yet
Development

No branches or pull requests

2 participants