artemp/tickets2issues — Issue #173: empty text labels get rendered as zero (0)
Author: artemp
Created: 2011-10-11 14:59:53+00:00
State: open
Labels: Core_Library

When running the SVN mapnik tree I get lots of 0 for text labels. This occurs of a road has no label. This started happening since r657 removed NUL columns from the postgis result set.

The problem occurs because the text symbolizer accesses 'feature[sym.get_name()]' which will return a value(0) if the name does not exist in the feature properties.

I have a tentative fix which I'll attach.