[mapserver-users] Rewarping/Reprojection with GDAL and -wo EXTRA_SOURCE parameter

Eichner, Andreas - SID-NLKM Andreas.Eichner at sid.sachsen.de
Tue Dec 17 07:11:32 PST 2013


Looks like that causes the same effect as setting
  PROCESSING "LOAD_WHOLE_IMAGE=YES"

> -----Ursprüngliche Nachricht-----
> Von: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-
> bounces at lists.osgeo.org] Im Auftrag von Heiko Schröter
> Gesendet: Dienstag, 17. Dezember 2013 14:09
> An: mapserver-users at lists.osgeo.org
> Betreff: [mapserver-users] Rewarping/Reprojection with GDAL and -wo
> EXTRA_SOURCE parameter
> 
> To make use of it in mapserver a hint has been given in an old
> mailing
> thread (sorry, lost the source) to adjust the following code snippet
> in
> resample.c:
> 
> Version: mapserver-6.4.0
> resample.c
> <snip>
> /* ------------------------------------------------------------------
> -- */
>    /*      Project desired extents out by 2 pixels, and then strip
> to      */
>    /*      available
> data.                                                 */
>    /*
> --------------------------------------------------------------------
> */
>    memcpy( &sOrigSrcExtent, &sSrcExtent, sizeof(sSrcExtent) );
>    sSrcExtent.minx = floor(sSrcExtent.minx-1.0);
>    sSrcExtent.maxx = ceil (sSrcExtent.maxx+1.0);
>    sSrcExtent.miny = floor(sSrcExtent.miny-1.0);
>    sSrcExtent.maxy = ceil (sSrcExtent.maxy+1.0);
> <snap>
> 
> Changing the -/+1.0 to -/+1250.0, for example, warps the RASTER image
> correctly.
> 


More information about the mapserver-users mailing list