[mapserver-dev] Raster fliped with WMS and reprojection

Yves Jacolin yves.jacolin at camptocamp.com
Mon Jun 30 01:15:32 PDT 2014


Hello,

I opened an issue here: https://github.com/mapserver/mapserver/issues/4946

Thanks,


Y.

2014-06-12 20:28 GMT+02:00 Even Rouault <even.rouault at mines-paris.org>:
> Le jeudi 12 juin 2014 14:12:58, Yves Jacolin a écrit :
>> Hello,
>>
>> I have a raster file in GeoTiff, EPSG:4326. I am using it in a mapfile for
>> WMS services in EPSG:3857.
>>
>> When zooming out I get the raster layer flipped. All other vector layer are
>> ok. It seems that it occurs when the BBOX is outside the EPSG:3857
>> projected bounds limitation [1].
>>
>> I have another issue which may not be linked with the previous one: a
>> vertical blank line appear on the left (beyon 180 degrees). However, the
>> raster is showing again after the date line.
>>
>> Here two requests, the first one shows the wrong result:
>> *
>> http://www.ifremer.fr/services/wms1?LAYERS=ETOPO1_BATHY_R&STYLES=default&FO
>> RMAT=image%2Fpng&TRANSPARENT=TRUE&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&
>> SRS=EPSG%3A3857&BBOX=-28066452.007098,-2465552.6274048,30754589.246699,9979
>> 617.7775904&WIDTH=1503&HEIGHT=400
>>
>> The second one shows the good result:
>> *
>> http://www.ifremer.fr/services/wms1?LAYERS=ETOPO1_BATHY_R&STYLES=default&FO
>> RMAT=image%2Fpng&TRANSPARENT=TRUE&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&
>> SRS=EPSG%3A3857&BBOX=-28066452.007098,-2465552.6274048,30754589.246699,9979
>> 617.7775904&WIDTH=1502&HEIGHT=400
>>
>> Diff:
>> - WIDTH=1503
>> + WIDTH=1502
>>
>> This MapServer is quiet old but I can reproduce the issue with master.
>>
>> If I open the raster file directly in QGIS I have some other rendering
>> issue (some part of the raster are not displayed at all, but always
>> different part among the zoom level (always on the left anyway).
>
> I guess those artifacts are encountered with on-the-fly reprojection turned on
> ? QGIS must have similar issues as MapServer with discontinuities at date-line
> crossing.
>
>>
>> Log in MapServer doesn't seems to show any error.
>>
>> Any idea? Should I fill a ticket with this?
>
> Could be usefull with .map, associated input data and requests.
>
>>
>> Thanks,
>>
>> Y.
>> [1] http://epsg.io/3857
>
> --
> Geospatial professional services
> http://even.rouault.free.fr/services.html



-- 
Responsable Formation et Support
Camptocamp France SAS
Savoie Technolac, BP 352
73377 Le Bourget du Lac, Cedex

Tel (France) : +33 4 79 26 57 98
Tel (Suisse) : 021 619 10 43
Mob. : +33 6 18 75 42 21
Fax : 04 79 70 15 81

Mail : yves.jacolin at camptocamp.com
http://www.camptocamp.com


More information about the mapserver-dev mailing list