I'm trying to render a map to paper using Mapnik at a specific scale (such as 1:50k), but can't yet figure out how. So far I'm just using
map.zoom_to_box (mapnik.Envelope (101.5,3.2,102,3.3))
and play with
MinScaleDenominator in the styling rules..
But when done this way, I can only guess-work the map scale by adjusting the bounding box over and over, which is hard to obtain the exact 1:50k scale that I wanted.. I've also found this:
map.scale(), but I think these are used only to display the map scale - not setting it..
Is there anyone here who can help me?