[mapserver-users] Changing layer template via URL
Ian
iansgis at gmail.com
Mon Jul 14 16:27:33 PDT 2008
Hello,
I'm using MapServer version 5.0.0 and can successfully change other
parameters via a URL, but am having trouble changing the layer template. I
keep getting "loadLayer(): General error message. URL-based TEMPLATE
configuration failed pattern validation."
The documentation on TEMPLATEPATTERN is sparse but from another post
(
http://www.nabble.com/Dinamically-changing-HTML-Template-using-CGI-parameter--(instead-of-hardcoded)-td17626183.html
)
it sounds like it is necessary. Both templates work when hard-coded:
Mapfile:
NAME "Test"
STATUS ON
TEMPLATEPATTERN ".*"
...
LAYER
NAME volcanoes
TEMPLATE 'templates/volcanoes.html'
...
URL:
http://host/cgi-bin/mapserv?map=/maps/wms.map&mode=query&qlayer=volcanoes&mapxy=-121+40&map.layer[volcanoes]=TEMPLATE+'templates/volcanoesQuery.html
'
Thank you.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20080714/dc5c97e5/attachment.htm>
More information about the MapServer-users
mailing list