[UMN_MAPSERVER-USERS] itemnquery return
JáchymČepický
jachym.cepicky at CENTRUM.CZ
Tue Nov 9 10:19:27 PST 2004
Hallo,
thank you for your reply. You guessed well, I needed the
itemnquerymap
(and not the itemnquery). I new, I did not read enough.
Now I get the right image (and only ones), however mapserv doesn't
seem to use the template file. He seems to wish any template file
only
by itemnquery.
The (I hope) important part of mapfile look's like this:
LAYER
NAME "porostni_mapa_k_vyhledavani"
TYPE polygon
DATA det
STATUS on
CLASSITEM vek_st
LABELITEM vek_st
SYMBOLSCALE 5000
CLASS
NAME 'Porostní mapa k vyhledávání'
TEMPLATE "krtiny.html"
COLOR 255 0 0
SYMBOL "vysledek_dotazu"
END
END
I hope, I'm sending you enough information. If not, sorry, just give
me some word and I will send what you need. I'm afraid, these are
only
the beginner's problems.
On Wed, 3 Nov 2004 09:43:52 -0500, Skweda O'Bomsawin
<sobomsawin at kassini.com> wrote:
> Jachym,
>
> That's not very clear what exactly you expect as results. Do you
need an
> image (itemnquerymap) or a table of results (itemnquery). As far
as I can
> see in your URL, you have an imgext and a mapext wich is a little
bit
> confusing since the two functions has almost the same behavior...
Could you
> send more details about your objectives and maybe your mapfile?
>
> Thanks.
>
> Skweda O'Bomsawin
>
> -----Message d'origine-----
> De : UMN MapServer Users List
[mailto:MAPSERVER-USERS at LISTS.UMN.EDU] De la
> part de Jachym Cepicky
> Envoyé : 2 novembre 2004 11:18
> Ŕ : MAPSERVER-USERS at LISTS.UMN.EDU
> Objet : [UMN_MAPSERVER-USERS] itemnquery return
>
>
>
> Hallo,
> I use mapserver 4.x
>
> when I use itemquery, the mapserver returns first match, just one
would
> expect
> it.
>
> but when I use itemnquery, mapserver returns [img], which
contains all _n_
> matches, but he returns it _n_ times, so the template file is
also used _n_
> times.
>
> I would like to have something like
>
http://maps.dnr.state.mn.us/cgi-bin/mapserv36?mapserv=%2Fcgi-bin%2Fmapserv36
>
&map=%2Fusr%2Flocal%2Fwww%2Fdocs%2Fmapserver_demos%2Ftests36%2Fitemquery%2Fc
>
ase2.map&map_web_imagepath=%2Fusr%2Flocal%2Fwww%2Fdocs%2Ftmp%2F&map_web_imag
>
eurl=%2Ftmp%2F&mode=itemnquery&qlayer=county&map_county_filter=%2FAitkin%7CB
> enton%2F&name=Aitkin&name=Benton
>
> which is i result from
>
http://maps.dnr.state.mn.us/mapserver_demos/tests40/itemquery/test.html
> (Case 2: Simple ItemNQuery With QueryMap)
>
> as you can see, mapserver returned only one [img], which contains
two
> maches.
>
> is there some parameter, I have forgotten, which manages the
query returns?
>
> Thank you
>
> Jáchym
>
> P.S. Here the address, which goes from my application to
mapserv:
>
http://10.0.0.16/cgi-bin/mapserv?program=%2Fcgi-bin%2Fmapserv&savequery=true
>
&map=%2Fhome%2Fmapserv%2Fpublic_html%2Fkrtiny.map&imgext=-593271.831126+-114
>
9277.640755+-591385.943709+-1147394.887722&imgxy=263+208&image=%2F%7Emapserv
>
%2Ftmp%2Fkrtiny109943484217318.png&scale=&mode=itemnquery&img_addres=%2F%7Em
>
apserv%2Ftmp%2Fkrtiny109943484217318.png&layers=hm1+porostni_mapa+obrys&qstr
>
ing=137Ea1a&qitem=tag&mapext=shape&qlayer=porostni_mapa_k_vyhledavani&imgbox
>
=263+208+263+208&zoomdir=0&zoomsize=4&layer=hm1&layer=porostni_mapa&layer=ob
> rys
>
> --
> Jachym Cepicky
> e-mail: jachym.cepicky at centrum.cz
> URL: http://les-ejk.cz
>
> ---
> Outgoing mail is certified Virus Free.
> Checked by AVG anti-virus system (http://www.grisoft.com).
> Version: 6.0.784 / Virus Database: 530 - Release Date:
2004-10-27
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20041109/3e448ed3/attachment.htm>
-------------- next part --------------
An embedded message was scrubbed...
From: =?UTF-8?Q?J=C3=A1chym_=C4=8Cepick=C3=BD?=
<jachym.cepicky at gmail.com>
Subject: itemnquery return
Date: Tue, 9 Nov 2004 19:13:15 +0100
Size: 5452
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20041109/3e448ed3/attachment.eml>
More information about the MapServer-users
mailing list