MapServer / MapServer-import

3 stars 2 forks source link

setFilter does not always work #340

Closed tbonfort closed 12 years ago

tbonfort commented 12 years ago

Reporter: bear@prometheus.org.yu Date: 2003/06/17 - 15:44

I have a problem with setFilter

I have a layer in my .map file that goes:

LAYER
  NAME "inside"
  CONNECTIONTYPE mygis
  CONNECTION "localhost:user:pass:rzs:bin:"
  DATA "geometry from okrug feature, okrug_bin geometry"
  STATUS ON
  TYPE POLYGON
  FILTER "f_ID=1"
  CLASS
    COLOR 0 155 155
  END
END

and filtering works fine. However, if I try this from phpmapscript

$layer = $map->getLayer(0);
$layer->setFilter("f_ID=1");

mapscript fails when I call $map->draw it aborts with

MapServer Error in msDrawMap(): Failed to draw layer named 'inside'

this happens regardless of what I try to set the filter to.
tbonfort commented 12 years ago

Author: bear@prometheus.org.yu Date: 2003/06/18 - 11:56

string cutting in the parser happens at _, too :(

*** This bug has been marked as a duplicate of 242 ***