artemp/trac2github — Issue #510: mapnik::query resolution needs both x and y components
Author: artemp
Created: 2011-10-09 20:38:12+00:00
State: open
Labels: Core_Library

At the moment resolution is calculated as ratio :

map_width/box_width

This causes creation of unnecessary large images (gdal.input) in some corner cases e.g pan raster left or right so only a tiny strip is visible and get memory alloc exception.

The solution is to use two components for resolution.