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:[email protected]] On Behalf Of Stephen Woodbridge Sent: Friday, November 04, 2016 9:44 AM To: mapserver-users <[email protected]> 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 [email protected] http://lists.osgeo.org/mailman/listinfo/mapserver-users _______________________________________________ mapserver-users mailing list [email protected] http://lists.osgeo.org/mailman/listinfo/mapserver-users
