[mapserver-users] mapscript help

Tonton to.tonton at gmail.com
Thu Nov 17 04:33:42 EST 2011


On Wed, Nov 16, 2011 at 5:12 PM, Lime, Steve D (DNR) <Steve.Lime at state.mn.us
> wrote:

>  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****
>
> ** **
>
> *
> *
>
> **
>
yes thanks

this is working

    projection = getProjfromTable(f_table_name) #return epsg number
ex:"4326"
    strproj= "init=epsg:"+str(projection)
    aproj = mapscript.projectionObj(strproj)
 # associer la projection a la carte
    amapfile.setProjection(strproj)

still need help 4 web  stay empty
metadata
and normally for class and layer ;o)

regards
T.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/mapserver-users/attachments/20111117/801a8aa1/attachment.html


More information about the mapserver-users mailing list