Hallo,<BR>thank you for your reply. You guessed well, I needed the<BR>itemnquerymap<BR>(and not the itemnquery). I new, I did not read enough.<BR><BR>Now I get the right image (and only ones), however mapserv doesn't<BR>seem to use the template file. He seems to wish any template file<BR>only<BR>by itemnquery.<BR><BR>The (I hope) important part of mapfile look's like this:<BR>LAYER <BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; NAME "porostni_mapa_k_vyhledavani"<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; TYPE polygon<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; DATA det<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; STATUS on<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; CLASSITEM vek_st <BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; LABELITEM vek_st<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; SYMBOLSCALE 5000<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; CLASS<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; NAME 'Porostní mapa k vyhledávání'<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; TEMPLATE "krtiny.html"<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; COLOR 255 0 0<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; SYMBOL "vysledek_dotazu"<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; END<BR>&nbsp;&nbsp; END <BR><BR>I hope, I'm sending you enough information. If not, sorry, just give<BR>me some word and I will send what you need. I'm afraid, these are<BR>only<BR>the beginner's problems.<BR><BR><BR>On Wed, 3 Nov 2004 09:43:52 -0500, Skweda O'Bomsawin<BR>&lt;sobomsawin@kassini.com&gt; wrote:<BR>&gt; Jachym,<BR>&gt; <BR>&gt; That's not very clear what exactly you expect as results.&nbsp; Do you<BR>need an<BR>&gt; image (itemnquerymap) or a table of results (itemnquery).&nbsp; As far<BR>as I can<BR>&gt; see in your URL, you have an imgext and a mapext wich is a little<BR>bit<BR>&gt; confusing since the two functions has almost the same behavior...<BR> Could you<BR>&gt; send more details about your objectives and maybe your mapfile?<BR>&gt; <BR>&gt; Thanks.<BR>&gt; <BR>&gt; Skweda O'Bomsawin<BR>&gt; <BR>&gt; -----Message d'origine-----<BR>&gt; De : UMN MapServer Users List<BR>[mailto:MAPSERVER-USERS@LISTS.UMN.EDU] De la<BR>&gt; part de Jachym Cepicky<BR>&gt; Envoyé : 2 novembre 2004 11:18<BR>&gt; Ŕ : MAPSERVER-USERS@LISTS.UMN.EDU<BR>&gt; Objet : [UMN_MAPSERVER-USERS] itemnquery return<BR>&gt; <BR>&gt; <BR>&gt; <BR>&gt; Hallo,<BR>&gt; I use mapserver 4.x<BR>&gt; <BR>&gt; when I use itemquery, the mapserver returns first match, just one<BR>would<BR>&gt; expect<BR>&gt; it.<BR>&gt; <BR>&gt; but when I use itemnquery, mapserver returns&nbsp; [img], which<BR>contains all _n_<BR>&gt; matches, but he returns it _n_ times, so the template file is<BR>also used _n_<BR>&gt; times.<BR>&gt; <BR>&gt; I would like to have something like<BR>&gt;<BR><A href="http://redir.netcentrum.cz/?noaudit&amp;url=http%3A%2F%2Fmaps%2Ednr%2Estate%2Emn%2Eus%2Fcgi%2Dbin%2Fmapserv36%3Fmapserv%3D%252Fcgi%2Dbin%252Fmapserv36"><FONT color=#0055dd>http://maps.dnr.state.mn.us/cgi-bin/mapserv36?mapserv=%2Fcgi-bin%2Fmapserv36</FONT></A><BR>&gt;<BR>&amp;map=%2Fusr%2Flocal%2Fwww%2Fdocs%2Fmapserver_demos%2Ftests36%2Fitemquery%2Fc<BR>&gt;<BR>ase2.map&amp;map_web_imagepath=%2Fusr%2Flocal%2Fwww%2Fdocs%2Ftmp%2F&amp;map_web_imag<BR>&gt;<BR>eurl=%2Ftmp%2F&amp;mode=itemnquery&amp;qlayer=county&amp;map_county_filter=%2FAitkin%7CB<BR>&gt; enton%2F&amp;name=Aitkin&amp;name=Benton<BR>&gt; <BR>&gt; which is i result from<BR>&gt;<BR><A href="http://redir.netcentrum.cz/?noaudit&amp;url=http%3A%2F%2Fmaps%2Ednr%2Estate%2Emn%2Eus%2Fmapserver%5Fdemos%2Ftests40%2Fitemquery%2Ftest%2Ehtml"><FONT color=#0055dd>http://maps.dnr.state.mn.us/mapserver_demos/tests40/itemquery/test.html</FONT></A><BR>&gt; (Case 2: Simple ItemNQuery With QueryMap)<BR>&gt; <BR>&gt; as you can see, mapserver returned only one [img], which contains<BR>two<BR>&gt; maches.<BR>&gt; <BR>&gt; is there some parameter, I have forgotten, which manages the<BR>query returns?<BR>&gt; <BR>&gt; Thank you<BR>&gt; <BR>&gt; Jáchym<BR>&gt; <BR>&gt; P.S. Here the address, which goes from my application to<BR>mapserv:<BR>&gt;<BR><A href="http://redir.netcentrum.cz/?noaudit&amp;url=http%3A%2F%2F10%2E0%2E0%2E16%2Fcgi%2Dbin%2Fmapserv%3Fprogram%3D%252Fcgi%2Dbin%252Fmapserv%26savequery%3Dtrue"><FONT color=#0055dd>http://10.0.0.16/cgi-bin/mapserv?program=%2Fcgi-bin%2Fmapserv&amp;savequery=true</FONT></A><BR>&gt;<BR>&amp;map=%2Fhome%2Fmapserv%2Fpublic_html%2Fkrtiny.map&amp;imgext=-593271.831126+-114<BR>&gt;<BR>9277.640755+-591385.943709+-1147394.887722&amp;imgxy=263+208&amp;image=%2F%7Emapserv<BR>&gt;<BR>%2Ftmp%2Fkrtiny109943484217318.png&amp;scale=&amp;mode=itemnquery&amp;img_addres=%2F%7Em<BR>&gt;<BR>apserv%2Ftmp%2Fkrtiny109943484217318.png&amp;layers=hm1+porostni_mapa+obrys&amp;qstr<BR>&gt;<BR>ing=137Ea1a&amp;qitem=tag&amp;mapext=shape&amp;qlayer=porostni_mapa_k_vyhledavani&amp;imgbox<BR>&gt;<BR>=263+208+263+208&amp;zoomdir=0&amp;zoomsize=4&amp;layer=hm1&amp;layer=porostni_mapa&amp;layer=ob<BR>&gt; rys<BR>&gt; <BR>&gt; --<BR>&gt; Jachym Cepicky<BR>&gt; e-mail: jachym.cepicky@centrum.cz<BR>&gt; URL: <A href="http://redir.netcentrum.cz/?noaudit&amp;url=http%3A%2F%2Fles%2Dejk%2Ecz"><FONT color=#0055dd>http://les-ejk.cz</FONT></A><BR>&gt; <BR>&gt; ---<BR>&gt; Outgoing mail is certified Virus Free.<BR>&gt; Checked by AVG anti-virus system (<A href="http://redir.netcentrum.cz/?noaudit&amp;url=http%3A%2F%2Fwww%2Egrisoft%2Ecom"><FONT color=#0055dd>http://www.grisoft.com</FONT></A>).<BR>&gt; Version: 6.0.784 / Virus Database: 530 - Release Date:<BR>2004-10-27<BR>&gt; <BR>&gt;<BR>