itemquery and itemquerymap

Robin.Ellis at dnr.qld.gov.au Robin.Ellis at dnr.qld.gov.au
Wed Jul 26 21:35:07 EDT 2000


Thanks very much Steve. You've just nailed it.

-----Original Message-----
From: Stephen Lime [mailto:steve.lime at dnr.state.mn.us]
Sent: Thursday, 27 July 2000 11:29
To: Robin.Ellis at dnr.qld.gov.au
Cc: mapserver-users at lists.gis.umn.edu
Subject: Re: itemquery and itemquerymap


Itemquery uses regex's not strcmp. So just use a value like ^191$ and that
should ensure a unique match.

Steve

>>> <Robin.Ellis at dnr.qld.gov.au> 07/26/00 19:28 PM >>>
I'm trying to use the itemquerymap mode to return a query map depicting the
polygon I've just selected from a list of polygon numbers. This works fine
for polygon numbers that are completely unique (ie contain the maximum
amount of characters), however for thos that are not entirley unique I get
multiple results (which I don't want).

For example, if I submit polygon number 191, I get a query map showing me
polygons "191" and "1191" (there are only 1400 polygons, so 4 digits is the
maximum).

I think I need to use a regular expression to tell MapServer to match the
polygon number returned entirely, and not to view it as a string that may be
part of a larger text string.

Does anybody have any thoughts on how I might achieve this?

Thanks

Rob


Robin Ellis
Land Resources Officer
Department of Natural Resources
Burnett District
ph: 07 4153 7843
fax: 07 4153 7823
Robin.Ellis at dnr.qld.gov.au



************************************************************************
The information in this e-mail together with any attachments is
intended only for the person or entity to which it is addressed
and may contain confidential and/or privileged material.

Any form of review, disclosure, modification, distribution
and/or publication of this e-mail message is prohibited.  

If you have received this message in error, you are asked to
inform the sender as quickly as possible and delete this message
and any copies of this message from your computer and/or your
computer system network.  
***********************************************************************



More information about the mapserver-users mailing list