Bug report #16927
Updated by Jürgen Fischer about 7 years ago
Situation:
* 2D linestring layer from postgis db in editing mode
* New line is drawn, the points are selected by snapping to a 3D point layer in the same db
* Commiting the changes fails with the error "geometry type is not compatible with the current layer."
-> When drawing a line with arbitrary points (snapping may be active, but the new points are not created by snapping to a point layer)no error occurs;
-> When snapping to points of a 2D point layer, no error occurs
QGIS seems to try to add 3D coordinates to the new 2D line feature instead of using only the first frist two dimensions.
* 2D linestring layer from postgis db in editing mode
* New line is drawn, the points are selected by snapping to a 3D point layer in the same db
* Commiting the changes fails with the error "geometry type is not compatible with the current layer."
-> When drawing a line with arbitrary points (snapping may be active, but the new points are not created by snapping to a point layer)no error occurs;
-> When snapping to points of a 2D point layer, no error occurs
QGIS seems to try to add 3D coordinates to the new 2D line feature instead of using only the first frist two dimensions.