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

Eichner, Andreas - SID-NLKM Andreas.Eichner at sid.sachsen.de
Thu Dec 19 00:58:04 PST 2013


Have you set the PROCESSING directive at the grid layer? With the patch 
applied, adding PROCESSING "FORCE_FULL_EXTENT=YES" at the GRID layer fixed 
it for me, ie:

     LAYER
         TYPE LINE
         STATUS DEFAULT
         EXTENT -180 -90 180 90
         NAME "GRID"
         OPACITY 50

         # the following line enables the hack:
	    PROCESSING "FORCE_FULL_EXTENT=YES"

I used the BBOXes from your examples below to generate the attached images.

> The POSTGIS (i.e. POLYGON) and RASTER layers are fine in any zoom or
> pan
> level. The LINE layer is ok if the BBOX has not been paned to far of
> center (for the "ortho" projection) and if extremly zoomed in the
> poles
> are cut.
> 
> It looks like that POLYGON and LINE Layers are treated a little bit
> differently.
> 
> If you like here is the test site with the patch included.
> 
> Zoomed in, plus poles cut out in LINE layer:
> http://www.iup.uni-bremen.de/warehouse/cgi-bin/laura?BBOX=-2500000,-
> 2500000,2500000,2500000&FORMAT=IMAGE/PNG&FROMDAT=2006-08-
> 06%2000:00&HOEHE=-
> 1&LAYERS=KARTE1,WILLI,GRID&MAP=/var/www/localhost/mapserver/laura.map
> &PRODUKT=stro3_21&REQUEST=GETMAP&SERVICE=WMS&SRS=EPSG:0816&STYLES=&TI
> ME=2006-10-06%2000:00/2006-10-08%2023:59&TODAT=2006-08-
> 07%2023:59&TRANSPARENT=FALSE&VERSION=1.1.1&WIDTH=600&HEIGHT=600
> 
> Half a LINE layer missing when BBOX to far off center:
> http://www.iup.uni-bremen.de/warehouse/cgi-bin/laura?BBOX=-6500000,-
> 6500000,2500000,2500000&FORMAT=IMAGE/PNG&FROMDAT=2006-08-
> 06%2000:00&HOEHE=-
> 1&LAYERS=KARTE1,WILLI,GRID&MAP=/var/www/localhost/mapserver/laura.map
> &PRODUKT=stro3_21&REQUEST=GETMAP&SERVICE=WMS&SRS=EPSG:0816&STYLES=&TI
> ME=2006-10-06%2000:00/2006-10-08%2023:59&TODAT=2006-08-
> 07%2023:59&TRANSPARENT=FALSE&VERSION=1.1.1&WIDTH=600&HEIGHT=600
> 


More information about the mapserver-users mailing list