<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;'>Hi,<br><br>so there is no way to have in output an svg file with all the layer ? because if I understood Mapserver don't support svg file in input and according to the svg spec a png file is only linked by a svg file.<br><br>Regard to the map rendering I use Firefox and if I open the svg file with firefox it works fine. The problem is the html template linked to the map. probably the issue is in the code that I use to visualize the tmp image. <br>&nbsp; <br>&lt;td&gt;<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp; &lt;!-- THE INTERACTIVE, DYNAMICALLY CREATED MAP --&gt;<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp; &lt;input type="image" name="img"
 src="[img]"<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; width="600" height="400"&gt;<br>&nbsp;&lt;/td&gt;<br><br>Do you know what is the correct code that I have to insert in the template to visualize the svg file ?<br><br>thanks <br>Valerio.<br><br>--- <b>Lun 2/6/08, Barend Kobben <i>&lt;kobben@itc.nl&gt;</i></b> ha scritto:<br><blockquote style="border-left: 2px solid rgb(16, 16, 255); margin-left: 5px; padding-left: 5px;">Da: Barend Kobben &lt;kobben@itc.nl&gt;<br>Oggetto: Re: [mapserver-users] insert png image in svg output<br>A: valerio.vianello@yahoo.it, guillaume.sueur@neogeo-online.net<br>Cc: mapserver-users@lists.osgeo.org<br>Data: Lunedì 2 giugno 2008, 16:28<br><br><pre>HI, <br><br>Putting a png raster as a xlink inside svg is the correct way according to<br>the SVG spec. <br><br>If I understand correctly, the SVG opens fine from the tmp dir when opened<br>locally, but
 not when pointing a browser there using http://...? Could it be<br>a permissions problem on the file (or more likely the tmp dir) in other<br>words, is the Web server allowed to serve the path mentioned in your href<br>(/ms4w/tmp/ms_tmp/4843c233_6948_1.png), and does it have anonymous read<br>rights, so the browser can pickj it up and show it..?<br><br>Also, what SVG user agent do you use: FireFox, Opera, IE with a plugin,<br>or...? <br><br><br>-- <br>Barend Köbben<br>International Institute for Geo-Information<br>Sciences and Earth Observation (ITC)<br>PO Box 6<br>7500AA Enschede, The Netherlands<br>+31 (0)53 4874253<br><br><br><br><br>On 02-06-08 15:34, "valerio vianello"<br>&lt;valerio.vianello@yahoo.it&gt; wrote:<br><br>&gt; If I open directly the svg file from the tmp directory it's<br>work...while when<br>&gt; I open the map file there is some problme with the templete, maybe as you<br>said<br>&gt; before in the IMG tag.<br>&gt; <br>&gt; But the
 problem is that I would in output only the svg file and not a svg<br>file<br>&gt; with a link to a png image.<br>&gt; <br>&gt; any suggestion ?<br>&gt; <br>&gt; thanks Valerio<br>&gt; <br>&gt; --- Lun 2/6/08, Guillaume Sueur<br>&amp;lt;guillaume.sueur@neogeo-online.net&amp;gt; ha<br>&gt; scritto:<br>&gt; Da: Guillaume Sueur &amp;lt;guillaume.sueur@neogeo-online.net&amp;gt;<br>&gt; Oggetto: Re: [mapserver-users] insert png image in svg output<br>&gt; A: valerio.vianello@yahoo.it<br>&gt; Cc: mapserver-users@lists.osgeo.org<br>&gt; Data: Lunedì 2 giugno 2008, 13:04<br>&gt; <br>&gt; actually, it's getting a bit clearer now.<br>&gt; what happens when you try to open the svg file in your web browser ?<br>&gt; <br>&gt; Guillaume<br>&gt; <br>&gt; valerio vianello a écrit :<br>&gt; &amp;gt; Hi,<br>&gt; &amp;gt; <br>&gt; &amp;gt; I need that Mapserver give me an image in svg format. I tried to<br>follow<br>&gt; &amp;gt; the instruction in<br>&gt;
 "http://mapserver.gis.umn.edu/docs/howto/svg-howto"<br>&gt; &amp;gt; but I still have some problems. My map file is composed by two<br>layers: a<br>&gt; &amp;gt; raster layer (a png file) a polygon layer. I set in the map the<br>output<br>&gt; &amp;gt; format as svg and I have put in the file this code :<br>&gt; &amp;gt; OUTPUTFORMAT<br>&gt; &amp;gt;     NAME svg<br>&gt; &amp;gt;     DRIVER "svg"<br>&gt; &amp;gt;     MIMETYPE "image/svg+xml"<br>&gt; &amp;gt;     IMAGEMODE PC256<br>&gt; &amp;gt;     EXTENSION "svg"<br>&gt; &amp;gt;  END<br>&gt; &amp;gt; <br>&gt; &amp;gt; In the Mapserver tmp directory there is two file. One file in png<br>format<br>&gt; &amp;gt; with the raster layer and one file in svg format with the polygon<br>layer<br>&gt; &amp;gt; and a link to the png file.<br>&gt; &amp;gt; <br>&gt; &amp;gt; There is a way to insert a real picture in the svg file in place<br>of the<br>&gt; &amp;gt; link ?<br>&gt; &amp;gt; <br>&gt; &amp;gt; The
 following is the code in the svg file.<br>&gt; &amp;gt; <br>&gt; &amp;gt; &amp;lt;?xml version="1.0"<br>encoding="UTF-8"?&amp;gt;<br>&gt; &amp;gt; &amp;lt;svg version="1.1" width="600"<br>&gt; height="400" <br>&gt; &amp;gt; xmlns="http://www.w3.org/2000/svg"<br>&gt; &amp;gt; xmlns:xlink="http://www.w3.org/1999/xlink"&amp;gt;<br>&gt; &amp;gt; <br>&gt; &amp;gt; &amp;lt;!-- START LAYER background --&amp;gt;<br>&gt; &amp;gt; <br>&gt; &amp;gt; &amp;lt;image<br>xlink:href="/ms4w/tmp/ms_tmp/4843c233_6948_1.png"<br>&gt; x="0" y="0" <br>&gt; &amp;gt; width="600" height="400"/&amp;gt;<br>&gt; &amp;gt; <br>&gt; &amp;gt; &amp;lt;!-- START LAYER floors --&amp;gt;<br>&gt; &amp;gt; &amp;lt;path stroke="#202020"<br>stroke-width="1"<br>&gt; style="fill:none" d="M 8 28 L<br>&gt; &amp;gt; 485 35 L 591 129 L 592 161 L 283 162 L 287 364 L 2 364 L 5 29 L 8<br>28<br>&gt; z"/&amp;gt;<br>&gt; &amp;gt; &amp;lt;path stroke="#202020"<br>stroke-width="1"<br>&gt; style="fill:none"
 d="M 240 241 L<br>&gt; &amp;gt; 285 241 L 285 364 L 146 363 L 149 322 L 240 241 z"/&amp;gt;<br>&gt; &amp;gt; &amp;lt;path stroke="#202020"<br>stroke-width="1"<br>&gt; style="fill:none" d="M 3 242 L<br>&gt; &amp;gt; 56 242 L 130 323 L 130 363 L 5 365 L 4 246 L 3 242<br>z"/&amp;gt;<br>&gt; &amp;gt; &amp;lt;path stroke="#202020"<br>stroke-width="1"<br>&gt; style="fill:none" d="M 5 30 L<br>&gt; &amp;gt; 173 31 L 197 40 L 279 126 L 280 137 L 7 138 L 5 30<br>z"/&amp;gt;<br>&gt; &amp;gt; &amp;lt;path stroke="#202020"<br>stroke-width="1"<br>&gt; style="fill:none" d="M 293 38 L<br>&gt; &amp;gt; 338 40 L 416 120 L 417 161 L 289 159 L 293 38 z"/&amp;gt;<br>&gt; &amp;gt; &amp;lt;path stroke="#202020"<br>stroke-width="1"<br>&gt; style="fill:none" d="M 436 41 L<br>&gt; &amp;gt; 482 40 L 557 118 L 558 160 L 434 157 L 436 41 z"/&amp;gt;<br>&gt; &amp;gt; &amp;lt;path stroke="#ffff00"<br>stroke-width="1"<br>&gt; style="fill:none" d="M 11 138 L<br>&gt; &amp;gt; 281 136 L
 283 239 L 241 239 L 161 320 L 130 319 L 55 244 L 9 244<br>L 8 223<br>&gt; &amp;gt; L 11 138 z"/&amp;gt;<br>&gt; &amp;gt; &amp;lt;text x="115" y="234"<br>&gt; font-family="arial-bold" font-size="12pt"<br>&gt; &amp;gt; fill="#841f1f"<br>text-anchor="end"&amp;gt;s.X&amp;lt;/text&amp;gt;<br>&gt; &amp;gt; &amp;lt;text x="466" y="106"<br>&gt; font-family="arial-bold" font-size="12pt"<br>&gt; &amp;gt; fill="#841f1f"<br>text-anchor="end"&amp;gt;s.F&amp;lt;/text&amp;gt;<br>&gt; &amp;gt; &amp;lt;text x="323" y="106"<br>&gt; font-family="arial-bold" font-size="12pt"<br>&gt; &amp;gt; fill="#841f1f"<br>text-anchor="end"&amp;gt;s.E&amp;lt;/text&amp;gt;<br>&gt; &amp;gt; &amp;lt;text x="50" y="90"<br>&gt; font-family="arial-bold" font-size="12pt"<br>&gt; &amp;gt; fill="#841f1f"<br>&gt; text-anchor="end"&amp;gt;s.canteen&amp;lt;/text&amp;gt;<br>&gt; &amp;gt; &amp;lt;text x="35" y="310"<br>&gt; font-family="arial-bold" font-size="12pt"<br>&gt; &amp;gt;
 fill="#841f1f"<br>text-anchor="end"&amp;gt;s.B&amp;lt;/text&amp;gt;<br>&gt; &amp;gt; &amp;lt;text x="185" y="308"<br>&gt; font-family="arial-bold" font-size="12pt"<br>&gt; &amp;gt; fill="#841f1f"<br>text-anchor="end"&amp;gt;s.A&amp;lt;/text&amp;gt;<br>&gt; &amp;gt; &amp;lt;/svg&amp;gt;<br>&gt; &amp;gt; <br>&gt; &amp;gt; Any suggestion<br>&gt; &amp;gt; <br>&gt; &amp;gt; thanks valerio<br>&gt; &amp;gt; <br>&gt; &amp;gt; <br>&gt; &amp;gt;<br>------------------------------------------------------------------------<br>&gt; &amp;gt; Scopri il Blog di Yahoo! Mail<br>&gt; &amp;gt;<br>&gt;<br>&amp;lt;http://us.rd.yahoo.com/mail/it/taglines/yahoo/ymail/SIG=11djrg460/**http%3<br>&gt; A%2F%2Fwww.ymailblogit.com%2Fblog%2F&amp;gt;:<br>&gt; <br>&gt; &amp;gt; trucchi, novità, consigli... e la tua opinione!<br>&gt; &amp;gt; <br>&gt; &amp;gt; <br>&gt; &amp;gt;<br>------------------------------------------------------------------------<br>&gt; &amp;gt; <br>&gt; &amp;gt;
 _______________________________________________<br>&gt; &amp;gt; mapserver-users mailing list<br>&gt; &amp;gt; mapserver-users@lists.osgeo.org<br>&gt; &amp;gt; http://lists.osgeo.org/mailman/listinfo/mapserver-users<br>&gt; <br>&gt; --<br>&gt; <br>&gt; <br>&gt;       ___________________________________<br>&gt; Scopri il Blog di Yahoo! Mail: trucchi, novità, consigli... e la tua<br>opinione!<br>&gt; http://www.ymailblogit.com/blog/<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>International Institute for Geo-Information Science and Earth Observation (ITC)<br>Chamber of Commerce: 410 27 560<br><br>E-mail disclaimer<br>The information in this e-mail, including any attachments, is intended for the<br>addressee only. If you are not the intended recipient, you are hereby notified<br>that any disclosure,
 copying, distribution or action in relation to the content<br>of this information is strictly prohibited. If you have received this e-mail by<br>mistake, please delete the message and any attachment and inform the sender by<br>return e-mail. ITC accepts no liability for any error or omission in the<br>message content or for damage of any kind that may arise as a result of e-mail<br>transmission.</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>