[Mapserver-users] mapscript python
Sven Jacobi
jacobi at dfki.de
Wed Dec 11 05:50:26 PST 2002
Hi,
I've got problems when generating a map from a given mapfile.
It works fine as long I add several layers of distinguish types,
but when I want to add a picture (*.tif) as layer, I can't
do it with python/mapscript...
Below there's a small example code, did I forget to define or
declare some functionality?
import sys
from mapscript import *
def drawmap():
mymap = mapObj("/home/jacobi/...")
mymap.width=600
mymap.height=400
myimage=mymap.draw()
#out = mymap.save("blies")
out = myimage.saveImage("blies.png",MS_PNG,50,0,50)
return out
drawmap()
Any hints???
Thanks in forward,
Cheers,
Sven
More information about the MapServer-users
mailing list