Skip to content

Commit

Permalink
Force going through the resampler in client WMS receiving a clipped B…
Browse files Browse the repository at this point in the history
…BOX (#4931)
  • Loading branch information
tbonfort committed Aug 26, 2014
1 parent e841969 commit 529e26e
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions mapwmslayer.c
Original file line number Diff line number Diff line change
Expand Up @@ -703,6 +703,11 @@ msBuildWMSLayerURL(mapObj *map, layerObj *lp, int nRequestType,

bbox_width = ceil((bbox.maxx - bbox.minx) / cellsize);
bbox_height = ceil((bbox.maxy - bbox.miny) / cellsize);

/* Force going through the resampler if we're going to receive a clipped BBOX (#4931) */
if(msLayerGetProcessingKey(lp, "RESAMPLE") == NULL) {
msLayerSetProcessingKey(lp, "RESAMPLE", "nearest");
}
}
}
}
Expand Down

0 comments on commit 529e26e

Please sign in to comment.