[Mapserver-users] mapscript python

Sven Jacobi jacobi@dfki.de
Wed, 11 Dec 2002 14:50:26 +0100


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

_______________________________________________
Mapserver-users mailing list
Mapserver-users@lists.gis.umn.edu
http://lists.gis.umn.edu/mailman/listinfo/mapserver-users