-
-
Notifications
You must be signed in to change notification settings - Fork 3k
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
Splitting Line Strings with Z interpolates strange values #33489
Comments
cc @lbartoletti |
I think the Z values will need to be dropped from the split line before sending it to the splitGeometry function. |
@m-kuhn I tried your example with master, seems fixed (with QgsPointXY). But not sure:
|
@lbartoletti with See
|
@ponceta I think it's not yet in master (commit merged 5hours ago). Please try wednesday. |
@lbartoletti, thanks for the info! |
When a LineStringZ is split using the split feature tool, strange new Z values are inserted.
From a first assessment, what happens is, that the splitLine is made up of PointZ with Z=0.
Calling with a splitLine made up of QgsPointXY or QgsPoint without Z, interpolation works as expected.
To make things even trickier, right now it's only possible to call the (correctly working but deprecated) QgsPointXY overload from Python. The non-deprecated overload with
QVector< QgsPoint >
is not picked up by sip. So in order to get the following code to work that illustrates the issue, the deprecated overload has to be removed fromqgsgeometry.sip.in
.The text was updated successfully, but these errors were encountered: