Bug #3
Mapfile layer properties causes error
| Status: | Closed | Start Date: | 12/07/2010 | |
|---|---|---|---|---|
| Priority: | Normal | Due date: | ||
| Assigned to: | % Done: | 0% |
||
| Category: | - | |||
| Target version: | 1.0 | |||
| Patch supplied: |
Description
Hi
When I try to use the plugin it does not render anything for my mapfile (which works fine from e.g. openlayers wms). When I try to right click on the layer and view properties, I get the following error:
An error has occured while executing Python code:
Traceback (most recent call last):
File "/home/timlinux/.qgis/python/plugins/mapfile_tools/mapfile_plugin_layer_type.py", line 38, in showLayerProperties
layer.showProperties()
File "/home/timlinux/.qgis/python/plugins/mapfile_tools/mapfile_layer.py", line 199, in showProperties
dlg.updateInfo()
File "/home/timlinux/.qgis/python/plugins/mapfile_tools/mapfile_layer_dialog.py", line 48, in updateInfo
maprenderer = MapfileRenderer(str(mapfile))
TypeError: __init__() takes exactly 3 arguments (2 given)
Python version:
2.6.6 (r266:84292, Sep 15 2010, 16:41:53)
[GCC 4.4.5]
QGIS version:
1.7.0-Trunk Trunk, 14858
Python path: ['/home/timlinux/.qgis/python/plugins/cswclient', '/home/timlinux/apps/share/qgis/python', '/home/timlinux/.qgis/python', '/home/timlinux/.qgis/python/plugins', '/home/timlinux/apps/share/qgis/python/plugins', '/usr/lib/python2.6', '/usr/lib/python2.6/plat-linux2', '/usr/lib/python2.6/lib-tk', '/usr/lib/python2.6/lib-old', '/usr/lib/python2.6/lib-dynload', '/usr/lib/python2.6/dist-packages', '/usr/lib/python2.6/dist-packages/PIL', '/usr/lib/python2.6/dist-packages/gst-0.10', '/usr/lib/pymodules/python2.6', '/usr/lib/python2.6/dist-packages/gtk-2.0', '/usr/lib/pymodules/python2.6/gtk-2.0', '/usr/lib/python2.6/dist-packages/wx-2.8-gtk2-unicode', '~/.qgis/python', '/home/timlinux/apps/share/qgis/python/plugins/fTools/tools', '.']
History
Updated by Pirmin Kalberer over 1 year ago
- Status changed from New to Closed
If an empty map is displayed without any error messages, usually a wrong extent was requested because of different projections in QGIS and the mapfile. I've updated the plugin to display the requestet extent.
The exception is fixed in the new version as well.