Opened 13 years ago

Closed 13 years ago

#3732 closed defect (fixed)

Make [mapserv_onlineresource] independent of OWS support

Reported by: dmorissette Owned by: dmorissette
Priority: normal Milestone: 6.0 release
Component: MapServer C Library Version: svn-trunk (development)
Severity: normal Keywords:
Cc: aboudreault

Description

'mode=browse&template=openlayers' does not work with a minimal build without OWS support: the [mapserv_onlineresource] tag is not replaced in the openlayers template because msOWSGetOnlineResource() is not available, and we don't get a map.

We could make this work even if OWS services are not enabled by moving the non-OWS part of msOWSGetOnlineResource() (the part that builds the URL if metadata is not set) to a separate function and falling back on that if OWS is not enabled in maptemplate.c

Change History (1)

comment:1 by dmorissette, 13 years ago

Resolution: fixed
Status: newclosed

Fixed in r11157 (will be in 6.0.0-beta2).

I have moved the URL construction to a new msBuildOnlineResource() in maputil.c which is called by msOWSGetOnlineResource() by default. However we fallback on msBuildOnlineResource() in maptemplate.c if OWS is not enabled.

Note: See TracTickets for help on using tickets.