Hi Guys,

I am trying to use regular expression in a style filter. I am basing off
this wiki page http://trac.mapnik.org/wiki/SymbologySupport .

My style:
<Style name="roads-text">
    <Rule>
      <Filter>[NAME].match('\S') </Filter>
      ..
    </Rule>
  </Style>

For testing purposes, I am matching a non-space character.

I get the following error in viewer:

Failed to parse filter expression:
[NAME].match('\S')
Parsing aborted at '.match('\S')' in style 'roads-text'

Can any one advice?

Any help is greately appreciated.

Xin
_______________________________________________
Mapnik-users mailing list
[email protected]
https://lists.berlios.de/mailman/listinfo/mapnik-users

Reply via email to