query - solution

b-8 at gmx.de b-8 at gmx.de
Tue Sep 19 17:58:01 EDT 2000


okay, I was playing around a bit and found a possible way to go.
I now have a form containing the query I want to use in a field
like that
<input type="hidden" name="map_lakes_query_expression">,
which overwrites the existing query-expression in my mapfile for the
layer called 'lakes'.
Then I do a spatial query (nquery) with
<input type="hidden" name="imgbox" value="0 0 [mapsize]">
to do the query for the currently shown map ...
<input type="hidden" name="imgext" value="[mapext]">

To query all the features on the map, I just have to set
the value of "imgext" and "imgbox" to "", so I get the
whole list (in my case)

The whole appl can be seen at
http://resac.gis.umn.edu/lakebrowser

Regards
	Michael


> Nope. Item queries only support regex matches. I have no desire to write
> an
> SQL parser so I've left that to other systems like the perl Xbase
> module and 
> others. You can link these types of queries and mapping using
> mapscript.
> 
> Steve
> 
> Stephen Lime
> Internet Applications Analyst
> 
> Minnesota DNR
> 500 Lafayette Road
> St. Paul, MN 55155
> 651-297-2937
> 
> >>> <b-8 at gmx.de> 09/15/00 05:19PM >>>
> Hi,
> 
> is it possible to do a query of the type '[attribute] < 47' ?
> I'm using itemquery for a string search in my app, but know
> I need to search for that kind of stuff ...
> 
> thanks in advance
> 	Michael
> 
> -- 
> Sent through GMX FreeMail - http://www.gmx.net 
> 
> 

-- 
Sent through GMX FreeMail - http://www.gmx.net



More information about the mapserver-users mailing list