[mapserver-users] insert png image in svg output

valerio vianello valerio.vianello at yahoo.it
Tue Jun 3 03:45:37 EDT 2008


Ok thanks now it works but......

little background....To do my example I started from Mapserver tutorial

(example 2.1:  http://biometry.gis.umn.edu/cgi-bin/mapserv.exe?map=/ms4w/apps/tutorial/htdocs/example2.map&layer=states&zoom=0&mode=browse&root=/tutorial&program=/cgi-bin/mapserv.exe&map_web=template+example2-1.html)

With png output it works fine. When I changed the output format to svg the zoom setting is changed.

Before I could click on the image to zoom in and zoom out now with svg output format to zoom in and zoom out I have to click on refresh button because the image is no longer possible click on the image. 
The same thing happen when I try to execute a query on a layer.

thanks for your help.
Valerio 



--- Mar 3/6/08, Barend Kobben <kobben at itc.nl> ha scritto:
Da: Barend Kobben <kobben at itc.nl>
Oggetto: Re: [mapserver-users] insert png image in svg output
A: valerio.vianello at yahoo.it, guillaume.sueur at neogeo-online.net
Cc: mapserver-users at lists.osgeo.org
Data: Martedì 3 giugno 2008, 08:37

> 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.

You can put a PNG inline inside SVG, but I do not see how that would help
you. I think the problem is that you use a Template, where the SVG gets
inserted into the HTML as an IMG object. Although I think it works sometimes
in some User Agents, that is not the correct way. Remember that an SVG
'picture' is a piece of XML to be interpreted, not a ratser image you
can
just render directly to screen. So, if used inside (X)HTML it should be
embedded properly, eg. like:

<object data="sample.svgz" type="image/svg+xml"
        width="400" height="300">
    <embed src="sample.svgz" type="image/svg+xml"
            width="400" height="300" />
</object>

See http://wiki.svg.org/SVG_and_HTML for more possibilities and explanation.


-- 
Barend Köbben
International Institute for Geo-Information
Sciences and Earth Observation (ITC)
PO Box 6
7500AA Enschede, The Netherlands
+31 (0)53 4874253



International Institute for Geo-Information Science and Earth Observation (ITC)
Chamber of Commerce: 410 27 560

E-mail disclaimer
The information in this e-mail, including any attachments, is intended for the
addressee only. If you are not the intended recipient, you are hereby notified
that any disclosure, copying, distribution or action in relation to the content
of this information is strictly prohibited. If you have received this e-mail by
mistake, please delete the message and any attachment and inform the sender by
return e-mail. ITC accepts no liability for any error or omission in the
message content or for damage of any kind that may arise as a result of e-mail
transmission.


      ___________________________________ 
Scopri il Blog di Yahoo! Mail: trucchi, novità, consigli... e la tua opinione!
http://www.ymailblogit.com/blog/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/mapserver-users/attachments/20080603/b87b4809/attachment.html


More information about the mapserver-users mailing list