Hi

I'm obviously having Friday afternoon blindness, as I can't see what I
am doing wrong!  I am trying to set up a basic Mapserver install (MS4W
v3.0 Beta 4)

MapServer version 5.4.1 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP OUTPUT=PDF
 OUTPUT=SWF OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=AGG SUPPORTS=FREETYPE SUPPORTS=ICO
NV SUPPORTS=FRIBIDI SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER
SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER SUPPORTS=SOS_SERVER SUPPORTS=FASTCGI SUP
PORTS=THREADS SUPPORTS=GEOS SUPPORTS=RGBA_PNG INPUT=JPEG INPUT=POSTGIS INPUT=OGR
 INPUT=GDAL INPUT=SHAPEFILE


which points to a WMS service which only supports a single projection.
I want to get my Mapserver to reproject that data on the fly to other
projection systems, but don't seem to be doing it right!

This is my mapfile

MAP
NAME SPIRIT
STATUS ON
SIZE 600 600
EXTENT 0 0 650000 1300000
UNITS METERS
SHAPEPATH "temp"
IMAGECOLOR 255 255 255
#FONTSET 'fontset.txt'

#SYMBOLSET 'temp/examples.sym'

IMAGETYPE JPEG
IMAGEQUALITY 75

IMAGETYPE png
OUTPUTFORMAT
   NAME png
   DRIVER "GD/PNG"
   MIMETYPE "image/png"
   IMAGEMODE rgb
END

IMAGETYPE jpeg
OUTPUTFORMAT
   NAME jpeg
   DRIVER "GD/JPEG"
   MIMETYPE "image/jpeg"
   IMAGEMODE rgb
END

PROJECTION
 "init=epsg:27700"
END

WEB
  IMAGEPATH "c:\temp\"
  METADATA
    WMS_TITLE "WMS Server"
    WMS_ABSTRACT "WMS Server."
        WMS_ONLINERESOURCE 
"http://localhost/cgi-bin/mapserv.exe?map=example.map&";
    WMS_SRS "EPSG:27700 ESPG:4326"
  END
END

  LAYER
        NAME "layer"
        TYPE RASTER
        STATUS ON
        CONNECTION "http://externalwmshost/&";
        CONNECTIONTYPE WMS
        METADATA
                "wms_srs"                       "EPSG:27700"
                "wms_name"                      "layername"
                "wms_server_version"    "1.1.1"
                "wms_formatlist"        "image/png,image/jpeg"
         END
   END

END

END # Map File


but when I make a WMS request against it

http://localhost/cgi-bin/mapserv.exe?map=example.map&request=getmap&service=wms&layers=layer&bbox=53.5,1.4,53.51,1.41&width=400&height=400&version=1.1.1&srs=EPSG:4326&format=jpeg

I get


<?xml version='1.0' encoding="ISO-8859-1" standalone="no" ?>
<!DOCTYPE ServiceExceptionReport SYSTEM
"http://schemas.opengis.net/wms/1.1.1/exception_1_1_1.dtd";>
<ServiceExceptionReport version="1.1.1">
<ServiceException code="InvalidSRS">
msWMSLoadGetMapParams(): WMS server error. Invalid SRS given : SRS
must be valid for all requested layers.
</ServiceException>
</ServiceExceptionReport>

I'm guessing I'm missing something simple, but I don't know what it
is.  Any help gratefully accepted!

Thanks

Rob
_______________________________________________
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users

Reply via email to