gdal: ensure scaling is available within raster_symbolizer at necessary scales by avoiding pre-scaling in gdal RasterIO

This commit is contained in:
Dane Springmeyer 2009-10-22 16:58:03 +00:00
parent 786242eb9d
commit 5e16e04b28

View file

@ -133,6 +133,14 @@ feature_ptr gdal_featureset::get_feature(mapnik::query const& q)
int im_width = int(q.resolution() * intersect.width() + 0.5);
int im_height = int(q.resolution() * intersect.height() + 0.5);
// case where we need to avoid upsampling so that the
// image can be later scaled within raster_symbolizer
if (im_width >= width || im_height >= height)
{
im_width = width;
im_height = height;
}
mapnik::ImageData32 image(im_width, im_height);
image.set(0xffffffff);