[mapserver-users] MapServer Projection Issues (I think).

Jelmer Baas Baas at speerit.nl
Thu Oct 1 08:21:18 PDT 2009


Hello List,

I've been struggling with OpenLayers and MapServer while using Google
Maps as a backgroundlayer (thus using Spherical Mercator projection).
I've been able to figure it out quite well, but I seem to be stuck at a
reprojection issue.

The request from OL is:
mapserv.exe?map=test.map&LAYERS=layer1%Clayer2&TRANSPARENT=true&SERVICE=
WMS&VERSION=1.1.1&REQUEST=GetMap&STYLES=&EXCEPTIONS=application%2Fvnd.og
c.se_inimage&FORMAT=image%2Fpng&SRS=EPSG%3A900913&BBOX=664084.90082266,6
838973.7927063,664696.39704883,6839585.2889324&WIDTH=256&HEIGHT=256

This results in an image such as this:
http://www.cocontheweb.nl/_ftth/test.png

The black line is the original file, in EPSG:28992 (Amersfoort new) and
has a projection "init=EPSG:28992" in the map file. The green line has
the default map file projection ("init=epsg:4326") and the file is saved
as WGS84 with MapInfo. 

The problem now is that the green line is the correct one, the black
line is offset. I've checked all relevant declarations in my epsg file,
they are correct. 

Am I doing something wrong? I hope there is another solution besides
re-saving all files as WGS84.


Thanks in advance for any assistance!

With kind regards,
Jelmer Baas



More information about the MapServer-users mailing list