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

2019-08-07 Thread Trond Michelsen
Hi.

I made a workaround for this a while ago (I think we were using
Mapserver 4.10 at the time). It's possible there are better ways to
solve this now, but it still works :)

I can give more details tomorrow, but the gist of it is that I've made
an Apache handler (mod_perl) that modifies the incoming request, and
adds the TIME, LEVEL and all DIM_* parameters to an environment
variable I've called MS_PASSTHROUGH, and then I add %MS_PASSTHROUGH%&
to the connection parameter in the layer configuration.

I can send you a copy of my Apache handler and config tomorrow, if you
like.

On Wed, Aug 07, 2019 at 05:49:20PM +, Søren Laursen wrote:
> 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.

-- 
Trond Michelsen
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/mapserver-users

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

2019-08-07 Thread Søren Laursen
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" "-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-boun...@lists.osgeo.org] på vegne af Seth 
G [se...@geographika.co.uk]
Sendt: 7. august 2019 21:00
Til: mapserver-users@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@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/mapserver-users

___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/mapserver-users

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

2019-08-07 Thread Seth G
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@lists.osgeo.org
> https://lists.osgeo.org/mailman/listinfo/mapserver-users
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/mapserver-users

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

2019-08-07 Thread Søren Laursen
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@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/mapserver-users