[mapserver-users] OpenLayers & Projection

Julien-Samuel Lacroix jlacroix at mapgears.com
Tue Apr 29 15:43:32 EDT 2008


Hi,

You can take a look at how projection are set in OpenLayers:

http://trac.openlayers.org/wiki/FrequentlyAskedQuestions#Projections

Or at the Source of the OpenLayers projection example:
http://www.openlayers.org/dev/examples/projected-map.html

You will also need to define the PROJECTION block at the layer level and 
at the map level in your mapfile.

Julien

PS: Please provide revelent mapfile part and revelent code when asking a 
question it will help us figuring out what may be your problem.

Clemiou wrote:
> Hi all!
>  
> I come back here because I always have the same problem.
> So, I have a .ewc file which represent the France. This file is in Lambert II (French position, centered on France).
> Currently, I display this map with WGS84 projection but naturally, my map is distorded because this projection is centered on the equator.
> So, if I try to displaying my map with the Lambert II projection, I obtain the following figure:
>  
> http://www.forumsig.org/attachment.php?attachmentid=2286&stc=1&d=1208951661 <http://www.forumsig.org/attachment.php?attachmentid=2286&stc=1&d=1208951661>
>  
> As you can see, there is a malfunction=> the repetition of a part of each tile.
>  
> I tried to add projection and units options to my map but nothing change. I think that is a OpenLayers probleme because my map is correctly display with Mapserver and without OL.
> Perhaps someone here should help me.
> 
> Thanks for your futur help and once more, excuse me for my English.
>  
> Have a nice day
>  
> Clement
> 
> 
> ------------------------------------------------------------------------
> Plus de 15 millions de français utilisent Windows Live Messenger ! 
> Téléchargez Messenger, c'est gratuit ! 
> <http://www.windowslive.fr/messenger/>
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> mapserver-users mailing list
> mapserver-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-users

-- 
Julien-Samuel Lacroix
Mapgears
http://www.mapgears.com/


More information about the mapserver-users mailing list