[mapserver-users] Forward time and other parameters to a layer defined as wms client

Søren Laursen sln at fcoo.dk
Wed Aug 7 13:38:01 PDT 2019


Yes, this is how the client is defined:

 LAYER
    CONNECTION "http://wms-server/dataset.wms?"
    CONNECTIONTYPE WMS
    DEBUG 4
    METADATA
      "wms_srs" "EPSG:3857"
      "wms_exceptions_format"   "XML"
      "wms_cmap"        "Current_cms_WGYR_11colors_1.0"
      "wms_transparent" "TRUE"
      "wms_name"        "UCUR:VCUR"
      "wms_timeitem" "TIME"
#      "wms_timedefault"        "2019-06-25T12:00:00.000Z"
#      "wms_time" "2019-06-25T12:00:00Z"
#      "wms_timeformat" "YYYY-MM-DDTHH:MM:SSZ"
      "wms_format"      "image/png"
      "wms_server_version"      "1.3.0"
      "wms_style"       "plot_method=color_quiver2;legend=Current_cms_WGYR_11colors_1.0"
      "wms_crs" "EPSG:3857"
      "wms_enable_request" "*"
    END # METADATA
    NAME "Current"
    PROCESSING "CLOSE_CONNECTION=NORMAL"
    PROCESSING "LOAD_WHOLE_IMAGE=YES"
    PROJECTION
      "init=epsg:3857"
    END # PROJECTION
    STATUS ON
    TILEITEM "location"
    TYPE RASTER
    UNITS METERS
    MASK "waterpolygons"
  END # LAYER


Joint GeoMETOC Support Center
[FMI logo]
Lautrupbjerg 1-5 - 2750 Ballerup
Danish Defence Acquisition and Logistics Organisation
TLF: +45 7281 5627
MOBIL: +45 2961 9652
FIIN: FMI-MA-OPD07
http://WWW.FCOO.DK/
________________________________
Fra: mapserver-users [mapserver-users-bounces at lists.osgeo.org] på vegne af Seth G [sethg at geographika.co.uk]
Sendt: 7. august 2019 21:00
Til: mapserver-users at lists.osgeo.org
Emne: Re: [mapserver-users] Forward time and other parameters to a layer defined as wms client

Hi Søren,

Just to clarify you are using MapServer as a WMS Client as outlined here https://mapserver.org/ogc/wms_client.html
With  "CONNECTIONTYPE WMS"?

Seth

--
web:http://geographika.co.uk
twitter: @geographika


On Wed, Aug 7, 2019, at 7:55 PM, Søren Laursen wrote:
Hi,

We have been using mapserver to display static layers, and are now in progress of using it to display dynamic (time bound) layers.

We have a wms server that serve forecast, and we use a shape file to mask out areas, for example cut a forecast so it follow landmass.

This works perfect, but when we want to include the TIME parameter to show a forecast at a specific point in time, we cannot get mapserver to forward the parameter.

Later on we will have the same problem with forecast that are bound by for example attitude and time.

We are using mapserver with apache, and in production we have a varnish in front (and banning urls when new forecast are ready).

I have look at time documentation of both the time wms settings and the runtime subtitionen but cannot figure out how we can make a solution.

When we hardcode a wms_time parameter in the layer definition everything works.

Best regards

Søren




Joint GeoMETOC Support Center
[FMI logo]
Lautrupbjerg 1-5 - 2750 Ballerup
Danish Defence Acquisition and Logistics Organisation
TLF: +45 7281 5627
FIIN: FMI-MA-OPD07
http://WWW.FCOO.DK/
_______________________________________________
mapserver-users mailing list
mapserver-users at lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/mapserver-users

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20190807/ab27cec5/attachment.htm>


More information about the MapServer-users mailing list