[Mapserver-users] FILTER and building URL's

Mike Reilly mikereilly_7 at hotmail.com
Sat Mar 13 18:32:47 EST 2004


I have a layer in my mapfile called tuspoints - a point layer in a 
shapefile.  The dbf for the shapefile has a field named SITEID.  What I want 
to do is to dynamically generate a URL to my map and have it only display a 
single point site based on the SITEID.  I tried adding a FILTERITEM to the 
mapfile:

FILTERITEM  "SITEID"

and then generating a URL like the following:

http://192.168.0.3/cgi-bin/mapserv.exe?map=f%3A%2Fprogram+files%2Fapache+group%2Fapache2%2Fhtdocs%2FKitasoo%2Ftus2-1.map&imgext=760901.497924+786480.527440+898880.364040+889492.652920&imgxy=398+297&imgbox=398+297+398+297&mode=browse&zoom=1&layers=tuspoints&map_tuspoints_filter="[SITEID]"='1660'

with the &map_tuspoints_filter="[SITEID]"='1660' part being the relevent 
part.  I'm obviously doing something very wrong here - can anyone point it 
out for me?  It keeps displaying all the points in the layer.  I've been 
searching through the archives but haven't found anything that can give me 
the correct results.

This may or may not be relevent:  I actually have two layers that are named 
tuspoints - one is a point layer and one is a polygon layer - they allow me 
to display all point and polygon sites on the map with no labels.

_________________________________________________________________
MSN Premium helps eliminate e-mail viruses. Get 2 months FREE*  
http://join.msn.com/?pgmarket=en-ca&page=byoa/prem&xAPID=1994&DI=1034&SU=http://hotmail.com/enca&HL=Market_MSNIS_Taglines




More information about the mapserver-users mailing list