falling back to SRS error message

Leopold Schefcik (MULTIMEDIAPLAN.AT) leopold.schefcik at MULTIMEDIAPLAN.AT
Tue Aug 16 03:48:30 EDT 2005


hi list, hi Bart.

I had a error message: "msWMSLoadGetMapParams(): Invalid SRS given : SRS
must be valid for all requested layers."

Bart solved the problem giving:

...

WEB
METADATA
      "WMS_SRS"    "EPSG:31287 EPSG:4326"
    END

...

PROJECTION
    "init=epsg:31287"
  END

...

LAYER
    METADATA
       "WMS_SRS"    "EPSG:31287 EPSG:4326"
    END

...

Then it worked. But suddenly id doesn´t work anymore and the same error
message is displayed.

Can someone help me please?
Leopold

----------------------------------------------
following the map-file and the Capabilities:
----------------------------------------------

GetCapabilitiesRequest:
http://213.47.127.15:8081/cgi-bin/mapserv.exe?MAP=/ms4w/apps/maplab-2.2/tuto
rial/natura2000_epsg_2.map&SERVICE=wms&VERSION=1.1.1&REQUEST=GetCapabilities

-----------------------------
map-file:

MAP
  NAME "mmp_wms"
  STATUS OFF
  EXTENT 71473.4670152 40074.0096694 1251326.533 923294.99034
  SIZE 800 600
  SHAPEPATH "./data"
  SYMBOLSET "./etc/symbols.sym"
  FONTSET "./etc/fonts.txt"
  IMAGETYPE PNG
  IMAGECOLOR 255 255 226
  UNITS METERS
  WEB
    MINSCALE 2e+006
    MAXSCALE 5e+007
    IMAGEPATH "/ms4w/tmp/ms_tmp/"
    IMAGEURL "/ms_tmp/"
    METADATA
      "WMS_SRS"    "EPSG:31287 EPSG:4326"
      "wms_title"    "mmp_wms_centrope_natura2000"
    END
  END
  QUERYMAP
    STATUS ON
    SIZE -1 -1
    COLOR 255 0 0
    STYLE HILITE
  END
  PROJECTION
    "init=epsg:31287"
  END
  LEGEND
    STATUS ON
    IMAGECOLOR 255 255 255
    POSITION UL
    KEYSIZE 18 12
    KEYSPACING 5 5
    TEMPLATE
"C:/ms4w/apps/maplab-2.2/htdocs/mapbrowser/legend_template.html"
    LABEL
      TYPE BITMAP
      FONT "fritqat-italic"
      SIZE MEDIUM
      OFFSET 0 0
      BUFFER 0
      MINDISTANCE -1
      MINFEATURESIZE -1
      COLOR 0 0 89
      PARTIALS TRUE
      FORCE FALSE
    END
  END
  SCALEBAR
    STATUS ON
    COLOR 255 255 255
    OUTLINECOLOR 0 0 0
    BACKGROUNDCOLOR 0 0 0
    IMAGECOLOR 255 255 255
    UNITS KILOMETERS
    INTERVALS 5
    SIZE 300 5
    STYLE 0
    POSITION LL
    LABEL
      TYPE BITMAP
      SIZE SMALL
      OFFSET 0 0
      BUFFER 0
      MINDISTANCE -1
      MINFEATURESIZE -1
      COLOR 0 0 0
      PARTIALS TRUE
      FORCE FALSE
    END
  END
  OUTPUTFORMAT
    NAME "png"
    MIMETYPE "image/png"
    DRIVER "GD/PNG"
    EXTENSION "png"
    IMAGEMODE PC256
    TRANSPARENT FALSE
  END
  LAYER
    NAME "gewaesser_noe"
    STATUS ON
    DATA "AT_AT_NATUR_HYDSP_WATERCOURSES_2000"
    TYPE LINE
    UNITS METERS
    SIZEUNITS PIXELS
    TOLERANCE 0
    TOLERANCEUNITS PIXELS
    METADATA
      "wms_title"    "Gewaesser_Noe"
      "DESCRIPTION"    "Wasser"
      "WMS_SRS"    "EPSG:31287 EPSG:4326"
    END
    CLASS
      NAME "gewaesser_noe"
      STYLE
        SYMBOL 0
        COLOR 199 195 240
        OUTLINECOLOR 106 105 199
        SIZE 1
        MINSIZE 1
        MAXSIZE 100
      END
      STYLE
        SYMBOL 0
        COLOR 0 0 255
        BACKGROUNDCOLOR 251 148 112
        SIZE 1
        MINSIZE 1
        MAXSIZE 100
      END
    END
  END
