[Users] wms getlegend mine type trouble in TreePanel

Andreas Hocevar ahocevar at opengeo.org
Mon Jan 23 13:44:38 CET 2012


Hi,

configure your WMSLegend instance with

    baseParams: {format: "image/png"}

Andreas.

On Sun, Jan 22, 2012 at 9:51 AM, karsten <karsten at terragis.net> wrote:
> Hi all,
> I am using geoext 1.0  with MapServer 6.01 on my Ubuntu server.
>
> Despite I have set the mapfile output to
>
> IMAGETYPE AGG_Q
>
>   OUTPUTFORMAT
>     NAME 'AGG_Q'
>     DRIVER AGG/PNG
>     IMAGEMODE RGB
>     FORMATOPTION "QUANTIZE_FORCE=ON"
>     FORMATOPTION "QUANTIZE_DITHER=OFF"
>     FORMATOPTION "QUANTIZE_COLORS=256"
>     MIMETYPE "image/png; mode=8bit"
>    EXTENSION "png"
>   END
> I am getting a request of my legend images im my ext tree
> (Ext.tree.TreePanel with legend images, "gx_overlaylayercontainer",) to be
> default to gif - which results in blurry output images.
>
> manually I can get what I need :
> http://terra1.terragis.net/cgi-bin/mapserv?map=/var/www/mapdata/micuenca/micuenca.map&TRANSPARENT=TRUE&INFOSQL=comunidades%20where%201%20%3D%200&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetLegendGraphic&EXCEPTIONS=application%2Fvnd.ogc.se_xml&LAYER=querylayer&SCALE=54168.00204368367&FORMAT=image%2Fpng
> but this is what OL/geoext give me :(
> http://terra1.terragis.net/cgi-bin/mapserv?map=/var/www/mapdata/micuenca/micuenca.map&TRANSPARENT=TRUE&INFOSQL=comunidades%20where%201%20%3D%200&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetLegendGraphic&EXCEPTIONS=application%2Fvnd.ogc.se_xml&LAYER=querylayer&SCALE=54168.00204368367&FORMAT=image%2Fgif
> (in MapBender this render ok with the same MapServer settings - that's why I
> think this should be a geoext related issue)
> How can this be fixed ?
> Cheers
> Karsten
>
> Karsten Vennemann
> Principal
>
> Terra GIS LTD
> 2119 Boyer Ave E
> Seattle, WA  98112
> USA
> www.terragis.net
>
> Phone ++1 206 905 1711
> Fax      ++1 925 905 1711
>
>
>
>
>
>
>
> =======
> Email scanned by PC Tools - No viruses or spyware found.
> (Email Guard: 9.0.0.888, Virus/Spyware Database: 6.19090)
> http://www.pctools.com
> =======
>
> _______________________________________________
> Users mailing list
> Users at geoext.org
> http://www.geoext.org/cgi-bin/mailman/listinfo/users
>



-- 
Andreas Hocevar
OpenGeo - http://opengeo.org/
Expert service straight from the developers.


More information about the Users mailing list