[mapserver-users] Itemquery problem

Müller Ulrich Ulrich.Mueller at bd.so.ch
Thu Feb 14 09:17:36 EST 2002


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

-------------- next part --------------
A non-text attachment was scrubbed...
Name: =?ISO-8859-1?Q?M=FCller_Ulrich=2Evcf?=
Type: application/octet-stream
Size: 367 bytes
Desc: not available
Url : http://lists.osgeo.org/pipermail/mapserver-users/attachments/20020214/4182339d/ISO-8859-1QMFCller_Ulrich2Evcf.obj


More information about the mapserver-users mailing list