[Chameleon-dev] [Bug 364] WMS client does not use required styles
parameter
bugzilla-daemon at www.maptools.org
bugzilla-daemon at www.maptools.org
Fri Apr 23 15:25:59 EDT 2004
http://www.maptools.org/bugzilla/show_bug.cgi?id=364
------- Additional Comments From pspencer at dmsolutions.ca 2004-04-23 15:25 -------
The problem is in the WMSBrowser widget file. It builds the connection in the
map file in the wrong way. WMSBrowser creates all the necessary metadata for
MapServer to generate a correct URL but MapServer will not generate a correct
URL unless the connection does not include several keys (like version for instance).
The fix is to edit WMSBrowser.widget.php lines 581+ that look like this:
// build connection string
$szConnection = $szURL.$szQuestionMark;
."SERVICE=WMS&VERSION=".$szWMSVersion
."&LAYERS=".urlencode( trim( $axCapRec['name'] ) )
.$szQueryLayers
."&FORMAT=".$szFormat."&TRANSPARENT=TRUE";
and replace with:
// build connection string
$szConnection = $szURL.$szQuestionMark;
/*
* this is not required, it should be built from metadata.
."SERVICE=WMS&VERSION=".$szWMSVersion
."&LAYERS=".urlencode( trim( $axCapRec['name'] ) )
.$szQueryLayers
."&FORMAT=".$szFormat."&TRANSPARENT=TRUE";
*/
Note that this is untested since I am in the middle of modifying everything in
cvs. Bart, please try this and let me know if it works, and I will incorporate
the change in cvs.
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
More information about the Chameleon-dev
mailing list