Hi: [mapserver-users] MapServer as a reprojecting WMS proxy, is it possible?

Rahkonen Jukka Jukka.Rahkonen at mmmtike.fi
Wed Oct 13 16:44:18 EDT 2010


Hi,

I can't test right now but I suppose this should work.  Define the LAYER to use the SRS supported by the remote service like in the document http://mapserver.org/ogc/wms_client.html

LAYER
  NAME "country_bounds"
  TYPE RASTER
  STATUS ON
  CONNECTION "http://demo.mapserver.org/cgi-bin/wms?"
  CONNECTIONTYPE WMS
  METADATA
    "wms_srs"             "EPSG:4326"
    "wms_name"            "country_bounds"
    "wms_server_version"  "1.1.1"
    "wms_format"          "image/gif"
  END
END

Then use the MAP-WEB-METADATA just as you did and your server should advertise only EPSG:3003 out.

-Jukka Rahkonen-




-----Alkuperäinen viesti-----
Lähettäjä: mapserver-users-bounces at lists.osgeo.org puolesta: Niccolo Rigacci
Lähetetty: ke 13.10.2010 22:48
Vastaanottaja: mapserver-users at lists.osgeo.org
Aihe: [mapserver-users] MapServer as a reprojecting WMS proxy,is it possible?
 
Hi,

There is a WMS server providing EPSG:4326, but I need a WMS 
server providing EPSG:3003.

So I tried to configure MapServer to act as a proxy (both client 
and server), doing the reprojection. But I failed.

I tried something like this:

MAP
  ...
  PROJECTION
    'init=epsg:3003'
  END
  WEB
    METADATA
      'ows_srs' 'EPSG:3003'
    END
  END
  LAYER
    ...
    PROJECTION
      'init=epsg:4326'
    END
    METADATA
      'wms_srs' 'EPSG:4326 EPSG:3003'
    END
  END
END

As a server, it announces both EPSG:4326 and EPSG:3003, but if I 
ask for EPSG:3003, it uses the same SRS when acting as a client.

If I put just EPSG:4326 into LAYER.METADATA.wms_srs, the server 
does not announce EPSG:3003.

What can I do?

Thanks!

-- 
Niccolo Rigacci
Firenze - Italy
_______________________________________________
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