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

QGIS 2.18.12 dxf export generates one layer per feature #25025

Closed
qgib opened this issue Sep 12, 2017 · 13 comments
Closed

QGIS 2.18.12 dxf export generates one layer per feature #25025

qgib opened this issue Sep 12, 2017 · 13 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

@qgib
Copy link
Contributor

qgib commented Sep 12, 2017

Author Name: Jochen Schwarze (Jochen Schwarze)
Original Redmine Issue: 17126
Affected QGIS version: 2.18.12
Redmine category:dxf_export


QGIS 2.18.12 dxf export generates one layer per feature (cp. screenshot). In QGIS 2.14. we had one dxf layer per QGIS layer, not sure if this behaviour is a bug or caused by users mistake.



Related issue(s): #24229 (duplicates), #24661 (relates)
Redmine related issue(s): 16319, 16762


@qgib
Copy link
Contributor Author

qgib commented Sep 12, 2017

Author Name: Giovanni Manghi (@gioman)


  • version was configured as 2.18.12
  • project_id was changed from 18 to 17
  • category_id was changed from Any to DXF export
  • easy_fix was configured as 0
  • crashes_corrupts_data was configured as 0
  • regression was configured as 0

@qgib
Copy link
Contributor Author

qgib commented Sep 12, 2017

Author Name: Jochen Schwarze (Jochen Schwarze)


Should have set "Regression?" to 'yes' because worked fine in previous version.

@qgib
Copy link
Contributor Author

qgib commented Sep 12, 2017

Author Name: Giovanni Manghi (@gioman)


  • priority_id was changed from Normal to High
  • regression was changed from 0 to 1

@qgib
Copy link
Contributor Author

qgib commented Sep 12, 2017

Author Name: Jürgen Fischer (@jef-n)


Which field did you select for the layer name?

@qgib
Copy link
Contributor Author

qgib commented Sep 12, 2017

Author Name: Giovanni Manghi (@gioman)


  • status_id was changed from Open to Feedback

@qgib
Copy link
Contributor Author

qgib commented Sep 12, 2017

Author Name: Jürgen Fischer (@jef-n)


  • priority_id was changed from High to Normal

@qgib
Copy link
Contributor Author

qgib commented Sep 12, 2017

Author Name: Giovanni Manghi (@gioman)


Hi Jurgen, I have no time to test this today, not a regression?

@qgib
Copy link
Contributor Author

qgib commented Sep 12, 2017

Author Name: Jürgen Fischer (@jef-n)


Giovanni Manghi wrote:

Hi Jurgen, I have no time to test this today, not a regression?

I suspect that the gml_id was selected as attribute definining the dxf layer name (instead of keeping the default - which is the qgis layer name)

@qgib
Copy link
Contributor Author

qgib commented Sep 12, 2017

Author Name: Giovanni Manghi (@gioman)


  • regression was changed from 1 to 0

@qgib
Copy link
Contributor Author

qgib commented Sep 13, 2017

Author Name: Jochen Schwarze (Jochen Schwarze)


No, definitly the defaults where kept for the export process.

But having had a closer look at the results, I saw that the issue was not described exact enaugh. The default configuration generates one layer per feature and in addition one layer named after the QGIS layer name containing all features (Case A, cp. screenshots).

This behaviour can be observed for any layers, and the (unique(?)) attribute values used as layer names seem to be chosen accidently (e.g. for layer 'Adressen gesamt' attribute "hausnummer", cp. screenshots)

Selecting an attribute containing the layer name was tested also (here: attribute "gemarkungsnummer"), wich generates one layer for each "gemarkungsnummer", BUT NO layer named after the QGIS layer name (Case B, cp. screenshots).

This observation leads me to a simple workaround for 2.18.x: One might create a virtual field "layer" wich contains the 'layer name' (here: 'Flurstuecke gesamt') as the one and only attribute value and select this attribute for the layer name. This would be ok for one or at the most very few layers, but becomes painful for, say, ten or more.

Since this behaviour cannot be observed in 2.14.x, a Regression = 'Ja' might be justifyable.


  • 11401 was configured as qgis_dxf_export_21812_config_a.jpg
  • 11400 was configured as qgis_dxf_export_21812_config_a_res1.jpg
  • 11403 was configured as qgis_dxf_export_21812_config_a_res2.jpg
  • 11402 was configured as qgis_dxf_export_21812_config_b.jpg
  • 11406 was configured as qgis_dxf_export_21812_config_b_res.jpg
  • 11404 was configured as qgis_dxf_export_21812_workaround.jpg
  • 11407 was configured as qgis_dxf_export_21812_workaround_config_res.jpg
  • 11405 was configured as qgis_dxf_export_21812_workaround_config.jpg

@qgib
Copy link
Contributor Author

qgib commented Sep 18, 2017

Author Name: Jürgen Fischer (@jef-n)


Applied in changeset 15bc5ed.


  • status_id was changed from Feedback to Closed
  • done_ratio was changed from 0 to 100

@qgib qgib closed this as completed Sep 18, 2017
@qgib
Copy link
Contributor Author

qgib commented Sep 28, 2017

Author Name: Jürgen Fischer (@jef-n)


@qgib
Copy link
Contributor Author

qgib commented Nov 16, 2017

Author Name: Jürgen Fischer (@jef-n)


@qgib qgib added Bug Either a bug report, or a bug fix. Let's hope for the latter! DXF/DWG Relating to DXF or DWG importing/exporting labels May 25, 2019
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

1 participant