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

[dxf] When exporting to DXF, skip empty layers #56126

Merged
merged 2 commits into from
Feb 6, 2024

Conversation

nirvn
Copy link
Contributor

@nirvn nirvn commented Feb 1, 2024

Description

This PR insures that the LAYER groups are only written into the DXF when features are found within those layers. If no features are found (empty layer or no feature overlapping the provided extent), we write nothing.

Test cases were added to cover pre-existing filtering by extent and this additional handling of empty layers.

@nirvn nirvn added the DXF/DWG Relating to DXF or DWG importing/exporting label Feb 1, 2024
@github-actions github-actions bot added this to the 3.36.0 milestone Feb 1, 2024
@nirvn nirvn closed this Feb 3, 2024
@nirvn nirvn reopened this Feb 3, 2024
Copy link

github-actions bot commented Feb 3, 2024

🪟 Windows builds ready!

Windows builds of this PR are available for testing here. Debug symbols for this build are available here.

(Built from commit 840fd93)

@nyalldawson
Copy link
Collaborator

@nirvn should we add some feedback mechanism here to advise the user why the layer was skipped?

@nirvn
Copy link
Contributor Author

nirvn commented Feb 4, 2024

@nyalldawson , feedback added.

@nirvn nirvn force-pushed the dxf_output_skip_empty_layer branch 2 times, most recently from dd4a80b to df55102 Compare February 5, 2024 03:51
@nirvn nirvn force-pushed the dxf_output_skip_empty_layer branch from df55102 to 840fd93 Compare February 6, 2024 04:31
@nirvn nirvn enabled auto-merge (rebase) February 6, 2024 05:02
@nirvn nirvn merged commit b51290c into qgis:master Feb 6, 2024
29 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
DXF/DWG Relating to DXF or DWG importing/exporting
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants