Single Layer (CGI) call for Legend CHIP
Jeff McKenna
jmckenna at DMSOLUTIONS.CA
Wed Jun 22 11:04:50 PDT 2005
and the latest WMS Server doc has a section on the getlegendgraphic
request:
http://mapserver.gis.umn.edu/doc/wms-server-howto.html#getlegendgraphic
jeff
Bart van den Eijnden wrote:
> Bob,
>
> have a look at the WMS GetLegendGraphic request. It comes with a
> parameter LAYER to specify the layer desired.
>
> Probably something like (by head):
>
> mapserv.exe?map=/mymap.map&service=WMS&version=1.1.1&request=GetLegendGraphic&format=image/png&layer=mylayer
>
>
> This needs Mapserver 4.4 or later.
>
> If you want separate images for each class in the layer, also specify
> the Rule parameter in the GetLegendGraphic request with a reference to
> the CLASS NAME you want.
>
> Best regards,
> Bart
>
> On Wed, 22 Jun 2005 19:33:38 +0200, Bob Basques
> <bob.basques at CI.STPAUL.MN.US> wrote:
>
>> All,
>>
>> Is there a way to use to request a single line LEGEND entry from a
>> MAPfile without a TEMPLATE?
>>
>> We're trying to build a dynamic Layer/Legend and have MapServer build
>> the LEGEND Chip from the Mapfile Layer Automatically.
>>
>> If I possibly had seperate Map File for each layer, could this be
>> accomplished? I suspect that I could then, but then I would need to add
>> in the LEGEND parameters for every Mapfile, correct?
>>
>> We're really trying to bypass the generation of a complete legend by
>> Mapserver and have the generation of the legend items be configured on a
>> bylayer request from the CGI.
>>
>> Thanks for any input.
>>
>> bobb
>>
>
>
>
--
Jeff McKenna
DM Solutions Group Inc.
http://www.dmsolutions.ca
More information about the MapServer-users
mailing list