[mapserver-users] [non-nasa source] Default GetCapabilities Version Not Working

Cechini, Matthew F. (GSFC-423.0)[Science Systems & Applications, Inc.] matthew.f.cechini at nasa.gov
Fri May 25 04:39:58 PDT 2018


Steve,
   For some reason I’m not getting responses through the mailing list… but I did see your responses in the archive…

   Digging into this further, it looks like our WMS wrapper is setting “VERSION=” when it invokes mapsever… which is an easy fix.  However, I was also able to reproduce this through direct mapserv command line access.  But that gives me a different error and perhaps the default version feature isn’t supported in this use case.

$> mapserv -nh "QUERY_STRING=LAYERS=MODIS_Fires_All&width=256&height=256&BBOX=-180,-90,180,90&SERVICE=WMS&REQUEST=GetMap&map=/home/user/wms_test/cfg/ 4326.map&TIME=2018144&PRODUCTYEAR=2018&PRODUCTMONTH=05&PRODUCTDAY=24&transparent=trueSRS=EPSG:4326&format=image/png"

<ServiceException>
  msWMSDispatch(): WMS server error. Incomplete WMS request: VERSION parameter missing
</ServiceException>

Thanks,
Matt
.................................................................
Matthew Cechini
Contractor, Science Systems and Applications, Inc.
NASA GIBS Systems/Software Engineer
410.205.6272

From: mapserver-users <mapserver-users-bounces at lists.osgeo.org> on behalf of Matthew Cechini <matthew.f.cechini at nasa.gov>
Date: Wednesday, May 16, 2018 at 5:29 PM
To: mapserver-users <mapserver-users at lists.osgeo.org>
Subject: [non-nasa source] [mapserver-users] Default GetCapabilities Version Not Working

All,
   We are running MapServer version 7.0.1 and attempting to use the MAP > WEB > METADATA > wms_getcapabilities_version configuration value to support GetCapabilities requests that do not supply the VERSION parameter.  Unfortunately, even if we do add this value to our mapserver configuration file, we continue to see the following service exception.  Any suggestions?

msOWSParseVersionString(): OWS error. Invalid version (). Version must be in the format 'x.y' or 'x.y.z'

   Here is our METADATA block:


  WEB

    METADATA

      "wms_enable_request"     "GetMap GetCapabilities"

      "wms_title"              "Some Text"

      "wms_abstract"           "Some Text"

      "wms_onlineresource"     "https://our_url?"

      "wms_srs"                "epsg:4326"

      "wms_getcapabilities_version"  "1.3.0"

      "wms_connectiontimeout"  "180"

     END

  END

Thanks,
Matt
.................................................................
Matthew Cechini
Contractor, Science Systems and Applications, Inc.
NASA GIBS Systems/Software Engineer
410.205.6272
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20180525/aacd3882/attachment.htm>


More information about the MapServer-users mailing list