gdal: Count in filter_factor

This commit is contained in:
Jiri Drbalek 2018-09-04 13:06:20 +00:00 committed by Christoph Paulik
parent 1e175e3dd4
commit 95b8801ea3

View file

@ -204,8 +204,8 @@ feature_ptr gdal_featureset::get_feature(mapnik::query const& q)
// resolution is 1 / requested pixel size
const double width_res = std::get<0>(q.resolution());
const double height_res = std::get<1>(q.resolution());
int im_width = int(width_res * intersect.width() + 0.5);
int im_height = int(height_res * intersect.height() + 0.5);
int im_width = int(width_res * intersect.width() * filter_factor + 0.5);
int im_height = int(height_res * intersect.height() * filter_factor + 0.5);
//calculate actual box2d of returned raster
box2d<double> feature_raster_extent(x_off, y_off, x_off + width, y_off + height);