Filter parsing: Allow numbers in the filter field name. This allows for shapefiles with columns like '1970'.

This commit is contained in:
Jon Burgess 2009-02-01 23:07:37 +00:00
parent 2ecd01e1e4
commit cc91460a01
2 changed files with 4 additions and 1 deletions

View file

@ -14,6 +14,9 @@ For a complete change history, see the SVN log.
Current Version (0.6.0-dev, SVN trunk): Current Version (0.6.0-dev, SVN trunk):
--------------------------------------- ---------------------------------------
- Filter parsing: Allow numbers in the filter field name.
This allows for shapefiles with columns like '1970'.
- Plugins: Added OGR driver for reading all OGR supported formats (kunitoki) (r836) (#170) - Plugins: Added OGR driver for reading all OGR supported formats (kunitoki) (r836) (#170)
- Python: Made available the scale_denominator property from the map in c++ and python (r793) - Python: Made available the scale_denominator property from the map in c++ and python (r793)

View file

@ -422,7 +422,7 @@ namespace mapnik
[push_string<FeatureT>(self.exprs,self.tr)], [push_string<FeatureT>(self.exprs,self.tr)],
L'\''); L'\'');
property = L'[' >> ( (Letter | L'_' | L':') property = L'[' >> ( (Letter | Digit | L'_' | L':')
>> *NameChar )[push_property<FeatureT>(self.exprs)] >> L']'; >> *NameChar )[push_property<FeatureT>(self.exprs)] >> L']';
literal = boolean | number | string_ | property; literal = boolean | number | string_ | property;