[Mapserver-dev] mapserv (CVS) WMS query

Yewondwossen Assefa assefa at dmsolutions.ca
Thu Jan 22 18:32:42 EST 2004


Hi There,

  I am not sure if this is the appropriate way of doing this. If you 
look in the same doc (section 7.2.3.4), It specifies that :

  A client may request the default Style using a null value (as in 
"STYLES="). If several layers are requested with a mixture of named and 
default styles, the STYLES parameter includes null values between commas 
(as in "STYLES=style1,,style2,,"). If all layers are to be shown using 
the default style, either the form "STYLES=" or "STYLES=,,," is valid.



  This is what is implemented in mapserver (since Mapserver does not 
advertize any styles, the default style wich is an empty string is the 
only thing valid).

  Maybe others on the list have comments on this.

  Is is possible for your wms client to send styles=

Later,

Eric Sokolowsky wrote:

> I downloaded the latest mapserver source code through WMS to add some 
> features.  When I ran it with my WMS client, the WMS server responded
> with an error message:
> 
> msWMSLoadGetMapParams(): WMS server error. Invalid style ((null)). Mapserver supports only default styles and is expecting an empty string for the STYLES : STYLES= or STYLES=,,,
> 
> I don't declare any Styles in my layer.  I read the WMS 1.1.1 specification
> regarding the Style parameter (section 7.1.4.5.4):
> 
> "If only a single style is available, that style is known as the "default"
> style and need not be advertised by the server."
> 
> My WMS client places the fragment "style=default&" in the WMS query string
> if no style is given.  I think that mapserver's WMS server should support
> this.  I propose the following patch:
> 
> diff -r1.87 mapwms.c
> 322c322
> <   if(styles && strlen(styles) > 0)
> ---
> 
>>  if(styles && strlen(styles) > 0 && strcasecmp(styles, "default") != 0)
> 
> 
> Is this the appropriate place to submit this patch, or should I file a 
> report with bugzilla?
> 
> 


-- 
----------------------------------------------------------------
Assefa Yewondwossen
Software Analyst

Email: assefa at dmsolutions.ca
http://www.dmsolutions.ca/

Phone: (613) 565-5056 (ext 14)
Fax:   (613) 565-0925
----------------------------------------------------------------






More information about the mapserver-dev mailing list