https://issues.qgis.org/https://issues.qgis.org/favicon.ico2017-09-12T10:50:11ZQGIS Issue TrackingQGIS Application - Bug report #17126: QGIS 2.18.12 dxf export generates one layer per featurehttps://issues.qgis.org/issues/17126?journal_id=821182017-09-12T10:50:11ZGiovanni Manghigiovanni.manghi@gmail.com
<ul><li><strong>Affected QGIS version</strong> set to <i>2.18.12</i></li><li><strong>Project</strong> changed from <i>QGIS Redmine (QGIS bug tracker)</i> to <i>QGIS Application</i></li><li><strong>Category</strong> changed from <i>Any</i> to <i>DXF export</i></li><li><strong>Easy fix?</strong> set to <i>No</i></li><li><strong>Crashes QGIS or corrupts data</strong> set to <i>No</i></li><li><strong>Regression?</strong> set to <i>No</i></li></ul> QGIS Application - Bug report #17126: QGIS 2.18.12 dxf export generates one layer per featurehttps://issues.qgis.org/issues/17126?journal_id=821192017-09-12T10:53:30ZJochen Schwarzejochen.schwarze@live.unigis.net
<ul></ul><p>Should have set "Regression?" to 'yes' because worked fine in previous version.</p> QGIS Application - Bug report #17126: QGIS 2.18.12 dxf export generates one layer per featurehttps://issues.qgis.org/issues/17126?journal_id=821202017-09-12T10:55:36ZGiovanni Manghigiovanni.manghi@gmail.com
<ul><li><strong>Priority</strong> changed from <i>Normal</i> to <i>High</i></li><li><strong>Regression?</strong> changed from <i>No</i> to <i>Yes</i></li></ul> QGIS Application - Bug report #17126: QGIS 2.18.12 dxf export generates one layer per featurehttps://issues.qgis.org/issues/17126?journal_id=821302017-09-12T13:17:51ZJürgen Fischerjef@norbit.de
<ul></ul><p>Which field did you select for the layer name?</p> QGIS Application - Bug report #17126: QGIS 2.18.12 dxf export generates one layer per featurehttps://issues.qgis.org/issues/17126?journal_id=821312017-09-12T13:18:11ZGiovanni Manghigiovanni.manghi@gmail.com
<ul><li><strong>Status</strong> changed from <i>Open</i> to <i>Feedback</i></li></ul> QGIS Application - Bug report #17126: QGIS 2.18.12 dxf export generates one layer per featurehttps://issues.qgis.org/issues/17126?journal_id=821322017-09-12T13:18:38ZJürgen Fischerjef@norbit.de
<ul><li><strong>Priority</strong> changed from <i>High</i> to <i>Normal</i></li></ul> QGIS Application - Bug report #17126: QGIS 2.18.12 dxf export generates one layer per featurehttps://issues.qgis.org/issues/17126?journal_id=821332017-09-12T13:22:38ZGiovanni Manghigiovanni.manghi@gmail.com
<ul></ul><p>Hi Jurgen, I have no time to test this today, not a regression?</p> QGIS Application - Bug report #17126: QGIS 2.18.12 dxf export generates one layer per featurehttps://issues.qgis.org/issues/17126?journal_id=821352017-09-12T13:40:20ZJürgen Fischerjef@norbit.de
<ul></ul><p>Giovanni Manghi wrote:</p>
<blockquote>
<p>Hi Jurgen, I have no time to test this today, not a regression?</p>
</blockquote>
<p>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)</p> QGIS Application - Bug report #17126: QGIS 2.18.12 dxf export generates one layer per featurehttps://issues.qgis.org/issues/17126?journal_id=821372017-09-12T14:06:42ZGiovanni Manghigiovanni.manghi@gmail.com
<ul><li><strong>Regression?</strong> changed from <i>Yes</i> to <i>No</i></li></ul> QGIS Application - Bug report #17126: QGIS 2.18.12 dxf export generates one layer per featurehttps://issues.qgis.org/issues/17126?journal_id=821522017-09-13T10:59:05ZJochen Schwarzejochen.schwarze@live.unigis.net
<ul><li><strong>File</strong> <a href="/attachments/download/11401/qgis_dxf_export_21812_config_a.jpg">qgis_dxf_export_21812_config_a.jpg</a> added</li><li><strong>File</strong> <a href="/attachments/download/11400/qgis_dxf_export_21812_config_a_res1.jpg">qgis_dxf_export_21812_config_a_res1.jpg</a> added</li><li><strong>File</strong> <a href="/attachments/download/11403/qgis_dxf_export_21812_config_a_res2.jpg">qgis_dxf_export_21812_config_a_res2.jpg</a> added</li><li><strong>File</strong> <a href="/attachments/download/11402/qgis_dxf_export_21812_config_b.jpg">qgis_dxf_export_21812_config_b.jpg</a> added</li><li><strong>File</strong> <a href="/attachments/download/11406/qgis_dxf_export_21812_config_b_res.jpg">qgis_dxf_export_21812_config_b_res.jpg</a> added</li><li><strong>File</strong> <a href="/attachments/download/11404/qgis_dxf_export_21812_workaround.jpg">qgis_dxf_export_21812_workaround.jpg</a> added</li><li><strong>File</strong> <a href="/attachments/download/11407/qgis_dxf_export_21812_workaround_config_res.jpg">qgis_dxf_export_21812_workaround_config_res.jpg</a> added</li><li><strong>File</strong> <a href="/attachments/download/11405/qgis_dxf_export_21812_workaround_config.jpg">qgis_dxf_export_21812_workaround_config.jpg</a> added</li></ul><p>No, definitly the defaults <em>where kept</em> for the export process.</p>
<p>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 <strong>in addition</strong> one layer named after the QGIS layer name containing all features (Case A, cp. screenshots).</p>
<p>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)</p>
<p>Selecting an attribute containing the layer name was tested also (here: attribute "gemarkungsnummer"), wich generates one layer for each "gemarkungsnummer", <strong>BUT NO</strong> layer named after the QGIS layer name (Case B, cp. screenshots).</p>
<p>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.</p>
<p>Since this behaviour cannot be observed in 2.14.x, a Regression = 'Ja' might be justifyable.</p> QGIS Application - Bug report #17126: QGIS 2.18.12 dxf export generates one layer per featurehttps://issues.qgis.org/issues/17126?journal_id=822082017-09-18T15:21:03ZJürgen Fischerjef@norbit.de
<ul><li><strong>Status</strong> changed from <i>Feedback</i> to <i>Closed</i></li><li><strong>% Done</strong> changed from <i>0</i> to <i>100</i></li></ul><p>Applied in changeset <a class="changeset" href="https://issues.qgis.org/projects/qgis/repository/revisions/15bc5ed0c34276b350b1af1ea8ca02b5c37cd806" title="dxf export: fix layer assignment (fixes #17126; followup 92091c536b)">qgis|15bc5ed0c34276b350b1af1ea8ca02b5c37cd806</a>.</p> QGIS Application - Bug report #17126: QGIS 2.18.12 dxf export generates one layer per featurehttps://issues.qgis.org/issues/17126?journal_id=832122017-09-28T07:33:48ZJürgen Fischerjef@norbit.de
<ul><li><strong>Related to</strong> <i><a class="issue tracker-1 status-5 priority-4 priority- closed" href="/issues/16762">Bug report #16762</a>: DXF Export... does not work as in pre 2.18.9</i> added</li></ul> QGIS Application - Bug report #17126: QGIS 2.18.12 dxf export generates one layer per featurehttps://issues.qgis.org/issues/17126?journal_id=844162017-11-16T07:35:22ZJürgen Fischerjef@norbit.de
<ul><li><strong>Duplicates</strong> <i><a class="issue tracker-1 status-5 priority-4 priority- closed" href="/issues/16319">Bug report #16319</a>: DXF Export generates many numbered layers (1 layer for each feature)</i> added</li></ul>