Area Simplify drops Z and M values #50742
Labels
Bug
Either a bug report, or a bug fix. Let's hope for the latter!
Processing
Relating to QGIS Processing framework or individual Processing algorithms
What is the bug or the crash?
If you run the Simplify Algo with Area(Visvalingam) the Z and M values will become null if any vertexes are removed.
Steps to reproduce the issue
Test data:
Area_Simplify_ZMdrop.zip
Starting layer with all Z set to 100
![image](https://user-images.githubusercontent.com/15817745/198899112-2dc0cfc4-3ef4-40b8-bc37-486ba476e42b.png)
Simplified with some vertex's removed all Z now null or 0
![image](https://user-images.githubusercontent.com/15817745/198899136-799f8758-ae3d-41d2-aaa7-38cb16a51a85.png)
Simplified with no vertex's removed all Z's still 100 (one vertex was set to 200 did the same thing without that)
![image](https://user-images.githubusercontent.com/15817745/198899170-57d84899-06a4-4181-82e5-8e667fe387c2.png)
Versions
<style type="text/css"> p, li { white-space: pre-wrap; } </style>This copy of QGIS writes debugging output.
Active Python plugins
db_manager
0.1.20
grassprovider
2.12.99
MetaSearch
0.3.6
otbprovider
2.12.99
processing
2.12.99
sagaprovider
2.12.99
Supported QGIS version
New profile
Additional context
The Distance (Douglas-Puecker) stetting does not appear to be affected but it also doesn't seem to take into account Z values in simplification.
I was excited by the prospect of being able to simplify draped lines and have them take into account the Z dimension which the Area setting does.
I did not try this on polygons.
The text was updated successfully, but these errors were encountered: