[mapserver-users] querymap mode

Stephen Lime steve.lime at dnr.state.mn.us
Wed May 9 11:39:13 EDT 2001


So, is there a problem or not? I'm not quite sure what you're getting at. The different 
"querymap" modes behave just like the normal "map" modes in that only an image
is returned. Other wise whenever you use the [img] tag in a template you're accessing
a regular or query map. The only difference is in which template.

Steve

Stephen Lime
Internet Applications Analyst

Minnesota DNR
500 Lafayette Road
St. Paul, MN 55155
651-297-2937

>>> "Grzegorz Myrda" <mapadm at polsl.gliwice.pl> 05/09/01 03:35AM >>>
Yap, I know. It was clarified a few times on the list.

But In my opinion querymaps are not exactly normal maps.
The way they are generated has some consequences.
Differences are:
-itemquerymap returns just image, not template, so mapserv is called 2 times (first to return template, second to return querymap which is not saved to temporary file)
-map is generated from mapserv parameters used in [img] tag. So to modify map looks like, you have to modify template source. In case of normal maps you modify only URL.

Grzegorz

> -----Original Message-----
> From: owner-mapserver-users at lists.gis.umn.edu 
> [mailto:owner-mapserver-users at lists.gis.umn.edu]On Behalf Of Stephen Lime
> Sent: Monday, May 07, 2001 4:46 PM
> To: mapserver-users at lists.gis.umn.edu; mapadm at polsl.gliwice.pl 
> Subject: Re: [mapserver-users] querymap mode
> 
> 
> Querymaps can be used just like normal maps. The only difference 
> is how/when
> they are generated. You access them using the [img] replacement 
> tag in templates
> associated with queries or using special modes like itemquerymap 
> or nquerymap.
> 
> Steve
> 
> Stephen Lime
> Internet Applications Analyst
> 
> Minnesota DNR
> 500 Lafayette Road
> St. Paul, MN 55155
> 651-297-2937
> 
> >>> "Grzegorz Myrda" <mapadm at polsl.gliwice.pl> 05/06/01 12:53PM >>>
> Hi,
> Just wondering why querymaps can be used only in <img ...> tags. This make
> it difficult to pass args from the URL :(
> Wouldn't it better to allow additional mode(s), for example:
> browseitemquerymap :) which would save image (querymap) and 
> return template
> ?
> Mapscript (or even javascript) can be used to provide args to 
> <img ...> tag,
> but 'mode' would be simpler and also future posts with doubts 
> that querymaps
> are not 'normal maps' can be avoided.
> 
> Grzegorz
> 
> 





More information about the mapserver-users mailing list