Changing the projection
Frank Warmerdam
warmerdam at POBOX.COM
Tue Apr 18 12:37:06 PDT 2006
rahul singh wrote:
> Hi all,
>
> I am trying to change my map projection from lambert
> azimuthal equal area to mercator projection. I tried
> to change the value of keyword proj to merc instead of
> laea and changed the others keywords like ellps to
> WGS84 and lat_0 to 0
> and lon_0 to 0 but did not see any changes in the
> map . i even changed the extents of the shapefile
> according to the mercator projection. I am providing
> the part of the code down below in which i made the
> changes
>
> MAP
> NAME UMAC
> SIZE 630 294
> EXTENT -1403269.17 -433382.76 781662.52 577110.16
> IMAGECOLOR 255 255 255
> SHAPEPATH "../shape/"
> SYMBOLSET "../etc/symbols.sym"
> FONTSET "../etc/fonts.txt"
>
> PROJECTION
> "proj=merc"
> "ellps=WGS84"
> "lat_0=0"
> "lon_0=0"
> "x_0=0"
> "y_0=0"
>
>
> Any suggestions would be appreciated
Rahul,
What do you have for PROJECTION blocks on the layers in your map?
If you want mapserver to reproject you need to have the projection
set for each layer that may require reprojection.
Note, your EXTENT will undoubtedly need to change in new projection
too.
Best regards,
--
---------------------------------------+--------------------------------------
I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com
light and sound - activate the windows | http://pobox.com/~warmerdam
and watch the world go round - Rush | President OSGF, http://osgeo.org
More information about the MapServer-users
mailing list