[mapserver-users] mapscript help

Lime, Steve D (DNR) Steve.Lime at state.mn.us
Wed Nov 16 08:12:00 PST 2011


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: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] 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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20111116/503fb33a/attachment.htm>


More information about the MapServer-users mailing list