END

-----------------------------

capabilities-file:

<?xml version='1.0' encoding="ISO-8859-1" standalone="no" ?>
<!DOCTYPE WMT_MS_Capabilities SYSTEM
"http://schemas.opengeospatial.net/wms/1.1.1/capabilities_1_1_1.dtd"
 [
 <!ELEMENT VendorSpecificCapabilities EMPTY>
 ]>  <!-- end of DOCTYPE declaration -->

<WMT_MS_Capabilities version="1.1.1">

<!-- MapServer version 4.4.0 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP
OUTPUT=PDF OUTPUT=SWF SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER
SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT
SUPPORTS=WCS_SERVER INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE -->

<Service>
  <Name>OGC:WMS</Name>
  <Title>mmp_wms_centrope_natura2000</Title>
  <OnlineResource xmlns:xlink="http://www.w3.org/1999/xlink"
xlink:href="http://213.47.127.15:8081/cgi-bin/mapserv.exe?map=/ms4w/apps/map
lab-2.2/tutorial/natura2000_epsg_2.map&amp;"/>
</Service>

<Capability>
  <Request>
    <GetCapabilities>
      <Format>application/vnd.ogc.wms_xml</Format>
      <DCPType>
        <HTTP>
          <Get><OnlineResource xmlns:xlink="http://www.w3.org/1999/xlink"
xlink:href="http://213.47.127.15:8081/cgi-bin/mapserv.exe?map=/ms4w/apps/map
lab-2.2/tutorial/natura2000_epsg_2.map&amp;"/></Get>
          <Post><OnlineResource xmlns:xlink="http://www.w3.org/1999/xlink"
xlink:href="http://213.47.127.15:8081/cgi-bin/mapserv.exe?map=/ms4w/apps/map
lab-2.2/tutorial/natura2000_epsg_2.map&amp;"/></Post>
        </HTTP>
      </DCPType>
    </GetCapabilities>
    <GetMap>
      <Format>image/png</Format>
      <Format>image/gif</Format>
      <Format>image/jpeg</Format>
      <Format>image/wbmp</Format>
      <Format>image/tiff</Format>
      <DCPType>
        <HTTP>
          <Get><OnlineResource xmlns:xlink="http://www.w3.org/1999/xlink"
xlink:href="http://213.47.127.15:8081/cgi-bin/mapserv.exe?map=/ms4w/apps/map
lab-2.2/tutorial/natura2000_epsg_2.map&amp;"/></Get>
          <Post><OnlineResource xmlns:xlink="http://www.w3.org/1999/xlink"
xlink:href="http://213.47.127.15:8081/cgi-bin/mapserv.exe?map=/ms4w/apps/map
lab-2.2/tutorial/natura2000_epsg_2.map&amp;"/></Post>
        </HTTP>
      </DCPType>
    </GetMap>
    <GetFeatureInfo>
      <Format>text/plain</Format>
      <Format>application/vnd.ogc.gml</Format>
      <DCPType>
        <HTTP>
          <Get><OnlineResource xmlns:xlink="http://www.w3.org/1999/xlink"
xlink:href="http://213.47.127.15:8081/cgi-bin/mapserv.exe?map=/ms4w/apps/map
lab-2.2/tutorial/natura2000_epsg_2.map&amp;"/></Get>
          <Post><OnlineResource xmlns:xlink="http://www.w3.org/1999/xlink"
