-
-
Notifications
You must be signed in to change notification settings - Fork 374
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
GetMap Width/Height/Format are required parameters #1088
Comments
Author: assefa
|
Author: bartvde@osgis.nl
|
Author: dmorissette
|
Author: nsavard@mapgears.com
|
Author: jdoyon@nrcan.gc.ca
|
Author: tomkralidis What do all think? My vote would be to check for the required parameters and throw exception if they are not present. |
Author: bartvde |
Author: tomkralidis |
Author: dmorissette |
Author: assefa |
Author: tomkralidis
I suspect this might cause some heartache with some client requests w.r.t. STYLES. Many clients may not pass the STYLES parameter (you're supposed to, even "if STYLES=" is entered, that's valid). HISTORY.TXT and MIGRATION_GUIDE.TXT updated. If someone can do a quick once over, I can then close this one. |
Author: hobu |
Author: crschmidt |
Author: tomkralidis Thx. I've sent something to !MapBuilder as well. I think (hope?) this would be less of an issue with WMS client packages than with custom clients. The most common scenario I've seen where this will hurt will be where folks can quickly test a layer with:
|
Author: crschmidt |
Author: hobu |
Author: tomkralidis Normand: all GetMap and GetFeatureInfo requests in msautotest/wms_*.map will now require srs, bbox, format, width, height. srs = we can use what's defined in the .map file I took a first look at updating them, but I'm not familiar enough with msautotest w.r.t. expected and real results (i.e. will the expected results now change? We also have to set these values to something representative of the mapfile and underlying data). I've made a first change to msautotest/wxs/wms_time2.map. I now get back an image, but it doesn't match the expected. Normand: any comments here? Too bad, these were always defined as required parameters of OGC:WMS. |
Author: nsavard
Tom, I'll go through the tests and fix the issue. I'll let you know when I'm done. |
Author: tomkralidis
Thx. Let me know how I can help/test. Note that I've since made some commits to msautotest. I'll stop now and wait on your updates/comments. |
Author: tomkralidis Should this also be documented somewhere on the website (FAQ)? Also, section 2.3.2 of the WMS-Server howto has to be modified to reflect this change (maybe eliminate 2.3.2.1?). |
Author: dmorissette
The changes look good. Can we close this now or are we waiting for the tests to be updated? |
Author: tomkralidis
I've made changes to the WMS-Server howto (http://mapserver.gis.umn.edu/docs/howto/wms_server/#test-with-a-getmap-request), and added this to the OGC section of the FAQ (http://mapserver.gis.umn.edu/docs/faq/ogc-wms-getmap-required-parameters) I'd like to make sure msautotest is updated (waiting for news from Normand). |
Author: tomkralidis Also added to http://mapserver.gis.umn.edu/development/release_plans/mapserver_5_0/migration_guide_410_50/ |
Author: jparapar It would be interesting to add some comment about this in the WMS-Client howto too. Now, to use a MapServer WMS Sever the MapServer WMS clients must include the wms_style parameter or some SLD parameter (wms_sld_ur or wms_sld_body, which, by the way, are not cited in the WMS-Client howto). (With raster layers I did not usually include any of them). Thanks, |
Author: tomkralidis Good point. See #2242 for the fix to WMS Client. The docs don't need updating however. If the client doesn't set wms_style, etc. then "STYLES=" is sent. |
Author: nsavard
Tom, I updated the msautotest related to this problem. |
Author: tomkralidis Closing. Thanks everyone! |
Author: hobu |
Author: tomkralidis
See section 7.3.3.4 of the spec (OGC:WMS 1.1.1: http://portal.opengeospatial.org/files/?artifact_id=1081&version=1&format=pdf), which, to me, suggests that that a copy of the !GetMap request (without VERSION and REQUEST, which !GetFeatureInfo passes already) shall be embedded as part of !GetFeatureInfo. !GetLegendGraphic, !DescribeLayer, and !GetCapabilities have their own parameters specifics, which this ticket does not apply to. |
Author: tomkralidis |
Author: crschmidt "OGC Web Map Service (WMS)" does not mention the fact that 'request' is also a neccesary parameter, which is neccesary for cases like mapscript.OWSRequest , which in the past would default to GetMap, but will now segfault if it's not available. Addressing the segfault is #2299, but including some mention of this in the migration guide is neccesary as well |
Author: tomkralidis I'm not quite sure I follow you. FYI this ticket never touched the request parameter, which has always been required. If I invoke (against latest svn trunk 13a38d3 (r6870)): I get an exception asking for the request parameter. If I include the request parameter, I get a valid response of a map image as expected. So, in the context of this ticket, there is no change in behaviour of handling the request parameter from the WMS server point of view. crschmidt: does this make sense? |
Author: crschmidt |
Author: jmckenna |
Author: tomkralidis Should be okay. Some changes per comment:22, and there's nothing in the WMS Client howto that would need a change. |
Reporter: assefa
Date: 2004/11/24 - 16:17
Trac URL: http://trac.osgeo.org/mapserver/ticket/1088
The text was updated successfully, but these errors were encountered: