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>       NAME "porostni_mapa_k_vyhledavani"<BR>       TYPE polygon<BR>       DATA det<BR>       STATUS on<BR>       CLASSITEM vek_st <BR>       LABELITEM vek_st<BR>       SYMBOLSCALE 5000<BR>       CLASS<BR>            NAME 'Porostní mapa k vyhledávání'<BR>            TEMPLATE "krtiny.html"<BR>            COLOR 255 0 0<BR>            SYMBOL "vysledek_dotazu"<BR>        END<BR>   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><sobomsawin@kassini.com> wrote:<BR>> Jachym,<BR>> <BR>> That's not very clear what exactly you expect as results.  Do you<BR>need an<BR>> image (itemnquerymap) or a table of results (itemnquery).  As far<BR>as I can<BR>> see in your URL, you have an imgext and a mapext wich is a little<BR>bit<BR>> confusing since the two functions has almost the same behavior...<BR> Could you<BR>> send more details about your objectives and maybe your mapfile?<BR>> <BR>> Thanks.<BR>> <BR>> Skweda O'Bomsawin<BR>> <BR>> -----Message d'origine-----<BR>> De : UMN MapServer Users List<BR>[mailto:MAPSERVER-USERS@LISTS.UMN.EDU] De la<BR>> part de Jachym Cepicky<BR>> Envoyé : 2 novembre 2004 11:18<BR>> Ŕ : MAPSERVER-USERS@LISTS.UMN.EDU<BR>> Objet : [UMN_MAPSERVER-USERS] itemnquery return<BR>> <BR>> <BR>> <BR>> Hallo,<BR>> I use mapserver 4.x<BR>> <BR>> when I use itemquery, the mapserver returns first match, just one<BR>would<BR>> expect<BR>> it.<BR>> <BR>> but when I use itemnquery, mapserver returns  [img], which<BR>contains all _n_<BR>> matches, but he returns it _n_ times, so the template file is<BR>also used _n_<BR>> times.<BR>> <BR>> I would like to have something like<BR>><BR><A href="http://redir.netcentrum.cz/?noaudit&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>><BR>&map=%2Fusr%2Flocal%2Fwww%2Fdocs%2Fmapserver_demos%2Ftests36%2Fitemquery%2Fc<BR>><BR>ase2.map&map_web_imagepath=%2Fusr%2Flocal%2Fwww%2Fdocs%2Ftmp%2F&map_web_imag<BR>><BR>eurl=%2Ftmp%2F&mode=itemnquery&qlayer=county&map_county_filter=%2FAitkin%7CB<BR>> enton%2F&name=Aitkin&name=Benton<BR>> <BR>> which is i result from<BR>><BR><A href="http://redir.netcentrum.cz/?noaudit&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>> (Case 2: Simple ItemNQuery With QueryMap)<BR>> <BR>> as you can see, mapserver returned only one [img], which contains<BR>two<BR>> maches.<BR>> <BR>> is there some parameter, I have forgotten, which manages the<BR>query returns?<BR>> <BR>> Thank you<BR>> <BR>> Jáchym<BR>> <BR>> P.S. Here the address, which goes from my application to<BR>mapserv:<BR>><BR><A href="http://redir.netcentrum.cz/?noaudit&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&savequery=true</FONT></A><BR>><BR>&map=%2Fhome%2Fmapserv%2Fpublic_html%2Fkrtiny.map&imgext=-593271.831126+-114<BR>><BR>9277.640755+-591385.943709+-1147394.887722&imgxy=263+208&image=%2F%7Emapserv<BR>><BR>%2Ftmp%2Fkrtiny109943484217318.png&scale=&mode=itemnquery&img_addres=%2F%7Em<BR>><BR>apserv%2Ftmp%2Fkrtiny109943484217318.png&layers=hm1+porostni_mapa+obrys&qstr<BR>><BR>ing=137Ea1a&qitem=tag&mapext=shape&qlayer=porostni_mapa_k_vyhledavani&imgbox<BR>><BR>=263+208+263+208&zoomdir=0&zoomsize=4&layer=hm1&layer=porostni_mapa&layer=ob<BR>> rys<BR>> <BR>> --<BR>> Jachym Cepicky<BR>> e-mail: jachym.cepicky@centrum.cz<BR>> URL: <A href="http://redir.netcentrum.cz/?noaudit&url=http%3A%2F%2Fles%2Dejk%2Ecz"><FONT color=#0055dd>http://les-ejk.cz</FONT></A><BR>> <BR>> ---<BR>> Outgoing mail is certified Virus Free.<BR>> Checked by AVG anti-virus system (<A href="http://redir.netcentrum.cz/?noaudit&url=http%3A%2F%2Fwww%2Egrisoft%2Ecom"><FONT color=#0055dd>http://www.grisoft.com</FONT></A>).<BR>> Version: 6.0.784 / Virus Database: 530 - Release Date:<BR>2004-10-27<BR>> <BR>><BR>