<br><div class="gmail_quote">On Thu, Dec 1, 2011 at 2:51 PM, Frank Broniewski <span dir="ltr"><<a href="mailto:brfr@metrico.lu">brfr@metrico.lu</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;">
Am 01.12.2011 13:43, schrieb Tonton:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;"><div><div></div><div class="h5">
hello<br>
i try this<br>
<br></div></div></blockquote>
map_obj.web.metadata.set('foo'<u></u>, 'bar')<br>
<br>
hth<br>
<br>
Frank<br></blockquote><div><br>Thanks it's a good way so it's work with no creation of webObj and there metadata<br><br><br> amapfile.web.maxscaledenom = 1550000<br> amapfile.web.minscaledenom = 1000<br> amapfile.web.imagepath="/var/www/tmp/"<br>
amapfile.web.imageurl="../tmp/"<br> #aamapfile.webdef.metadata = mapscript.hashTableObj()<br> amapfile.web.metadata.set("ows_TITLE", title)<br> u = get_object_or_404(Param, libel_prm=settings.LIBELEDESPARAM)<br>
mapServerUrl = u.sitepath_prm #<a href="http://site/mapserv">http://site/mapserv</a>?<br> mapfilepath = u.mapfilepath_prm #/media/mapfile/<br> mapPathToWrite ="mapfile/"<br> amapfile.web.metadata.set("ows_ONLINERESOURCE", mapServerUrl+"map="+mapfilepath+layer.name_lyr+".map")<br>
<br> amapfile.web.metadata.set("owsAbstract" , layer.libel_lyr)<br> amapfile.web.metadata.set("owsSrs", "EPSG:"+str(projection)) <br> amapfile.web.metadata.set("ows_enable_request" , "*") <br>
amapfile.web.log = "../tmp/web.log"<br><br>regards<br>T.<br></div></div>