<table cellspacing='0' cellpadding='0' border='0' background='none' style='font-family:arial;font-size:10pt;color:rgb(51, 51, 51);background-color:rgb(255, 255, 255);width:100%;'><tr><td valign='top' style='font: inherit;'>If I open directly the svg file from the tmp directory it's work...while when I open the map file there is some problme with the templete, maybe as you said before in the IMG tag.<br><br>But the problem is that I would in output only the svg file and not a svg file with a link to a png image.<br><br>any suggestion ?<br><br>thanks Valerio<br><br>--- <b>Lun 2/6/08, Guillaume Sueur <i>&lt;guillaume.sueur@neogeo-online.net&gt;</i></b> ha scritto:<br><blockquote style="border-left: 2px solid rgb(16, 16, 255); margin-left: 5px; padding-left: 5px;">Da: Guillaume Sueur &lt;guillaume.sueur@neogeo-online.net&gt;<br>Oggetto: Re: [mapserver-users] insert png image in svg output<br>A: valerio.vianello@yahoo.it<br>Cc:
 mapserver-users@lists.osgeo.org<br>Data: Lunedì 2 giugno 2008, 13:04<br><br><pre>actually, it's getting a bit clearer now.<br>what happens when you try to open the svg file in your web browser ?<br><br>Guillaume<br><br>valerio vianello a écrit :<br>&gt; Hi,<br>&gt; <br>&gt; I need that Mapserver give me an image in svg format. I tried to follow <br>&gt; the instruction in<br>"http://mapserver.gis.umn.edu/docs/howto/svg-howto" <br>&gt; but I still have some problems. My map file is composed by two layers: a <br>&gt; raster layer (a png file) a polygon layer. I set in the map the output <br>&gt; format as svg and I have put in the file this code :<br>&gt; OUTPUTFORMAT<br>&gt;     NAME svg<br>&gt;     DRIVER "svg"<br>&gt;     MIMETYPE "image/svg+xml"<br>&gt;     IMAGEMODE PC256<br>&gt;     EXTENSION "svg"<br>&gt;  END<br>&gt; <br>&gt; In the Mapserver tmp directory there is two file. One file in png format <br>&gt; with the raster layer and one file in
 svg format with the polygon layer <br>&gt; and a link to the png file.<br>&gt; <br>&gt; There is a way to insert a real picture in the svg file in place of the <br>&gt; link ?<br>&gt; <br>&gt; The following is the code in the svg file.<br>&gt; <br>&gt; &lt;?xml version="1.0" encoding="UTF-8"?&gt;<br>&gt; &lt;svg version="1.1" width="600"<br>height="400" <br>&gt; xmlns="http://www.w3.org/2000/svg" <br>&gt; xmlns:xlink="http://www.w3.org/1999/xlink"&gt;<br>&gt; <br>&gt; &lt;!-- START LAYER background --&gt;<br>&gt; <br>&gt; &lt;image xlink:href="/ms4w/tmp/ms_tmp/4843c233_6948_1.png"<br>x="0" y="0" <br>&gt; width="600" height="400"/&gt;<br>&gt; <br>&gt; &lt;!-- START LAYER floors --&gt;<br>&gt; &lt;path stroke="#202020" stroke-width="1"<br>style="fill:none" d="M 8 28 L <br>&gt; 485 35 L 591 129 L 592 161 L 283 162 L 287 364 L 2 364 L 5 29 L 8 28<br>z"/&gt;<br>&gt; &lt;path stroke="#202020" stroke-width="1"<br>style="fill:none" d="M 240 241 L <br>&gt; 285
 241 L 285 364 L 146 363 L 149 322 L 240 241 z"/&gt;<br>&gt; &lt;path stroke="#202020" stroke-width="1"<br>style="fill:none" d="M 3 242 L <br>&gt; 56 242 L 130 323 L 130 363 L 5 365 L 4 246 L 3 242 z"/&gt;<br>&gt; &lt;path stroke="#202020" stroke-width="1"<br>style="fill:none" d="M 5 30 L <br>&gt; 173 31 L 197 40 L 279 126 L 280 137 L 7 138 L 5 30 z"/&gt;<br>&gt; &lt;path stroke="#202020" stroke-width="1"<br>style="fill:none" d="M 293 38 L <br>&gt; 338 40 L 416 120 L 417 161 L 289 159 L 293 38 z"/&gt;<br>&gt; &lt;path stroke="#202020" stroke-width="1"<br>style="fill:none" d="M 436 41 L <br>&gt; 482 40 L 557 118 L 558 160 L 434 157 L 436 41 z"/&gt;<br>&gt; &lt;path stroke="#ffff00" stroke-width="1"<br>style="fill:none" d="M 11 138 L <br>&gt; 281 136 L 283 239 L 241 239 L 161 320 L 130 319 L 55 244 L 9 244 L 8 223 <br>&gt; L 11 138 z"/&gt;<br>&gt; &lt;text x="115" y="234"<br>font-family="arial-bold" font-size="12pt" <br>&gt; fill="#841f1f"
 text-anchor="end"&gt;s.X&lt;/text&gt;<br>&gt; &lt;text x="466" y="106"<br>font-family="arial-bold" font-size="12pt" <br>&gt; fill="#841f1f" text-anchor="end"&gt;s.F&lt;/text&gt;<br>&gt; &lt;text x="323" y="106"<br>font-family="arial-bold" font-size="12pt" <br>&gt; fill="#841f1f" text-anchor="end"&gt;s.E&lt;/text&gt;<br>&gt; &lt;text x="50" y="90"<br>font-family="arial-bold" font-size="12pt" <br>&gt; fill="#841f1f"<br>text-anchor="end"&gt;s.canteen&lt;/text&gt;<br>&gt; &lt;text x="35" y="310"<br>font-family="arial-bold" font-size="12pt" <br>&gt; fill="#841f1f" text-anchor="end"&gt;s.B&lt;/text&gt;<br>&gt; &lt;text x="185" y="308"<br>font-family="arial-bold" font-size="12pt" <br>&gt; fill="#841f1f" text-anchor="end"&gt;s.A&lt;/text&gt;<br>&gt; &lt;/svg&gt;<br>&gt; <br>&gt; Any suggestion<br>&gt; <br>&gt; thanks valerio<br>&gt; <br>&gt; <br>&gt; ------------------------------------------------------------------------<br>&gt; Scopri il Blog di Yahoo! Mail
 <br>&gt;<br>&lt;http://us.rd.yahoo.com/mail/it/taglines/yahoo/ymail/SIG=11djrg460/**http%3A%2F%2Fwww.ymailblogit.com%2Fblog%2F&gt;:<br><br>&gt; trucchi, novità, consigli... e la tua opinione!<br>&gt; <br>&gt; <br>&gt; ------------------------------------------------------------------------<br>&gt; <br>&gt; _______________________________________________<br>&gt; mapserver-users mailing list<br>&gt; mapserver-users@lists.osgeo.org<br>&gt; http://lists.osgeo.org/mailman/listinfo/mapserver-users<br><br>--</pre></blockquote></td></tr></table><br>





      <hr size=1><font face="Arial" size="2">Scopri il <a href="http://us.rd.yahoo.com/mail/it/taglines/yahoo/ymail/SIG=11djrg460/**http%3A%2F%2Fwww.ymailblogit.com%2Fblog%2F"> Blog di Yahoo! Mail</a>: trucchi, novità, consigli... e la tua opinione!</font>