xlink:href="http://213.47.127.15:8081/cgi-bin/mapserv.exe?map=/ms4w/apps/map
lab-2.2/tutorial/natura2000_epsg_2.map&amp;"/></Post>
        </HTTP>
      </DCPType>
    </GetFeatureInfo>
    <DescribeLayer>
      <Format>text/xml</Format>
      <DCPType>
        <HTTP>
          <Get><OnlineResource xmlns:xlink="http://www.w3.org/1999/xlink"
xlink:href="http://213.47.127.15:8081/cgi-bin/mapserv.exe?map=/ms4w/apps/map
lab-2.2/tutorial/natura2000_epsg_2.map&amp;"/></Get>
          <Post><OnlineResource xmlns:xlink="http://www.w3.org/1999/xlink"
xlink:href="http://213.47.127.15:8081/cgi-bin/mapserv.exe?map=/ms4w/apps/map
lab-2.2/tutorial/natura2000_epsg_2.map&amp;"/></Post>
        </HTTP>
      </DCPType>
    </DescribeLayer>
    <GetLegendGraphic>
      <Format>image/png</Format>
      <Format>image/gif</Format>
      <Format>image/jpeg</Format>
      <Format>image/wbmp</Format>
      <DCPType>
        <HTTP>
          <Get><OnlineResource xmlns:xlink="http://www.w3.org/1999/xlink"
xlink:href="http://213.47.127.15:8081/cgi-bin/mapserv.exe?map=/ms4w/apps/map
lab-2.2/tutorial/natura2000_epsg_2.map&amp;"/></Get>
          <Post><OnlineResource xmlns:xlink="http://www.w3.org/1999/xlink"
xlink:href="http://213.47.127.15:8081/cgi-bin/mapserv.exe?map=/ms4w/apps/map
lab-2.2/tutorial/natura2000_epsg_2.map&amp;"/></Post>
        </HTTP>
      </DCPType>
    </GetLegendGraphic>
  </Request>
  <Exception>
    <Format>application/vnd.ogc.se_xml</Format>
    <Format>application/vnd.ogc.se_inimage</Format>
    <Format>application/vnd.ogc.se_blank</Format>
  </Exception>
  <VendorSpecificCapabilities />
  <UserDefinedSymbolization SupportSLD="1" UserLayer="0" UserStyle="1"
RemoteWFS="0"/>
  <Layer>
    <Name>mmp_wms</Name>
    <Title>mmp_wms_centrope_natura2000</Title>
    <SRS>EPSG:31287 EPSG:4326</SRS>
    <LatLonBoundingBox minx="8.54857" miny="43.7401" maxx="25.644"
maxy="52.2016" />
    <BoundingBox SRS="EPSG:31287"
                minx="71473.5" miny="40074" maxx="1.25133e+006"
maxy="923295" />
    <ScaleHint min="997.806" max="24945.1" />
    <Layer queryable="0" opaque="0" cascaded="0">
        <Name>gewaesser_noe</Name>
        <Title>Gewaesser_Noe</Title>
        <SRS>EPSG:31287</SRS>
        <SRS>EPSG:4326</SRS>
        <LatLonBoundingBox minx="14.4423" miny="47.3999" maxx="17.1214"
maxy="49.0277" />
        <BoundingBox SRS="EPSG:31287"
                    minx="483586" miny="395428" maxx="677184" maxy="570428"
/>
        <Style>
          <Name>default</Name>
          <Title>default</Title>
          <LegendURL width="18" height="12">
             <Format>image/png</Format>
             <OnlineResource xmlns:xlink="http://www.w3.org/1999/xlink"
xlink:type="simple"
xlink:href="http://213.47.127.15:8081/cgi-bin/mapserv.exe?map=/ms4w/apps/map
lab-2.2/tutorial/natura2000_epsg_2.map&amp;version=1.1.1&amp;service=WMS&amp
;request=GetLegendGraphic&amp;layer=gewaesser_noe&amp;format=image/png"/>
          </LegendURL>
        </Style>
    </Layer>
  </Layer>
</Capability>
</WMT_MS_Capabilities>



More information about the mapserver-users mailing list