[Qgis-developer] Access violation - no RTTI data
Tom Chadwin
tom.chadwin at nnpa.org.uk
Sat Oct 15 04:26:47 PDT 2016
Sure:
if isinstance(layer.rendererV2(), QgsCategorizedSymbolRendererV2):
symbol = layer.rendererV2().categories()[0].symbol()
It's here:
https://github.com/tomchadwin/qgis2web/blob/leafletRefactor/leafletScriptStrings.py#L376
To recreate:
1. Install the qgis2web leafletRefactor branch from Github
2. Open a point layer
3. Select a categorized renderer
4. Use an SVG marker instead of a simple marker
5. Start qgis2web
6. Click "Leaflet" to switch to Leaflet output
That triggers the error for me. Brief searching suggests something to do
with losing a reference to the canvas or ToC, or something. I'm on Win7 x64,
64-bit QGIS from OSGeo4W installer, 2.16.3 (also tried with an elderly
master2 - 0497e4a).
Any help gratefully received - I'm not experienced at debugging lower-level
issues than Python errors...
Thanks
Tom
-----
Buy Pie Spy: Adventures in British pastry 2010-11 on Amazon
--
View this message in context: http://osgeo-org.1560.x6.nabble.com/Access-violation-no-RTTI-data-tp5290830p5290833.html
Sent from the Quantum GIS - Developer mailing list archive at Nabble.com.
More information about the Qgis-developer
mailing list