Mapserver as a WMS server and reprojections

Bengt Nilsson bengt.nilsson at AEROTECHTELUB.SE
Wed Jan 11 20:33:20 EST 2006


Hi,

I'm struggeling with mapserver and reprojections.

I've set up mapserver as a WMS server and want to serve WMS clients with a
couple of layers, most of them in 'epsg:4326' format, ie data are in a
spat. DB in lat-long format.

But, one layer is served via WMS calls to another server which only can
deliver maps in 'equidistant cylindrical projection', epsg:9823 (which is
in my epsg-file).

The problem is that I can't get the 9823-layer to align with the other
layers. I've tried 'everything' and am stuck.

Maybe I misunderstand a lot about mapservers abilities about reprojections
and therefore I have a couple of questions:

But first - my configuration is:
 MapServer version 4.6.1 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP
OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER
SUPPORTS=WMS_CLIENT SUPPORTS=GEOS INPUT=EPPL7 INPUT=POSTGIS INPUT=OGR
INPUT=GDAL INPUT=SHAPEFILE

1. Suppose I have a couple of layers in different projections. Each of the
layers has a 'PROJECTION'-clause, defining the actual projection and
the 'wms_srs' parameter is the same as in the 'PROJECTION'-clause. Is it
then possible to have a Map-layer 'PROJECTION' of a specific projection
(and a corresponding metadata wms_srs)and get 'on-the-fly' reprojection by
mapserver to this Map-layer projection?

2. Given the same situation as in 1) - is it possible to serve clients
with more than one projection? How do you specify that in the map file
then?

3. My mapfile definition right now is like this:

..
WEB



More information about the mapserver-users mailing list