[mapserver-users] Can Mapserver expressions contain parens?

Lime, Steve D (MNIT) Steve.Lime at state.mn.us
Fri Nov 4 07:57:24 PDT 2016


Steve: A width value can be a double or a reference to an attribute only (an attribute binding). It can't be an expression... You'd need to do that computation elsewhere, obviously easy with a database.

Steve

-----Original Message-----
From: mapserver-users [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Stephen Woodbridge
Sent: Friday, November 04, 2016 9:44 AM
To: mapserver-users <mapserver-users at lists.osgeo.org>
Subject: [mapserver-users] Can Mapserver expressions contain parens?

I'm trying to use a style like:

       STYLE
         COLOR "#000000"
         WIDTH (([FEATWIDTH]+.4)*10)
       END

but I'm getting:

getSymbol(): Symbol definition error. Parsing error near 
(([FEATWIDTH]+.4)*10):(line 1620)


MapServer version 6.4.1 OUTPUT=PNG OUTPUT=JPEG SUPPORTS=PROJ 
SUPPORTS=AGG SUPPORTS=FREETYPE SUPPORTS=CAIRO SUPPORTS=SVG_SYMBOLS 
SUPPORTS=SVGCAIRO SUPPORTS=ICONV SUPPORTS=FRIBIDI SUPPORTS=WMS_SERVER 
SUPPORTS=WFS_SERVER SUPPORTS=WCS_SERVER SUPPORTS=FASTCGI SUPPORTS=GEOS 
INPUT=JPEG INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE

-Steve W

---
This email has been checked for viruses by Avast antivirus software.
https://www.avast.com/antivirus

_______________________________________________
mapserver-users mailing list
mapserver-users at lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


More information about the MapServer-users mailing list