artemp/mapnik — Issue #509: mapnik::query resolution needs both x and y components
Author: artemp
Created: 2011-10-11 16:23:02+00:00
State: closed
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.