[Mapserver-users] python mapscript
Sven Jacobi
jacobi at dfki.de
Thu Dec 12 00:50:12 PST 2002
Hello,
I'm using Mapserve3r inside Zope and want to create
several layers. As long as I use the normal shapefiles
as DATA in my mapfile this works fine.
But when I want to have a map given from a "picture" (tif)
I get "Bus errors" from python.
Below is a small piece of code, have I forget to call some
functions?
def drawmap():
mymap = mapObj("/home/jacobi/...")
mymap.width=600
mymap.height=400
myimage=mymap.draw()
out = myimage.saveImage("blies.png",MS_PNG,50,0,50)
return out
drawmap()
Any ideas or hints?
Thanks in forward,
Cheers,
Sven
More information about the MapServer-users
mailing list