[Mapserver-users] Use of qstring in CGI itemquerymap
Martin, Daniel A
Daniel.A.Martin at erac.com
Fri Oct 24 14:28:44 PDT 2003
Some more background. I'm using the Windows 4.0 binaries from the UMN site.
The qlayer is a MapInfo TAB file through OGR.
Under 3.6, I used this:
FILTER /^%value%/
on the Layer object.
How do I accomplish the query in qstring? I must be missing something simple, because I'm getting back the error:
msQueryByPoint(): Search returned no results. No matching record(s) found.
As for the documentation, it merely tells a Windows user like myself to search "man 7 regex". I've read "man 7 regex" a dozen times. I've read every regex tutorial I could find on the web. I consider myself a somewhat intelligent person, and I still had to solve this the first time in MS 3.6 through pure trial and error. Maybe I'm just a dumb Windows user after all, but I really feel the regex documentation on the web is sad. That's not the MapServer documentation's fault, but still a real problem for me.
Thanks,
Dan
> -----Original Message-----
> From: Steve Lime [mailto:steve.lime at dnr.state.mn.us]
> Sent: Friday, October 24, 2003 4:10 PM
> To: Martin, Daniel A; mapserver-users at lists.gis.umn.edu
> Subject: Re: [Mapserver-users] Use of qstring in CGI itemquerymap
>
>
> Hi Dan: MapServer experssions are documented in the mapfile guide. It
> should be noted that item queries are structured so that you can take
> advantage of the underlying RDBMS if one exists. So in reality qstring
> is identical in syntax to a layer FILTER. Let us know what
> the old item
> query did and we can help translate to the way things work in 4.0.
>
> Steve
>
> >>> "Martin, Daniel A" <Daniel.A.Martin at erac.com> 10/24/2003 12:08:05
> PM >>>
> I've found plenty of documentation about the new CGI attribute query
> techniques in MS 4.0, using qstring. But all this documentation says
> "Query string passed to the query function," or "a valid MapServer
> expression, string comparison, regular or logical".
>
> But I can't find any good documentation on what I need to do to get my
> itemquerymap working in 4.0 (was working in 3.6). I can't
> seem to find
> any helpful documentation on MapServer expressions.
>
> Any help is appreciated,
> Dan Martin
>
> _______________________________________________
> Mapserver-users mailing list
> Mapserver-users at lists.gis.umn.edu
> http://lists.gis.umn.edu/mailman/listinfo/mapserver-users
>
More information about the MapServer-users
mailing list