[Mapserver-users] Change Map-Filter via URL - Problems with Point Layer?
Robert Fritz
robert-fritz at web.de
Sun Jun 8 03:48:44 PDT 2003
Hello,
I have 2 Point-Shapes and I want to change the "Filter" of the Layers via
URL.
But it seems not to work. If i use Polygon-Layers, everything works fine.
I converted the point Layer to Polygon Layer and changed nothing in my
Scripts -
using the Point Layers the Filter is not changed, using the Polygon Layers I
get the correct results.
Is there a difference between Point and Polygon Layers, using itemquery &
changing the filter via URL?
Or do I something other wrong?
Thank you,
robert
-------------------Map File:
LAYER
NAME BaumPolygon
TYPE Polygon
STATUS On
DATA Baum_Polygon
Filter ("[Baumid]" =~ /^%baumid%/) # I change the Filter via URL e.g. to
("[Baumid]" =~ /^%baumid%/ AND "[ART]" =~/%art%/)
CLASS
......
LAYER
NAME Baum
TYPE POINT
STATUS On
DATA Baum
Filter ("[Baumid]" =~ /^%baumid%/) # I want to change, but it does not
change e.g. to ("[Baumid]" =~ /^%baumid%/ AND # "[ART]"
=~/%art%/)
CLASS
Symbol "circle"
.......
My HTML Page:
Polygon-Layer
<input type="hidden" name="baumid" value="">
<input type="hidden" name="art" value="">
<input type="hidden" name="map_BaumPolygon_Filter" value="">
Point-Layer
<input type="hidden" name="baumid" value="">
<input type="hidden" name="art" value="">
<input type="hidden" name="map_Baum_Filter" value="">
More information about the MapServer-users
mailing list