[Mapserver-users] Expression parser error
Leah Roderman
elrod at oaktownunderground.com
Wed Jan 7 14:21:33 PST 2004
I'm curious about a msyyparse() error that is clogging my mapserv.out log. Here's the offending layer lifted straight from my mapfile:
LAYER
NAME "roads"
DATA tgr06001lkA
STATUS DEFAULT
TYPE LINE
CLASSITEM "ZIPL"
CLASS
EXPRESSION ([ZIPL] > 94600 AND [ZIPL] < 94700)
COLOR 0 0 0
END # class
END # layer
>From the browser, the layer displays and Mapserver doesn't seem to hang. I went digging around the archives and tried variations on the expression line above, with differing display results but was unable to eliminate the logfile error (except of course by removing the layer in question altogether).
displays correctly :([ZIPL] > 94600 AND [ZIPL] < 94700)
displays correctly: (([ZIPL] > 94600) AND ([ZIPL] < 94700))
displays nothing: ([ZIPL] > 94600) AND ([ZIPL] < 94700)
displays nothing: ('[ZIPL]' > '94600' AND '[ZIPL]' < '94700')
displays nothing: ('[ZIPL]' > '94600') AND ('[ZIPL]' < '94700')
displays nothing: (('[ZIPL]' > '94600') AND ('[ZIPL]' < '94700'))
Please let me know if you've encountered same and found a way to eliminate those irksome errors; thanks.
config details
- Mapserver 4.01 with- gd, zlib, png, proj, jpeg, postgis, gdal, ogr, pdf
- Linux RedHat 9.0
- Apache HTTP && Tomcat
- pgsql-7.3.2, postgis-0.8.0
More information about the MapServer-users
mailing list