Projection Issues

Frank Warmerdam warmerdam at POBOX.COM
Mon Feb 6 08:15:25 EST 2006


On 2/6/06, Neil Saunders <n.j.saunders at gmail.com> wrote:
> I'd like to set the projection to a mercator WGS84.
>
> All I have is a simple mapfile with the map projection set to :
> PROJECTION
>    "proj=merc"
>    "ellps=WGS84"
> END

Neil,

The above is fine, but by default MapServer will assume your
input layer is the same projection and do nothing with it.
You need to add the following declaration for the LAYER:

  PROJECTION
    "+proj=latlong +datum=WGS84"
  END

MapServer does not normally pull the layer coordinate
system from the datasource.

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    | Geospatial Programmer for Rent



More information about the mapserver-users mailing list