[Qgis-user] error ogr2layers plugin with unique value polygon symbology
maning sambale
emmanuel.sambale at gmail.com
Thu Jul 29 04:39:37 PDT 2010
Loving this plugin. No more html hackery for simple webmaps.
I am styling my layers in QGIS and use this plugin to generate the
webmap. It works ok for single symbol layers (lines and polygons).
However, when using more complex coloring for choropleth (polygon)
using unique value symbology, I get the following errors below (QGIS
1.4, Mac OSX):
An error has occured while executing Python code:
Traceback (most recent call last):
File "/Users/maning/.qgis//python/plugins/OGR2Layers/ogr2Layers.py",
line 292, in WriteKML
html.extend(style_OGR2Layers.createStyle(layer))
File "/Users/maning/.qgis//python/plugins/OGR2Layers/style_OGR2Layers.py",
line 70, in createStyle
styleMap = layer.renderer().symbolMap()
AttributeError: 'QgsRenderer' object has no attribute 'symbolMap'
Python version:
2.5.1 (r251:54863, Feb 6 2009, 19:02:12)
[GCC 4.0.1 (Apple Inc. build 5465)]
Python path: ['/Applications/Qgis.app/Contents/MacOS/../Resources/python',
'/Users/maning/.qgis//python', '/Users/maning/.qgis//python/plugins',
'/Applications/Qgis.app/Contents/MacOS/../Resources/python/plugins',
'/Library/Frameworks/SQLite3.framework/Versions/3/Python',
'/Library/Frameworks/GDAL.framework/Versions/1.6/Python/site-packages',
'/Library/Python/2.5/site-packages/GDAL-1.5.2-py2.5-macosx-10.5-i386.egg',
'/Library/Python/2.5/site-packages/setuptools-0.6c8-py2.5.egg',
'/Library/Python/2.5/site-packages/python_dateutil-1.4-py2.5.egg',
'/Library/Python/2.5/site-packages/PyYAML-3.05-py2.5.egg',
'/Library/Python/2.5/site-packages/gantt-0.1-py2.5.egg',
'/Library/Python/2.5/site-packages/numpy-1.1.1-py2.5-macosx-10.5-i386.egg',
'/Library/Python/2.5/site-packages/pycairo-1.6.4-py2.5-macosx-10.5-i386.egg',
'/Library/Python/2.5/site-packages/Shapely-1.0.6-py2.5.egg',
'/Library/Python/2.5/site-packages/pyparsing-1.5.2-py2.5.egg',
'/Library/Python/2.5/site-packages/rpy2-2.0.8-py2.5-macosx-10.5-i386.egg',
'/Library/Python/2.5/site-packages/PIL-1.1.7-py2.5-macosx-10.5-i386.egg',
'/Library/Python/2.5/site-packages/docutils-0.6-py2.5.egg',
'/Library/Frameworks/cairo.framework/Versions/1/Python',
'/System/Library/Frameworks/Python.framework/Versions/2.5/lib/python25.zip',
'/System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5',
'/System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/plat-darwin',
'/System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/plat-mac',
'/System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/plat-mac/lib-scriptpackages',
'/System/Library/Frameworks/Python.framework/Versions/2.5/Extras/lib/python',
'/System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/lib-tk',
'/System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/lib-dynload',
'/Library/Python/2.5/site-packages',
'/System/Library/Frameworks/Python.framework/Versions/2.5/Extras/lib/python/PyObjC',
'/Applications/Qgis.app/Contents/Resources/python/plugins/fTools/tools',
'/Users/maning/.qgis/python/plugins/cadtools/tools', '~/.qgis/python',
'/Users/maning/pfua/map_data/mdc_map_series']
--
cheers,
maning
------------------------------------------------------
"Freedom is still the most radical idea of all" -N.Branden
wiki: http://esambale.wikispaces.com/
blog: http://epsg4253.wordpress.com/
------------------------------------------------------
More information about the Qgis-user
mailing list