How to reproject map with a cascading UMN-mapserver?

574 views Asked by At

I have UMN configured as a cascading mapserver. I want it to reproject the map while cascading through UMN. How can I do that? Is that possible at all?

1

There are 1 answers

3
geographika On

I think as long as MapServer is configured with GDAL support then setting the projection on a layer will automatically call use this tool to reproject:

http://www.gdal.org/gdalwarp.html

Otherwise it may have to be scripted.

Your layer definition should look similar to below:

http://mapserver.org/ogc/wms_client.html

LAYER
  NAME "prov_bound"
  TYPE RASTER
  STATUS ON
  CONNECTION "http://www2.dmsolutions.ca/cgi-bin/mswms_gmap?"
  CONNECTIONTYPE WMS
  PROJECTION
   "init=epsg:42304"
  END
  METADATA
    "wms_srs"             "EPSG:42304"
    "wms_name"            "prov_bound"
    "wms_server_version"  "1.1.1"
    "wms_format"          "image/gif"
  END
END