[Qgis-developer] Mapfile Plugin

John C. Tull jctull at gmail.com
Sun Oct 4 13:32:07 EDT 2009


Hi Borys,

I was intrigued by the new mapfile plugin, so gave it a test run this  
morning on a mapserver file I have. Unfortunately, it threw an error  
and was not able to load the layers. I cannot tell which layer is  
causing the problem, but even selecting a single layer from the list  
kicks out the same error. Any ideas on how to fix this? I'm on OS X  
10.6.1 and using William Kyngesburye's mapscript framework. Import  
mapscript from a python shell appears to load the module fine.

Here is the output:

An error has occured while executing Python code:

Traceback (most recent call last):
   File "/Users/jctull/.qgis//python/plugins/mapfile_tools/ 
mapfile_tools.py", line 58, in runLayer
     self.mapfileLayer.run()
   File "/Users/jctull/.qgis//python/plugins/mapfile_tools/ 
mapfile_layer.py", line 82, in run
     self.renderMapfile()
   File "/Users/jctull/.qgis//python/plugins/mapfile_tools/ 
mapfile_layer.py", line 111, in renderMapfile
     img = self.maprenderer.render(bbox, (renderer.width(),  
renderer.height()))
   File "/Users/jctull/.qgis//python/plugins/mapfile_tools/ 
mapfile_renderer.py", line 52, in render
     mapImage = wms.draw()
   File "/Library/Python/2.6/site-packages/mapscript.py", line 1421,  
in draw
     def draw(*args): return _mapscript.mapObj_draw(*args)
MapServerError: msDrawMap(): Image handling error. Unable to  
initialize image.
msCalculateScale(): General error message. Invalid image extent,  
minx=0.000000, miny=0.000000, maxx=0.000000, maxy=0.000000.

Python version:
2.6.1 (r261:67515, Jul  7 2009, 23:51:51)
[GCC 4.2.1 (Apple Inc. build 5646)]

Python path:['/Applications/qgis1.4.0.app/Contents/MacOS/share/qgis/ 
python', '/Users/jctull/.qgis//python/plugins', '/Applications/ 
qgis1.4.0.app/Contents/MacOS/share/qgis/python/plugins', '/Library/ 
Frameworks/SQLite3.framework/Versions/3/Python/2.6/site-packages', '/ 
Library/Frameworks/GEOS.framework/Versions/3/Python/2.6/site-packages/ 
geos', '/Library/Frameworks/GDAL.framework/Versions/1.6/Python/2.6/ 
site-packages', '/Library/Python/2.6/site-packages/setuptools-0.6c9- 
py2.6.egg', '/Library/Python/2.6/site-packages/OWSLib-0.3.1- 
py2.6.egg', '/Library/Python/2.6/site-packages/py2app-0.3.6- 
py2.6.egg', '/Library/Python/2.6/site-packages/lxml-2.2.2-py2.6- 
macosx-10.6-universal.egg', '/Library/Python/2.6/site-packages/ 
nose-0.11.1-py2.6.egg', '/Library/Python/2.6/site-packages/ 
PythonCard-0.8.2-py2.6.egg', '/Library/Python/2.6/site-packages/ 
pyamg-1.0.0-py2.6-macosx-10.6-universal.egg', '/Library/Python/2.6/ 
site-packages/pyparsing-1.5.2-py2.6.egg', '/Library/Python/2.6/site- 
packages/scipy-0.7.1-py2.6-macosx-10.6-universal.egg', '/Library/ 
Python/2.6/site-packages/rpy2-2.0.7-py2.6-macosx-10.6-universal.egg',  
'/System/Library/Frameworks/Python.framework/Versions/2.6/lib/ 
python26.zip', '/System/Library/Frameworks/Python.framework/Versions/ 
2.6/lib/python2.6', '/System/Library/Frameworks/Python.framework/ 
Versions/2.6/lib/python2.6/plat-darwin', '/System/Library/Frameworks/ 
Python.framework/Versions/2.6/lib/python2.6/plat-mac', '/System/ 
Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/plat- 
mac/lib-scriptpackages', '/System/Library/Frameworks/Python.framework/ 
Versions/2.6/Extras/lib/python', '/System/Library/Frameworks/ 
Python.framework/Versions/2.6/lib/python2.6/lib-tk', '/System/Library/ 
Frameworks/Python.framework/Versions/2.6/lib/python2.6/lib-old', '/ 
System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/ 
lib-dynload', '/Library/Python/2.6/site-packages', '/System/Library/ 
Frameworks/Python.framework/Versions/2.6/Extras/lib/python/PyObjC', '/ 
System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/ 
python/wx-2.8-mac-unicode', '/Applications/qgis1.4.0.app/Contents/ 
MacOS/share/qgis/python/plugins/fTools/tools', '/Users/jctull/.qgis/ 
python/plugins/GdalTools/tools']
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/qgis-developer/attachments/20091004/6576023b/attachment.html


More information about the Qgis-developer mailing list