Hi Holger, Those deprecation warnings are harmless - which is partly why I've not made the simple fix in the mapnik2 branch to get rid of them - as other issues still exist.
But, I will look to fix this up soon - thanks for the report. Please post other issues you run into at https://github.com/mapnik/Cascadenik/issues. Dane On Dec 8, 2010, at 6:32 AM, Holger Schöner wrote: > Hi, > > I am trying to upgrade my old cascadenik/mapnik based rendering to mapnik2. > So > far I have succeeded in most of this. Where I am still at a loss is the > handling of the name column (and usage of the extended expression syntax) in > cascadenik: > > http://trac.mapnik.org/wiki/Mapnik2 states that cascadenik supports mapnik2 > (although, is it out of date? I am currently using the mapnik2-branch of the > git repository, because master did not seem to handle mapnik2). But running > > cascadenik-compile.py -v text.mml text.xml > > yields a lot of warnings in the form > ---------- > Deprecation Warning: symbolizer value now an expression, please wrap properly > in brackets like "[name]" > ---------- > > At least, in this way the text symbolizers are still included in the xml > file. > But if I try to follow the suggestion and do different kinds of wrapping > inside > brackets and/or quotes, I either still get these warnings (using brackets) > and > nothing seems to change in generated output, or I do not get any warning, but > the xml file does not include a single TextSymbolizer (if I use quotes). > > I tried studying the code (I could not even find where this warning is > generated, none of the text seems to appear in any code file?), using > cascadenik-style.py for debugging, search the internet for example style > files > (but could not find a single one using anything resembling expression > language), but I could not resolve this problem. > > Concluding, it seems to me, that using expressions for the name attribute of > TextSymbolizers is not yet possible with Cascadenik, and I will have to stay > with simply providing the column name directly and live with the warnings in > the moment. Is this correct? > > Thanks, > -- > Holger Schoener [email protected] > _______________________________________________ > Mapnik-users mailing list > [email protected] > https://lists.berlios.de/mailman/listinfo/mapnik-users _______________________________________________ Mapnik-users mailing list [email protected] https://lists.berlios.de/mailman/listinfo/mapnik-users

