[mapserver-users] itemquery

Puneet Kishor pkishor at GeoAnalytics.com
Tue Jul 17 17:07:00 EDT 2001


Hi Steve,

Thanks once again for your reply. Here are some specifics...

> 
> Which version are you using? Itemquery is hosed in 3.5 but 

I am using 3.4, which of course has its own related issues (existing docs
are for 3.3x, so a bunch of keywords are hit-and-miss). Anyway, I am using
3.4, not 3.5.

> of possiblities. Itemquery is really just a regular 
> expression test. Value is the 
> expression and item, is well, the item. 

that is why I am so surprised that it doesn't work.

> map file. So, two things to check:
> 
>   - if not explicitly setting an extent then make sure the 
> extent in your map file is
>     all inclusive

I am not setting an explicit mapextent... simply using the all inclusive
default map extent. That said, I am not even reaching that far... I would be
happy if msQueryUsingItem() simply found the shape where item=MCD_NAME and
value=MADISON. Once it can query and find correctly, only then will I worry
about mapping that feature.

> 
>   - is there a query object defined for the layer mcds
> 

I think so... it looks like so...

LAYER
  NAME mcds
  TYPE polygon
  STATUS on
  DATA "shapes/boundaries/mcdppoly" 
  CLASSITEM mcd_name
  CLASS 
    NAME "MCDs"
    EXPRESSION /./
    OUTLINECOLOR 128 128 128
    COLOR 245 245 245
  END
  HEADER "mcds_header.html"
  FOOTER "mcds_footer.html"
  QUERY
    TEMPLATE "mcds.html"    
  END
END


> Steve
> 
> Stephen Lime
> Internet Applications Analyst
> 
> 
> >>> Puneet Kishor <pkishor at GeoAnalytics.com> 07/17/01 03:16PM >>>
> I am defeated...
> 
> I have a layer called "mcds" with an item called "MCD_NAME" 
> and a value for
> that item called "MADISON".
> 
> I am sending a url with 
> 
> mode=itemquery&qlayer=mcds&item=MCD_NAME&value=MADISON 
> 
> but I keep getting 
> 
> msQueryUsingItem(): Search returned no results. No matching 
> record(s) found.
> 
> I know it is there (and, yes, I have preserved the case of 
> the names and
> attributes correctly). Is there anyway to look at a debug 
> string to figure
> out what the blessed Search is being performed with 
> msQueryUsingItem()? What
> am I doing wrong?
> 
> Many tia,
> 
> pk/
> 
> --
> Puneet Kishor 
> pkishor at geoanalytics.com 
> www.geoanalytics.com 
> 
> GeoAnalyics, Inc.
> 1716 Fordem Ave
> Madison WI 53704
> 



More information about the mapserver-users mailing list