There’s not a straight mapping of mapfile parameter syntax to mapscript syntax, especially where a mapfile parameter definition impacts multiple internal values. Try:
anewmap.width = 640 anewmap.height = 480 or use the setSize() method. Steve From: [email protected] [mailto:[email protected]] On Behalf Of Tonton Sent: Wednesday, November 16, 2011 8:44 AM To: mapserver-users Subject: [mapserver-users] mapscript help hello i am trying to use python mapscript to generate map file and it seems to be great but some synthax is not understanding by me .:( so to set with one argument is not complex like anewmap.maxsize = 2000 it is working but for anewmap.size = 640 480 or (640,480) or "640 480" the result is SIZE -1 -1 the trouble for extent to and write projection with init: epsg=4326 ... So is the sample for that or API reference more complete for the syntax for python ? either than the mapserver guide ? regards T.
_______________________________________________ mapserver-users mailing list [email protected] http://lists.osgeo.org/mailman/listinfo/mapserver-users
