[mapserver-users] Itemquery problem
Müller Ulrich
Ulrich.Mueller@bd.so.ch
Thu, 14 Feb 2002 15:17:36 +0100
This message is in MIME format. Since your mail reader does not understand
this format, some or all of this message may not be legible.
------_=_NextPart_000_01C1B562.59BC0000
Content-Type: text/plain;
charset="ISO-8859-1"
Hi Listers
This may be one of the most often asked questions: Why do I not get the
correct result from ITEMQUERY?
I have a polygon layer (Shape) named parznum. It has about 50000 records and
a numeric field named sys_obid. Among those 50000 records there is exactly
one with sys_obid=25489. Now I want to run an itemquery to find this record
with sys_obid=25489.
With JavaScript I create the following URL:
...&qlayer=parznum&mode=itemquery&item=sys_obid&value=25489&...
I get no results.
I also tried it with a regular expression:
...&qlayer=parznum&mode=itemquery&item=sys_obid&value=^25489$&...
Again - no results.
As a test I then used this url:
...&qlayer=parznum&mode=itemquery&item=sys_obid&value=489&...
As result I get a record with sys_obid=48966. But that is not what I want.
Any ideas?
Uli
LAYER
NAME parznum
STATUS ON
DATA "kva/av93/liegentest"
TYPE POINT
CLASSITEM "sys_obid"
QUERYITEM "sys_obid"
CLASS
END
QUERY
TEMPLATE
"http://intraso.so.ch/sogis/adresse.php?applic_id=[applic_id]&shpmid=[shpmid
]"
END
END
END # Map File
------_=_NextPart_000_01C1B562.59BC0000
Content-Type: application/octet-stream;
name="=?ISO-8859-1?Q?M=FCller_Ulrich=2Evcf?="
Content-Transfer-Encoding: quoted-printable
Content-Disposition: attachment;
filename="=?ISO-8859-1?Q?M=FCller_Ulrich=2Evcf?="
BEGIN:VCARD
VERSION:2.1
N:M=FCller;Ulrich
FN:Ulrich M=FCller
ORG:GIS-Koordinationsstelle;Amt f=FCr Raumplanung
TEL;WORK;VOICE:+41 (032) 6272475
TEL;WORK;FAX:+41 (032) 6272214
ADR;WORK:;;R=F6tihof;Solothurn;;4500;Schweiz
LABEL;WORK;ENCODING=3DQUOTED-PRINTABLE:R=3DF6tihof=3D0D=3D0ASolothurn =
4500=3D0D=3D0ASchweiz
EMAIL;PREF;INTERNET:Ulrich.Mueller@bd.so.ch
REV:20010116T072945Z
END:VCARD
------_=_NextPart_000_01C1B562.59BC0000--