2015-08-03 15:55 GMT+02:00 Rahkonen Jukka (MML) < [email protected]>:
> Hi, > > > I am not sure if HTML legends really work with WMS. The demo site that is > mentioned in the html legend manual page must support html legends. > > http://demo.mapserver.org/cgi-bin/mapserv?map=%2Fosgeo%2Fmapserver%2Fitasca_legend%2Fmap%2Fitasca1.map&layers=all&zoomsize=2&zoomdir=1&map_size=600+400 > > However, I could not find any way for reading the html legend through WMS. > Format image/png does work for me > > http://demo.mapserver.org/cgi-bin/mapserv?map=%2Fosgeo%2Fmapserver%2Fitasca_legend%2Fmap%2Fitasca1.map&service=wms&version=1.1.1&request=getlegendgraphic&layer=ctyrdln3&format=image/png > > The site is advertising these formats for GetLegendGraphic, notice that > html does not appear on the list even the service itself does support html > legends if they are read with native Mapserver methods: > > <GetLegendGraphic> > <Format>image/gif</Format> > <Format>image/png</Format> > <Format>image/png; mode=24bit</Format> > <Format>image/jpeg</Format> > <Format>image/vnd.wap.wbmp</Format> > > I also tested the effect of adding this WEB object metadata item into some > of our Mapserver 7.0 RC1 services: > "wms_getlegendgraphic_formatlist" "text/html" > The WMS request is the same my webapp (geomoose) is actually doing and which "fails" in returning html legend. > > This change does not have any effect on the advertised GetLegendGraphic > formats of our server. They are always > > <Format>image/png</Format> > <Format>image/jpeg</Format> > <Format>image/gif</Format> > <Format>image/png; mode=8bit</Format> > > However, if I use "wms_getlegendgraphic_formatlist" "image/jpeg" then I > can't read the legend as image/png even it does still show in > GetCapabilities. So this setting works with the image formats as described > in the documentation but there is a bug because the setting does not > reflect to GetCapabilities. > > When it comes to top posting, I always top post but I also try to include > some useful information into my mails for compensating the irritation. And > I know that bottom posting is irritating at least as many people as top > posting. I apologize also that my mail program does poor job with quoting > previous mails. > I am not irritated, it's just a matter of logic and top posting simply doesn't work for conversation sequencing. ;-) > > Regards, > > -Jukka Rahkonen- > >
_______________________________________________ mapserver-users mailing list [email protected] http://lists.osgeo.org/mailman/listinfo/mapserver-users
