artemp/trac2github — Issue #390: Add optional but explicit units everywhere
Author: artemp
Created: 2011-10-09 20:31:28+00:00
State: open
Labels: Agg_Renderer

Currently, measurements are specified as simple ints/floats with implied pixel units.

In coordination with recent work on resolution (e.g. ticket:343) it would be worth adding optional units to all measurements, e.g. "pt", "px", "in", "mm", "cm" (this might be a complete list - "em", "ex", and "%" from CSS doesn't make sense in the Mapnik context). Numbers without explicit units would be interpreted as pixels. Pixels (device pixels) would be unaffected by map resolution.

Thoughts?