[mapserver-users] Using dimensions with MapServer as WMS client

Yewondwossen Assefa yassefa at dmsolutions.ca
Mon May 26 11:26:11 PDT 2008


Alexandre,


  Only wms_time is supported by mapserver acting as a wms server. It is 
also the only dimension that is advertised through the capabilities 
document.  From what I can I see the map context only loads/save the 
dimension into Mapserver metadata, but it is not used for anything.

  Best Regards,


Alexandre Saunier wrote:
> Hello,
> 
> I use Mapserver 5.0.2 as a client sending GetMap requests to some WMS
> server. Requests should contain additional parameters such as "time" and
> "elevation". For instance:
> wms?LAYERS=...&REQUEST=GetMap&SERVICE=WMS&BBOX=...&TIME=...&ELEVATION=...
> 
> Using a "wms_time" metadata in the layer definition in the mapfile, I
> have succeeded in  adding the "TIME" parameter to the request.
> 
> On the other hand, in order to add the "ELEVATION" parameter I have
> tried to use the "wms_dimension*" metadata parameters as described in
> http://mapserver.gis.umn.edu/docs/howto/mapcontext#layer-object-metadata
> but couldn't have them taken into account. For instance:
> 


>  LAYER
>       NAME "foobar"
>       TYPE RASTER
>       CONNECTION "http://foobar/wms?"
>       CONNECTIONTYPE WMS
>       METADATA
>         "wms_srs"             "EPSG:4326"
>         "wms_name"            "foobar"
>         "wms_server_version"  "1.1.1"
>         "wms_format"          "image/jpeg"
>         "wms_title"           "Foobar"
>         "wms_onlineresource"  "http://foobar/wms?"
>         "wms_time"            "2007-06-13T12:00:00Z"
>         "wms_dimension_elevation_uservalue" "100.0"
>       END
>  END
> 
> I have also tried to add other wms_dimension* parameters (such as
> wms_dimensionlist or wms_dimension_elevation_default) as listed in the
> manual example but with no success. In addition it seems that using
> "wms_dimension_time_uservalue" instead of "wms_time" does not work either.
> 
> Thus I was wondering what were the required wms_dimension* parameters to
>  add a dimension in a WMS GetMap performed by Mapserver and if there
> were some extra settings needed to enable dimensions support?
> 
> Thanks for your help,
> Alexandre
> _______________________________________________
> mapserver-users mailing list
> mapserver-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-users
> 


-- 
----------------------------------------------------------------
Assefa Yewondwossen
Software Analyst

Email: assefa at dmsolutions.ca
http://www.dmsolutions.ca/

Phone: (613) 565-5056 (ext 14)
Fax:   (613) 565-0925
----------------------------------------------------------------




More information about the MapServer-users mailing list