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.39k stars 2.98k forks source link

Export Layers to DXF does not always export all features #53600

Open AlisterH opened 1 year ago

AlisterH commented 1 year ago

What is the bug or the crash?

The attached file is the output of a processing model using the following series of algorithms: Regular points>Clip>v.drape If I use "Export layers to DXF", either in the model (in which case it is processing a memory layer), or outside of it (in which case it is processing either this gpkg or a memory layer, the DXF is missing several of the points. This occurs reliably, but I can't figure out why these particular points. I can't find any problems with the file e.g. with "Check validity". If I use "Project>Import Export>Export Project to DXF" then the result is the same (missing points). If I use e.g. "Drop M/Z values" and then export the resulting layer to DXF then none of the points are missing.

Steps to reproduce the issue

Drag and drop the attached gpkg file into QGIS then run "Export layers to DXF" to output it to DXF. output.zip image

Versions

This seems to occur with versions from at least 3.28.8 through to the current nightly.


QGIS version
3.28.8-Firenze
QGIS code revision
5ac45272b58
Qt version
5.15.3
Python version
3.9.5
GDAL/OGR version
3.7.0
PROJ version
9.2.1
EPSG Registry database version
v10.088 (2023-05-13)
GEOS version
3.11.2-CAPI-1.17.2
SQLite version
3.41.1
PDAL version
2.5.3
PostgreSQL client version
unknown
SpatiaLite version
5.0.1
QWT version
6.1.6
QScintilla2 version
2.13.1
OS version
Windows 10 Version 2009

Active Python plugins
annotationManager
0.5
AnotherDXF2Shape
1.2.7
BoundingBox
2.1
changeDataSource
3.1
civilplan
1.0
coveragebuilder
version 0.5.0
Equal_area_slope_QGIS_Plugin
0.1
file_management
0.1
FlowEstimator
0.21
GeoCoding
2.19
geometry_paster
0.2
geoprocAlgos
3.30
group_transparency
0.2
joinmultiplelines
Version 0.4.1
LayerBoard
1.0.1
layout_panel-main
0.3
MemoryLayerSaver
5.0.0
merge_selected_features
0.1
nominatim
1.4.5
pathfinder
version 0.4.2
plugin_reloader
0.9.3
precisioncursor4qgis-main
0.2E
QCopycanvas
0.7
qgis_resource_sharing
1.0.0
QlrBrowser
3.0.0
quick_map_services
0.19.33
reveal_address_plugin
1.2
segment_reshape_plugin
0.1.4
StyleLoadSave
1.0
switch_active_layer
0.1
valuetool
3.0.15
workbench
0.0.4
db_manager
0.1.20
grassprovider
2.12.99
MetaSearch
0.3.6
processing
2.12.99
sagaprovider
2.12.99

### Supported QGIS version

- [X] I'm running a supported QGIS version according to [the roadmap](https://www.qgis.org/en/site/getinvolved/development/roadmap.html#release-schedule).

### New profile

- [X] I tried with a new [QGIS profile](https://docs.qgis.org/latest/en/docs/user_manual/introduction/qgis_configuration.html#working-with-user-profiles)

### Additional context

_No response_
gacarrillor commented 6 months ago

Confirmed on QGIS master 3.37.0.

I get 10 points (not 14) in the DXF, but if I use the Drop Z/M algorithm (temporary output), I get all 14 points in the DXF.