[Qgis-developer] symbolForFeature(feat) causes minidump in converted 2.5d layers

Matthias Kuhn matthias at opengis.ch
Tue Mar 8 02:40:07 PST 2016


Hi Tom,

Quote from the API docs:

> Must be called between startRender()
<http://qgis.org/api/classQgsFeatureRendererV2.html#ab4513895a219eb24e803fe9de34c230b> and stopRender()
<http://qgis.org/api/classQgsFeatureRendererV2.html#a704fb69e3906576444b87e28084d2235> calls.


http://qgis.org/api/classQgsFeatureRendererV2.html#afc251a5e609aac561ce622d328b87289

Cheers
Matthias

On 03/07/2016 04:35 PM, Tom Chadwin wrote:
> The following code works for a layer which has the 2.5d renderer selected:
>
> feats = layer.getFeatures()
> for feat in feats:
>     symbol = layer.rendererV2().symbolForFeature(feat)
>
> This still works if I change the layer to a single symbol renderer. However,
> if I change it to a categorized symbol renderer, and classify on one field
> (random colours, nothing else in the style changed from the 2.5d), the last
> line above causes a mindump.
>
> Can anyone help?
>
>
>
> --
> View this message in context: http://osgeo-org.1560.x6.nabble.com/symbolForFeature-feat-causes-minidump-in-converted-2-5d-layers-tp5254907.html
> Sent from the Quantum GIS - Developer mailing list archive at Nabble.com.
> _______________________________________________
> Qgis-developer mailing list
> Qgis-developer at lists.osgeo.org
> List info: http://lists.osgeo.org/mailman/listinfo/qgis-developer
> Unsubscribe: http://lists.osgeo.org/mailman/listinfo/qgis-developer

-- 
Matthias Kuhn
OPENGIS.ch - https://www.opengis.ch
Spatial • (Q)GIS • PostGIS • Open Source

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-developer/attachments/20160308/a8620d1d/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: OpenPGP digital signature
URL: <http://lists.osgeo.org/pipermail/qgis-developer/attachments/20160308/a8620d1d/attachment-0001.sig>


More information about the Qgis-developer mailing list