GetLegendGraphic and Scalebar

Till Adams adams at TERRESTRIS.DE
Tue Aug 28 05:55:41 EDT 2007


Maarten Plieger schrieb:

> Is it possible to request a scalebar graphic from a mapserver WMS 
> service?
> To request a legend you can call getlegendgraphic:
> http://my.host.com/cgi-bin/mapserver.cgi?map=test.map&SERVICE=WMS&VERSION=1.0.0&REQUEST=getlegendgraphic&LAYER=world_line&FORMAT=PNG 
>
> Is there something like getscalebargraphic?
> Thanks in advance
> Maarten
>
Dear Maarten,

no, the WMS specification only allows these requests:

-GetCapabilities(must)
-Getmap (must)
-getFeatureinforequest (optional)
-getlegendgraphic (optional)
-getStyle (optional)
-describelayer (optional)**

Have a look at:
http://mapserver.gis.umn.edu/docs/howto/wms_server

For having a scalebar you need a function in your wms-client (optionally 
you may set the scalebar "INIMAGE" but the
result does not look well.... )

Regards, Till



-- 
*****************************************
             terrestris ist umgezogen!	
 Die neue Adresse ab 01.07.2007 lautet:	 		
     Irmintrudisstraße 17, 53111 Bonn 
              http://www.terrestris.de	 		
*****************************************
----------------------------------------------------------
terrestris GmbH & Co. KG
Irmintrudisstrasse 17
53111 Bonn
Germany

Till Adams
Geschäftsführung

Tel: +49 (0)228 / 962 899-52
Fax: +49 (0)228 / 962 899-57
adams at terrestris.de 
http://www.terrestris.de
Amtsgericht Bonn, HRA 6835
---------------------------------------------------------

Komplementärin:

terrestris Verwaltungs GmbH

vertreten durch:
Hinrich Paulsen, Till Adams



More information about the mapserver-users mailing list