[mapserver-users] RE: mapserver 6.0.1 and cairo SVG

Raivo Alla snaperski at gmail.com
Wed Sep 14 06:37:23 PDT 2011


Thanks!
A step forward!

This way it suggest me to declare TEMPLATE in the WEB section. Hence the
question: how should I put this SVG output file in html template?
SVG file itself was generated in TMP folder, filename contains randomly
generated numbers...
I would like the browser to display the SVG output on the run.

Thanks again,
Raivo


Hi,

Works as an url encoded format=image%2Fsvg%2Bxml from browser.

I do not know if this is how it should be, though.

-Jukka Rahkonen-
________________________________
Lähettäjä: mapserver-users-bounces at
lists.osgeo.org[mapserver-users-bounces at
lists.osgeo.org] käyttäjän Raivo Alla [snaperski at gmail.com] puolesta
Lähetetty: 14. syyskuuta 2011 9:47
Vastaanottaja: mapserver-users at lists.osgeo.org
Aihe: [mapserver-users] mapserver 6.0.1 and cairo SVG

Hello!

Friends, I have some issues with getting SVG output working here...
I have latest MS4W install:
MapServer version 6.0.1 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=KML
SUPPORTS=PROJ
SUPPORTS=AGG SUPPORTS=CAIRO SUPPORTS=FREETYPE SUPPORTS=ICONV
SUPPORTS=FRIBIDI
SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER
SUPPORTS=WFS_CLIENT
SUPPORTS=WCS_SERVER SUPPORTS=SOS_SERVER SUPPORTS=FASTCGI SUPPORTS=THREADS
SUPPORTS=GEOS
INPUT=JPEG INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE
I don't see  OUTPUT=SVG there, but I guess its normal, since this MS version
has non-native (Cairo) SVG support.

Well, but even if I have configured in my mapfile the outputformat like
that:
IMAGETYPE svg
OUTPUTFORMAT
 NAME "svg"
 DRIVER CAIRO/SVG
 MIMETYPE "image/svg+xml"
 IMAGEMODE RGB
 EXTENSION "svg"
END

...and get correct GetCapabilities request, where SVG format is listed as
first, then I still cant see SVG format listed when
using ArcMap as WMS-client (there are PNG24, JPEG and PNG8 listed though).
Also when I send GetMap request (setting FORMAT=image/svg+xml) through
browser, I get response:
msWMSLoadGetMapParams(): Image handling error. Unsupported output format
(image/svg xml).

Where should I dig into?


Thank you in advance,
Raivo Alla,
Estonia
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20110914/3d38b6ea/attachment.htm>


More information about the MapServer-users mailing list