[Mapserver-users] itemquery - wrong number of results

Richard Greenwood Rich at GreenwoodMap.com
Mon Oct 13 11:06:44 EDT 2003


At 04:36 PM 10/13/2003 +0200, you wrote:

>Hi,<?xml:namespace prefix = o ns = 
>"urn:schemas-microsoft-com:office:office" />
>
>
>
>
>
>The Shape File which I use has 241 rows (in ArcView). I use Mapserver3.6 
>on Win2000.
>
>I do a itemquery and set the FILTER like "Filter ("[Number]" =~ /^%item1%/)".
>
>The column "Number" is string-type.
>
>
>
>"Item1" is set via URL.
>
>
>
>If "item1" is empty, I get 217 rows but it should be 241?
>
>If "item1" is "106" I get "no results", although this string is in the table.
>
>If "item1" is "105" I get the data for this object – but I can not see any 
>differences between "106" and "105".
>
>
>
>I created an new column in ArcView and copied all entries, using the 
>option "asString".
>
>No difference.
>
>
>
>But if I set a class like this:
>
>classitem NUMBER
>
>   class
>
>              Expression "106"
>
>              COLOR 255 0 0
>
>      OUTLINECOLOR 0 0 0
>
>    End
>
>
>
>the object is shown in the map.
>
>
>
>
>
>If I use Mapserv 4 on Win2000 I get the same problem. Maybe the Shape-File 
>has an error???
>
>What can I do?

Check that your extents totally encompass your data. If there are objects 
outside of the extents that you set in the .map file, they will display, 
but not be returned in an itemnquery.

Rich



Richard W. Greenwood, PLS
Greenwood Mapping, Inc.
Rich <at> GreenwoodMap <dot> com
(307) 733-0203
http://www.GreenwoodMap.com 





More information about the mapserver-users mailing list