[Mapserver-users] known issue: no results with QueryByPoint (Mapserver 3.7 PHP mapscript)

Vincent Schut schut at sarvision.com
Wed May 21 10:19:03 EDT 2003


For historical reasons (I think) the template attribute *must* be set for a 
layer to be queriable. You indeed also need a class section, and the status 
should be on. The template, however, may be any non-existing dummy name. Then 
it just functions as a switch for mapserver to know that this layer should be 
queriable.
You could just use 'TEMPLATE dummy.foo'. It works, I do it myself.
I'm sorry I can't provide you any sample templates, I usually use 
php_mapscript and don't use templates. I think they are similar to or the 
same as templates for 3.6.x. You could also check the mapserver migration 
guide on the wiki pages.

Regards,
Vincent Schut.

On Wednesday 21 May 2003 16:18, you wrote:
> Vincent Schut wrote:
> >On Wednesday 21 May 2003 10:37, Eric Bridger wrote:
> >>On Wed, 2003-05-21 at 11:41, Michael Härtel wrote:
> >>>Do i actually need a template file if i use mapserver 3.7 with
> >>>mapscript? Or is it only needed by the simple CGI version?
> >>
> >>You don't need the "actual" template file, but you do need the TEMPLATE
> >>attribute set in the layer. E.g. TEMPLATE "dont_exist.html".  I'm not
> >>sure if this is still true in 3.7
> >
> >Yes, this is still the case in 3.7.
>
> But i assume that the query should return some result objects anyway, no
> matter whether a (correct) template file exists or not. The template
> file only formats the result output i guess.
> Or will the query not return any results if a template file is incorrect?
>
> unfortunately I don' t find any suitable query template files for
> Version 3.7. could someone send me one? thanks

-- 
______________________________________
Vincent Schut
Sarvision B.V.
Wageningen, The Netherlands
www.sarvision.com






More information about the mapserver-users mailing list