CGI mode and Web Map Context
Kralidis,Tom [Burlington]
Tom.Kralidis at EC.GC.CA
Wed May 25 05:36:15 PDT 2005
Hi,
Any comments on this one?
..Tom
> -----Original Message-----
> From: UMN MapServer Users List
> [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of
> Kralidis,Tom [Burlington]
> Sent: Wednesday, 27 April, 2005 08:40
> To: MAPSERVER-USERS at LISTS.UMN.EDU
> Subject: [UMN_MAPSERVER-USERS] CGI mode and Web Map Context
>
>
> Hi,
>
> A couple of questions when using CGI mode MapServer and WMC.
>
> Here is an example URL:
>
> http://devgeo.cciw.ca/cgi-bin/mapserv/mapserv?map=/usr/local/w
wwsites/ap
ache/devgeo.cciw.ca/apps/mapserv/apps/basicviewer/config.map&context=htt
p://devgeo.cciw.ca/ms_tmp/wqm_loc.cml
1./ If you check out the WMC doc (http://devgeo.cciw.ca/) you'll see
that all layers have a Layer/@hidden value of 0, which means they should
be visible. However it appears that one must explicitly call these
layers via LAYERS in the CGI URL, i.e.:
http://devgeo.cciw.ca/cgi-bin/mapserv/mapserv?map=/usr/local/wwwsites/ap
ache/devgeo.cciw.ca/apps/mapserv/apps/basicviewer/config.map&context=htt
p://devgeo.cciw.ca/ms_tmp/wqm_loc.cml&layers=wa_7.5m&
I can see why this is the case, however I would imagine it would be more
intuitive if, when no LAYERS parameters are set, to return the WMC as it
was intended to be viewed?
2./ How does the WMC get marshalled in CGI mode? i.e. I'm trying to use
the HTML legend approach to build a legend. I'd like to pick up the
LegendURL, MetadataURL and Title from the Layer element to populate the
legend.
At any rate, kudos to the developers for adding this functionality,
which allows for a *very* light standards-based client.
Cheers
..Tom
More information about the MapServer-users
mailing list