[Mapserver-users] Expression parser error
Jan Hartmann
jhart at frw.uva.nl
Thu Mar 27 07:19:17 PST 2003
Agneta,
You have to put the EXPRESSION between quotes, whenever it contains spaces.
EXPRESSION "([GEO]) < 120)"
Generally it is safer to put everything after a keyword between quotes.
Jan
Agneta Schick wrote:
> Dear mapserver-users,
>
> I have no idea where to search for this error; I hope someone can point me
> in the right direction:
>
> Situation: coloring shapes
> Failure: "msyyparse(): Expression parser error. parse error"
> (twice for each shape?!?!)
>
> dbfinfo myshape.dbf:
> Info for data/tiles/geol/gk01_shape.dbf
> 5 Columns, 1052 Records in file
> AREA float (20,5)
> PERIMETER float (20,5)
> GK01_NEU_ integer (11,0)
> GK01_NEU_I integer (11,0)
> GEO integer (4,0)
>
> mymap.map: ---this works ok----
> ...
> LAYER
> NAME 'geology'
> DATA gk01_shape
> TYPE POLYGON
> STATUS ON
> ...
> CLASSITEM "GEO"
> CLASS
> EXPRESSION /./
> OUTLINECOLOR 0 0 0
> COLOR 255 255 255
> END
> END
> ...
>
> but I get the above error message when I add
> CLASS
> EXPRESSION ([GEO]) < 120) # 0 <= [GEO] <= 657
> COLOR 0 142 224
> END
>
> I'm running MapServer3.6.3, Perl MapScript on Sun Solaris8
> (with gd-1.8.4, gdal-1.1.8, proj-4.4.5, shapelib-1.2.9)
>
> Thanks for any hints.
>
> Agneta Schick
>
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> Agneta Schick
>
> Bundesanstalt fuer Geowissenschaften und Rohstoffe
> Federal Institute for Geosciences and Natural Resources
> Stilleweg 2
> D- 30655 Hannover Tel.: +49 511 643 3136
> GERMANY FAX.: +49 511 643 3663
>
> schick at sdac.hannover.bgr.de http://www.seismologie.bgr.de
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>
>
>
>
> _______________________________________________
> Mapserver-users mailing list
> Mapserver-users at lists.gis.umn.edu
> http://lists.gis.umn.edu/mailman/listinfo/mapserver-users
>
More information about the MapServer-users
mailing list