[mapserver-users] Can Mapserver expressions contain parens?
lars.schylberg at blixtmail.se
lars.schylberg at blixtmail.se
Fri Nov 4 12:20:16 PDT 2016
In this case I would do the computation in a OGR SQL request to create a new variable.
The SQL computation could also be done in a VRT.
Lars S.-----Originalmeddelande-----
> Från: "Stephen Woodbridge" <woodbri at swoodbridge.com>
> Till: mapserver-users at lists.osgeo.org
> Datum: 2016-11-04 16:17
> Ämne: Re: [mapserver-users] Can Mapserver expressions contain parens?
>
> Ok, on an issue with parens as I reorged the expression to
> ([FEATWIDTH]*10+4) and still get an error:
>
> getSymbol(): Symbol definition error. Parsing error near
> ([FEATWIDTH]*10+4):(line 1620)
>
> So maybe expressions are not allowed on WIDTH?
>
> -Steve W
>
> On 11/4/2016 10:43 AM, Stephen Woodbridge wrote:
> > 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20161104/86b0ef89/attachment.htm>
More information about the MapServer-users
mailing list