Permalink
Browse files

Force going through the resampler in client WMS receiving a clipped B…

…BOX (#4931)
  • Loading branch information...
tbonfort committed Aug 4, 2014
1 parent e841969 commit 529e26e2bf7f79cd0a7c709a62789699e9047653
Showing with 5 additions and 0 deletions.
  1. +5 −0 mapwmslayer.c
View
@@ -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");
+ }
}
}
}

0 comments on commit 529e26e

Please sign in to comment.