Thanks Nicol, but we already solved it. It was a configuration setting that we have used wrongly: Commenting out # "wms_getmap_formatlist" "image/svg+xml,image/png"
From the map file did the trick. Not sure why or what is wrong about that line... Kind regards, Tim-Hinnerk Heuer Landcare Research, Palmerston North -----Original Message----- From: Nicol Hermann [mailto:[email protected]] Sent: Wednesday, 27 April 2011 4:01 p.m. To: Tim Heuer Subject: Re: [mapserver-users] OUTPUTFORMAT svg Hi Tim, Is this link of any help? http://mapserver.org/output/svg.html I saw that you are using WMS requests. The document states: "WMS layers are not yet supported." Not sure of the documentations is outdated as it is last updated in December 2008. Best regards Nicol Am Mittwoch, den 27.04.2011, 12:13 +1200 schrieb Tim Heuer: > Hi List, > > > > For quite a few days I am now stuck on this problem, and since I > haven’t found it with searching the web, here a question: > > > > We have a relatively complex setup here. 2 MapServer versions. One is > the standard 5.6.6 and the other one, we got a SVN snapshot: > > > > $ svn info > > Path: . > > URL: https://svn.osgeo.org/mapserver/trunk/mapserver > > Repository Root: https://svn.osgeo.org/mapserver > > Repository UUID: 7532c77e-422f-0410-93f4-f0b67bdd69e2 > > Revision: 10907 > > Node Kind: directory > > Schedule: normal > > Last Changed Author: tbonfort > > Last Changed Rev: 10907 > > Last Changed Date: 2011-01-26 06:07:46 +1300 (Wed, 26 Jan 2011) > > > > We use the “normal” release version for our mapping application in the > browser and the “SVN” version for printing SVG output. We decided to > do it this way, because that is how we got the best looking maps with > help of the MapFish print module. > > > > We have 2 map files (more but irrelevant for this), one for the base > map and one for science data. In both we have this: > > > > IMAGETYPE png > > #... > > OUTPUTFORMAT > > NAME "aggpng24" > > DRIVER AGG/PNG > > MIMETYPE "image/png" > > IMAGEMODE RGB > > EXTENSION "png" > > FORMATOPTION "INTERLACE=OFF" > > END > > OUTPUTFORMAT > > NAME svg > > MIMETYPE "image/svg+xml" > > DRIVER CAIRO/SVG > > #FORMATOPTION "COMPRESSED_OUTPUT=TRUE" > > FORMATOPTION "FULL_RESOLUTION=TRUE" > > END > > #... > > WEB > > IMAGEPATH "/var/www/tmp/" > > IMAGEURL "/tmp/" > > END > > # layer definitions > > > > > > Our requests look like this: > > http://ourwmsserver/cgi-bin/mapserv.svn?BBOX=175.90352%2C-38.04814% > 2C176.34756% > 2C-37.560966&HEIGHT=1024&WIDTH=933&map_resolution=72&CLASS=1%2C2%2C3% > 2C4%2C6%2C7%2C8&SERVICE=WMS&REQUEST=GetMap&MAP=%2Fopt%2Fmapserver% > 2Fmapfiles%2Flri.map&TRANSPARENT=true&VERSION=1.1.1&FORMAT=image%2Fsvg > %2Bxml&format_options=dpi%3A72&LAYERS=luc_main&SRS=EPSG%3A4326 > > Result: SVG XML > > > > http://ourwmsserver/cgi-bin/mapserv.svn?BBOX=175.90352%2C-38.04814% > 2C176.34756% > 2C-37.560966&HEIGHT=1024&WIDTH=933&TRANSPARENT=true&map_resolution=72&VERSION=1.1.1&FORMAT=image%2Fsvg%2Bxml&SERVICE=WMS&map=%2Fopt%2Fmapserver%2Fmapfiles%2Fscenz_topo_new.map&format_options=dpi%3A72&LAYERS=coastpoly&REQUEST=GetMap&STYLES=&SRS=EPSG%3A4326 > > Result: PNG image > > > > We would like to get SVG output in both cases. The funny thing is that > we’re using the same MapServer instance, there are no errors reported > and in one case we get SVG output (as desired) and in the other case > we get a PNG with every request. If we however request a JPG in that > case, we get an error. I also looked at the GetCapabilities output and > found image/svg+xml there, but it does not output that for us. > > Another thing I’ve tried is to change to > OUTPUTFORMAT svg > in which case we always get an SVG, even when requesting a PNG. A > solution for us could be to define 2 .map files for each layer, but > that would be a maintenance nightmare with the amount of .map files we > have already. Also, it seems sensible to me that multiple > OUTPUTFORMATs are allowed and it should really work. > > > > I realise, that the “SVN” version we are using might not be totally > bug free. The problem is though, that our map files do not work with > the MapServer 6.0 beta 5 version, because there were a lot of changes > in the way map files are handled in version 6. > > > > We need to get this working ASAP, so any help or comments are greatly > appreciated. > > > > Thank you! > > > > Kind regards, > > Tim-Hinnerk Heuer > > > > Landcare Research, Palmerston North > > > > > > > ______________________________________________________________________ > Please consider the environment before printing this email > Warning: This electronic message together with any attachments is > confidential. If you receive it in error: (i) you must not read, use, > disclose, copy or retain it; (ii) please contact the sender > immediately by reply email and then delete the emails. > The views expressed in this email may not be those of Landcare > Research New Zealand Limited. http://www.landcareresearch.co.nz > _______________________________________________ > mapserver-users mailing list > [email protected] > http://lists.osgeo.org/mailman/listinfo/mapserver-users Please consider the environment before printing this email Warning: This electronic message together with any attachments is confidential. If you receive it in error: (i) you must not read, use, disclose, copy or retain it; (ii) please contact the sender immediately by reply email and then delete the emails. The views expressed in this email may not be those of Landcare Research New Zealand Limited. http://www.landcareresearch.co.nz
_______________________________________________ mapserver-users mailing list [email protected] http://lists.osgeo.org/mailman/listinfo/mapserver-users
