Hi, I think you are missing the required parameter VERSION in your GetLegendGraphic URL.
http://localhost/cgi-bin/mapserv.exe?map=d:/www/lliria_wms/lliria.map&REQUEST=GetLegendGraphic&LAYER=Edificios&FORMAT=image/gif&version=1.1.1 Otherwise try the URL directly in your browser and see what error message you get. Best regards, Bart On Tue, 10 Jun 2008 13:49:31 +0200, "Bernardo \(iNCARGiS\)" <[EMAIL PROTECTED]> wrote: > I'm just begining with mapbuilde and i have problems in show the legend > image in my web > > This is the part of my .map file > > LAYER > NAME EDIFICIOS > DATA LLIRIA > STATUS ON > TYPE POLYGON > GROUP BASE > > PROJECTION > "init=epsg:23030" > END > > DUMP TRUE > TOLERANCE 10 > TEMPLATE "edificios.html" > > METADATA > "wms_srs" "EPSG:23030" > "wms_name" "Edificios" > "wms_server_version" "1.1.0" > "wms_format" "image/gif" > "wms_legend_graphic" "true" > END > > And this is my map context > > <Layer queryable="1" hidden="0"> > <Server service="OGC:WMS" version="1.0.0" title="OGC:WMS"> > <OnlineResource xlink:type="simple" > xlink:href="http://localhost/cgi-bin/mapserv.exe?map=d:/www/lliria_wms/lliria.map"/> > </Server> > <Name>Edificios</Name> > <Title>Edificios</Title> > <SRS>EPSG:23030</SRS> > <FormatList> > <Format current="1">image/gif</Format> > </FormatList> > <StyleList> > <Style current="1"> > <Name>default</Name> > <Title>default</Title> > <LegendURL format="image/gif"> > <OnlineResource xlink:type="simple" > xlink:href="http://localhost/cgi-bin/mapserv.exe?map=d:/www/lliria_wms/lliria.map&REQUEST=GetLegendGraphic&LAYER=Edificios&FORMAT=image/gif"/> > </LegendURL> > </Style> > </StyleList> > </Layer> > > The legend is defined inside the map file > > > TRANSPARENCY 100 > CLASSITEM "USO" > > CLASS > NAME "ACERAS" > EXPRESSION "ACERA" > COLOR -1 -1 -1 > OUTLINECOLOR 104 104 104 > END > > CLASS > NAME "BALSAS" > EXPRESSION "BALSA" > COLOR 151 219 242 > OUTLINECOLOR 64 101 235 > END > > CLASS > NAME "EDIFICIOS" > EXPRESSION "EDIF" > COLOR 255 234 190 > OUTLINECOLOR 255 211 127 > END > > > The imgage map is right but the legend no. > > Thanks in advance _______________________________________________ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users