Map Filters
Steve Lime
Steve.Lime at DNR.STATE.MN.US
Fri Aug 25 08:16:38 PDT 2006
In your second example (doesn't work), I'll ask a silly question. Are
you properly escaping the url- like the = in your filter?
One other idea, what happens if you put that filter in the mapfile
instead of passing it?
Steve
>>> Randy How <rhow at I3.COM> 8/24/2006 7:46:29 PM >>>
Greetings,
I've been having unpredictable luck generating a map from MapServer
4.9
using "map filters" in the query string. I don't get an error, there's
no
image produced or filename in the response.
Is there something wrong in the layer definition?
Is there something about the URL, specifically the syntax of the map
filter
parameter?
Layer in Mapfile
LAYER
NAME "product"
CONNECTIONTYPE postgis
CONNECTION "user=uuuu password=xxxx dbname=ddddd host=m.m.m.m"
DATA "geometry from coverage"
STATUS DEFAULT
TYPE POLYGON
PROJECTION
"init=epsg:4326"
END
CLASS
OUTLINECOLOR 255 0 0
SYMBOL 1
SIZE 3
LABEL
TYPE bitmap
SIZE large
POSITION cc
COLOR 0 153 0
END
END
END
Works
http://development-1/development/webapplication/datadoors_1/MapServer2/mapse
rv.exe?
map=C:\Inetpub\wwwroot\development\webapplication\datadoors_1\ms_data\produc
t_coverage.map&
mode=browse&mapext=-128.10565 22.73085 -63.60935 50.65215
Does not work
http://development-1/development/webapplication/datadoors_1/MapServer2/mapse
rv.exe?
map=C:\Inetpub\wwwroot\development\webapplication\datadoors_1\ms_data\produc
t_coverage.map&
mode=browse&mapext=-128.10565 22.73085 -63.60935 50.65215&
map_product_filter=product_id=1
Thanks
________________________________________________
Randy How
Geospatial Applications Developer
Rhow [at] i3.com
More information about the MapServer-users
mailing list