[mapserver-users] Templating problem

Clément MONIER Clement.MONIER at v-trafic.com
Tue Oct 13 06:00:26 EDT 2009


Hi,

Classic problem : 
I want to get features coordinates 
in pixels inside my MS map picture (db = shapefiles)
to build an html map tag.

I've followed this webpage http://mapserver.org/output/imagemaps.html
And succeeded in getting pixels-coordinates and attributes with templates.

But it seems to me that everything is set inside the mapfile,
And nothing can be configured inside the requesting parameters !? 
(like my GetMap request does for map size, bbox, layers, ...)

This request is though working, but I'm getting errors when I try to add parameters to it :
http://myserver/cgi-bin/mapserv.exe?map=/ms4w/apps/gmap/htdocs/test_imap.map&qlayer=mylayer&mode=nquery&searchmap=true

Another issue is that my filtering option is not active any more : despite the EXPRESSION() filter inside the LAYER, all features of the shapefile are output into pixel-coordinates through the templating process.

Is it possible to turn a getMap request into a template-output without disabling parameters & filtering options ?

Thanks for your help

Clement 
MS Templating newbie





More information about the mapserver-users mailing list