Opened 14 years ago
Closed 13 years ago
#3444 closed defect (fixed)
OGC: allow user to specify default version of the spec supported
Reported by: | assefa | Owned by: | assefa |
---|---|---|---|
Priority: | normal | Milestone: | 6.0 release |
Component: | WMS Server | Version: | unspecified |
Severity: | normal | Keywords: | OGC version |
Cc: | stephan.holl@…, jmckenna, strk@…, mko, yves.moisan@…, schpidi, dmorissette |
Description
For example in WMS if the version parameter is not set, MapServer usually defaults to the latest supported version (1.3.0). The idea is to have a web level metadata that can be used to set the default version
Change History (16)
comment:1 by , 14 years ago
Cc: | added |
---|
comment:2 by , 14 years ago
Cc: | added |
---|
comment:3 by , 14 years ago
Cc: | added |
---|
comment:4 by , 14 years ago
For the record, I was having problems with both gvSIG and QuantumGIS, altough the qgis ones haven't figured out yet (disappeared on new build - could have been due to impossibility to find client side projection data)
comment:5 by , 14 years ago
Cc: | added |
---|
comment:6 by , 13 years ago
Cc: | added |
---|
comment:7 by , 13 years ago
I wonder if MapServer could send a response header that is meaningful. For now, it sends 200 OK whatever the version number passed in the request is, provided it is of one of two forms : x.y or x.y.z. The client gets an image back, but has no way to tell if the version number was taken care of or not. Problem is I can't find a response header that would be a mix of 200 (Ok you got your image) and 404 (can't find VERSION number you sent) and 30? (redirecting to default VERSION) or some such. Ideas ?
comment:8 by , 13 years ago
The Expect request-header field is used to indicate that particular server behaviors are required by the client. (http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html)
Expect VERSION and values = {...,1.1.1,1.3.0} ?
Problem is its a request header and it would mean changing the WMS spec I guess.
The most likely candidate for a response header where the VERSION number used could be stored is Accept-Ranges. However this only "allows the server to indicate its acceptance of range requests for a resource" so maybe there is a way for MS to tell the client it will accept a range of values for the VERSION parameter, but it won't tell the client what VERSION number it actually used in a specific response.
I'll stop commenting now 'cos I'm lost ;-)
comment:9 by , 13 years ago
Cc: | added |
---|
comment:10 by , 13 years ago
FWIW, a default version setting makes sense only for GetCapabilities.
Other requests (GetMap, GetFeatureInfo, etc.) all require an explicit VERSION to be specified and MapServer already uses that value to construct its response.
See also my explanation in http://lists.osgeo.org/pipermail/mapserver-users/2010-November/067186.html
comment:11 by , 13 years ago
Cc: | added |
---|
comment:12 by , 13 years ago
Thanx Daniel. I replied to your explanation : http://lists.osgeo.org/pipermail/mapserver-users/2010-November/067189.html
comment:13 by , 13 years ago
metadata wms_getcapabilities_version adn wfs_getcapabilities_version that can be used to default the capabilities document. If not set the latest supported version will be used. WMS Exception is also returned when doing getmap/getfeatureinfo for non supported versions
comment:15 by , 13 years ago
Assefa,
are there any other blockers in this issue? Will this be in 6.0?
TIA
Stephan
comment:16 by , 13 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
yes it is going to be in 6.0. Closing since It was committed a while ago.
+1 1.3.0 seems not well supported so I'd prefer my deplois to avoid that, unless explicitly requested by clients.