+ this change was needed to avoid raster tiles alignment problems
TODO: Review raster handling pipeline to ensure correct alignments across all sources.
This commit is contained in:
parent
47c3bc515d
commit
d100cb7587
1 changed files with 3 additions and 3 deletions
|
@ -668,11 +668,11 @@ namespace mapnik
|
|||
if (raster)
|
||||
{
|
||||
Envelope<double> ext=t_.forward(raster->ext_);
|
||||
ImageData32 target(int(ext.width() + 0.5),int(ext.height() + 0.5));
|
||||
ImageData32 target(int(ceil(ext.width())),int(ceil(ext.height())));
|
||||
int start_x = int(ext.minx()+0.5);
|
||||
int start_y = int(ext.miny()+0.5);
|
||||
|
||||
if (sym.get_scaling() == "fast"){
|
||||
|
||||
if (sym.get_scaling() == "fast") {
|
||||
scale_image<ImageData32>(target,raster->data_);
|
||||
} else if (sym.get_scaling() == "bilinear"){
|
||||
scale_image_bilinear<ImageData32>(target,raster->data_);
|
||||
|
|
Loading…
Add table
Reference in a new issue