<br><br><div class="gmail_quote">On Wed, Nov 16, 2011 at 5:12 PM, Lime, Steve D (DNR) <span dir="ltr"><<a href="mailto:Steve.Lime@state.mn.us">Steve.Lime@state.mn.us</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<div link="blue" vlink="purple" lang="EN-US">
<div>
<p class="MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125);">There’s not a straight mapping of mapfile parameter syntax to mapscript syntax, especially where a mapfile parameter definition impacts multiple internal values.
Try:<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125);"><u></u> <u></u></span></p>
<p class="MsoNormal"> anewmap.width = 640<u></u><u></u></p>
<p class="MsoNormal"> anewmap.height = 480<span style="font-size: 11pt; color: rgb(31, 73, 125);"><u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125);"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125);">or use the setSize() method.<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125);"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125);">Steve<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125);"><u></u> <u></u></span></p>
<div style="border-width: 1pt medium medium; border-style: solid none none; border-color: rgb(181, 196, 223) -moz-use-text-color -moz-use-text-color; padding: 3pt 0in 0in;">
<p class="MsoNormal"><b><span style="font-size: 10pt;"><br></span></b></p><p class="MsoNormal"><b><span style="font-size: 10pt;"></span></b></p></div></div></div></blockquote><div>yes thanks <br><br>this is working <br><br>
projection = getProjfromTable(f_table_name) #return epsg number ex:"4326"<br> strproj= "init=epsg:"+str(projection) <br> aproj = mapscript.projectionObj(strproj)<br> # associer la projection a la carte <br>
amapfile.setProjection(strproj)<br><br>still need help 4 web stay empty<br>metadata <br>and normally for class and layer ;o) <br></div></div><br>regards <br>T. <br>