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
Unexpected crash using: QgsFeatureRenderer.symbolForFeature() #68
Comments
@T4mmi is this a question? |
I have no idea ... I feel like this is a bug BUT I'm far from understanding everything that happens under the hood so it might be just a bad use of this functionnality .... I had almost the same behavior (SIP-related crash) using the non-const iterator in the geometry parts loop |
@T4mmi if you are looking for feedback you should write in the QGIS developers mailing list, not here. |
Ok, thanks, will do ! [edit] following the comment on dev-list I opened the issue on the QGIS repo : qgis/QGIS#42027 |
The answer from mailling list solved the problem :
it might be a nice warning to add in the documentation) |
Hi all,
I'm trying to convert a 2D+Z vector layer to a 3D objet (using VTK) ...
So far I managed to get the geometry right :
but i'm looking to color the 3D object using the
iface.mapCanvas()
rendering ...all I could find is to request the
QgsSymbol
for each feature and collect its color/label/whatever.maybe there is a better way, but i could not find it
so when i try to call
layer.renderer().symbolForFeature(feature, context)
I got an unexpected crash ... linked to SIP and python binded methodsthe full crash repport:
The text was updated successfully, but these errors were encountered: