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

Jelmer Baas Baas at speerit.nl
Fri Oct 2 01:07:28 PDT 2009


Milo,

Thanks for the reply. I've changed the definition in my epsg file and it
works! 

Thanks :)

-- 
Jelmer

> -----Original Message-----
> From: Milo van der Linden [mailto:mlinden at zeelandnet.nl] 
> Sent: donderdag 1 oktober 2009 18:05
> To: Jelmer Baas
> Cc: mapserver-users at lists.osgeo.org
> Subject: Re: [mapserver-users] MapServer Projection Issues (I think).
> 
> .... projections....projections... it is what differentiates a
> geo-specialist from a "regular" programmer
> 
> Hello Jelmer,
> 
> 
> The wgs84 layer is correct because the ellipsoid/spheroid is 
> the same as
> used by the mercator projection.
> 
> We in the Netherlands use the Bessel ellipsoid on our
> Rijksdriehoekstelsel so you need a +towgs84 transformation too..
> 
> http://blog.openstreetmap.nl/index.php/2009/08/27/woorden-schi
eten-tekort/
> 
> Good luck!
> 
> Milo van der Linden
> 
> 
> Jelmer Baas schreef:
> > 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=tru
e&SERVICE=
> > 
> WMS&VERSION=1.1.1&REQUEST=GetMap&STYLES=&EXCEPTIONS=applicatio
n%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
> > _______________________________________________
> > mapserver-users mailing list
> > mapserver-users at lists.osgeo.org
> > http://lists.osgeo.org/mailman/listinfo/mapserver-users
> >
> >   
> 
> 



More information about the MapServer-users mailing list