GetCapabilites Request

Richard Taylor rtaylor at COVE.COM
Tue Jul 12 04:26:31 PDT 2005


leaving for work here but a quick scan reveals that
(besides the error messages(one of the messages refers
to 'spaces' so you might connect strings with an underscore)
that you have mixed forward and backwards slashes in
the base URL to get to your maplab app engine.

----- Original Message -----
From: "Leopold Schefcik (MULTIMEDIAPLAN.AT)"
<leopold.schefcik at multimediaplan.at>
To: "Richard Taylor" <rtaylor at cove.com>
Sent: Tuesday, July 12, 2005 3:00 AM
Subject: {SPAM?} AW: [UMN_MAPSERVER-USERS] GetCapabilites Request


>
> hi RT,
>
> the file looks like this:
>
>
> <?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>
> <!-- WARNING: Mandatory metadata '..._title' was missing in this
> context. -->
>   <Title>Centrope Staaten</Title>
>   <OnlineResource xmlns:xlink="http://www.w3.org/1999/xlink"
>
xlink:href="http://localhost:80/cgi-bin/mapserv.exe?map=/ms4w/apps\maplab-2.
> 2\tutorial/centrope2.map&"/>
> </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://localhost:80/cgi-bin/mapserv.exe?map=/ms4w/apps\maplab-2.
> 2\tutorial/centrope2.map&"/></Get>
>           <Post><OnlineResource xmlns:xlink="http://www.w3.org/1999/xlink"
>
xlink:href="http://localhost:80/cgi-bin/mapserv.exe?map=/ms4w/apps\maplab-2.
> 2\tutorial/centrope2.map&"/></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://localhost:80/cgi-bin/mapserv.exe?map=/ms4w/apps\maplab-2.
> 2\tutorial/centrope2.map&"/></Get>
>           <Post><OnlineResource xmlns:xlink="http://www.w3.org/1999/xlink"
>
xlink:href="http://localhost:80/cgi-bin/mapserv.exe?map=/ms4w/apps\maplab-2.
> 2\tutorial/centrope2.map&"/></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://localhost:80/cgi-bin/mapserv.exe?map=/ms4w/apps\maplab-2.
> 2\tutorial/centrope2.map&"/></Get>
>           <Post><OnlineResource xmlns:xlink="http://www.w3.org/1999/xlink"
>
xlink:href="http://localhost:80/cgi-bin/mapserv.exe?map=/ms4w/apps\maplab-2.
> 2\tutorial/centrope2.map&"/></Post>
>         </HTTP>
>       </DCPType>
>     </GetFeatureInfo>
>     <DescribeLayer>
>       <Format>text/xml</Format>
>       <DCPType>
>         <HTTP>
>           <Get><OnlineResource xmlns:xlink="http://www.w3.org/1999/xlink"
>
xlink:href="http://localhost:80/cgi-bin/mapserv.exe?map=/ms4w/apps\maplab-2.
> 2\tutorial/centrope2.map&"/></Get>
>           <Post><OnlineResource xmlns:xlink="http://www.w3.org/1999/xlink"
>
xlink:href="http://localhost:80/cgi-bin/mapserv.exe?map=/ms4w/apps\maplab-2.
> 2\tutorial/centrope2.map&"/></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://localhost:80/cgi-bin/mapserv.exe?map=/ms4w/apps\maplab-2.
> 2\tutorial/centrope2.map&"/></Get>
>           <Post><OnlineResource xmlns:xlink="http://www.w3.org/1999/xlink"
>
xlink:href="http://localhost:80/cgi-bin/mapserv.exe?map=/ms4w/apps\maplab-2.
> 2\tutorial/centrope2.map&"/></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>
> <!-- WARNING: The layer name 'Centrope Staaten' might contain spaces or
> invalid characters or may start with a number. This could lead to
potential
> problems. -->
>     <Name>Centrope Staaten</Name>
> <!-- WARNING: Mandatory metadata '..._title' was missing in this
> context. -->
>     <Title>Centrope Staaten</Title>
>     <SRS>EPSG:42304</SRS>
>     <LatLonBoundingBox minx="-99.7124" miny="47.0233" maxx="-74.2396"
> maxy="58.5654" />
>     <BoundingBox SRS="EPSG:42304"
>                 minx="-267604" miny="-65435.9" maxx="1.2204e+006"
> maxy="1.0488e+006" />
>     <ScaleHint min="997.806" max="24945.1" />
>     <Layer queryable="0" opaque="0" cascaded="0">
>         <Name>bathymetry</Name>
> <!-- WARNING: Mandatory metadata '..._title' was missing in this
> context. -->
>         <Title>bathymetry</Title>
>     </Layer>
>     <Layer queryable="0" opaque="0" cascaded="0">
>         <Name>land_fn</Name>
> <!-- WARNING: Mandatory metadata '..._title' was missing in this
> context. -->
>         <Title>land_fn</Title>
>         <LatLonBoundingBox minx="-93.4121" miny="49.232" maxx="-77.3745"
> maxy="55.7146" />
>         <BoundingBox SRS="EPSG:42304"
>                     minx="112176" miny="161643" maxx="1.11316e+006"
> maxy="740392" />
>         <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://localhost:80/cgi-bin/mapserv.exe?map=/ms4w/apps\maplab-2.
>
2\tutorial/centrope2.map&version=1.1.1&service=WMS&request=GetLe
> gendGraphic&layer=land_fn&format=image/png"/>
>           </LegendURL>
>         </Style>
>     </Layer>
>     <Layer queryable="0" opaque="0" cascaded="0">
>         <Name>drain_fn</Name>
> <!-- WARNING: Mandatory metadata '..._title' was missing in this
> context. -->
>         <Title>drain_fn</Title>
>         <LatLonBoundingBox minx="-179.973" miny="35.2464" maxx="179.92"
> maxy="88.06" />
>         <BoundingBox SRS="EPSG:42304"
>                     minx="-2.75056e+006" miny="-936639"
maxx="2.75882e+006"
> maxy="4.36727e+006" />
>         <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://localhost:80/cgi-bin/mapserv.exe?map=/ms4w/apps\maplab-2.
>
2\tutorial/centrope2.map&version=1.1.1&service=WMS&request=GetLe
> gendGraphic&layer=drain_fn&format=image/png"/>
>           </LegendURL>
>         </Style>
>     </Layer>
>     <Layer queryable="0" opaque="0" cascaded="0">
>         <Name>drainage</Name>
> <!-- WARNING: Mandatory metadata '..._title' was missing in this
> context. -->
>         <Title>drainage</Title>
>         <LatLonBoundingBox minx="-169.629" miny="39.2232" maxx="-15.1085"
> maxy="83.0129" />
>         <BoundingBox SRS="EPSG:42304"
>                     minx="-2.1694e+006" miny="-386968" maxx="2.79747e+006"
> maxy="3.74336e+006" />
>         <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://localhost:80/cgi-bin/mapserv.exe?map=/ms4w/apps\maplab-2.
>
2\tutorial/centrope2.map&version=1.1.1&service=WMS&request=GetLe
> gendGraphic&layer=drainage&format=image/png"/>
>           </LegendURL>
>         </Style>
>     </Layer>
>     <Layer queryable="0" opaque="0" cascaded="0">
>         <Name>prov_bound</Name>
> <!-- WARNING: Mandatory metadata '..._title' was missing in this
> context. -->
>         <Title>prov_bound</Title>
>         <LatLonBoundingBox minx="-173.537" miny="35.8775" maxx="-11.9603"
> maxy="83.8009" />
>         <BoundingBox SRS="EPSG:42304"
>                     minx="-2.3406e+006" miny="-719746" maxx="3.00943e+006"
> maxy="3.83661e+006" />
>         <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://localhost:80/cgi-bin/mapserv.exe?map=/ms4w/apps\maplab-2.
>
2\tutorial/centrope2.map&version=1.1.1&service=WMS&request=GetLe
> gendGraphic&layer=prov_bound&format=image/png"/>
>           </LegendURL>
>         </Style>
>     </Layer>
>     <Layer queryable="0" opaque="0" cascaded="0">
>         <Name>fedlimit</Name>
> <!-- WARNING: Mandatory metadata '..._title' was missing in this
> context. -->
>         <Title>fedlimit</Title>
>         <LatLonBoundingBox minx="-179.96" miny="34.2409" maxx="178.833"
> maxy="89.9051" />
>         <BoundingBox SRS="EPSG:42304"
>                     minx="-2.69358e+006" miny="-724162"
maxx="3.38519e+006"
> maxy="4.6545e+006" />
>         <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://localhost:80/cgi-bin/mapserv.exe?map=/ms4w/apps\maplab-2.
>
2\tutorial/centrope2.map&version=1.1.1&service=WMS&request=GetLe
> gendGraphic&layer=fedlimit&format=image/png"/>
>           </LegendURL>
>         </Style>
>     </Layer>
>     <Layer queryable="0" opaque="0" cascaded="0">
>         <Name>rail</Name>
> <!-- WARNING: Mandatory metadata '..._title' was missing in this
> context. -->
>         <Title>rail</Title>
>         <LatLonBoundingBox minx="-137.447" miny="37.7146" maxx="-46.6233"
> maxy="66.7201" />
>         <BoundingBox SRS="EPSG:42304"
>                     minx="-2.14572e+006" miny="-680853"
maxx="2.61606e+006"
> maxy="1.93097e+006" />
>         <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://localhost:80/cgi-bin/mapserv.exe?map=/ms4w/apps\maplab-2.
>
2\tutorial/centrope2.map&version=1.1.1&service=WMS&request=GetLe
> gendGraphic&layer=rail&format=image/png"/>
>           </LegendURL>
>         </Style>
>     </Layer>
>     <Layer queryable="0" opaque="0" cascaded="0">
>         <Name>road</Name>
> <!-- WARNING: Mandatory metadata '..._title' was missing in this
> context. -->
>         <Title>road</Title>
>         <LatLonBoundingBox minx="-148.059" miny="35.882" maxx="-33.7745"
> maxy="72.5503" />
>         <BoundingBox SRS="EPSG:42304"
>                     minx="-2.30369e+006" miny="-724118"
maxx="3.00053e+006"
> maxy="2.56497e+006" />
>         <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://localhost:80/cgi-bin/mapserv.exe?map=/ms4w/apps\maplab-2.
>
2\tutorial/centrope2.map&version=1.1.1&service=WMS&request=GetLe
> gendGraphic&layer=road&format=image/png"/>
>           </LegendURL>
>         </Style>
>     </Layer>
>     <Layer queryable="1" opaque="0" cascaded="0">
>         <Name>popplace</Name>
> <!-- WARNING: Mandatory metadata '..._title' was missing in this
> context. -->
>         <Title>popplace</Title>
>         <LatLonBoundingBox minx="-172.301" miny="36.3541" maxx="-12.9698"
> maxy="83.4832" />
>         <BoundingBox SRS="EPSG:42304"
>                     minx="-2.30386e+006" miny="-681503"
maxx="2.96177e+006"
> maxy="3.79886e+006" />
>         <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://localhost:80/cgi-bin/mapserv.exe?map=/ms4w/apps\maplab-2.
>
2\tutorial/centrope2.map&version=1.1.1&service=WMS&request=GetLe
> gendGraphic&layer=popplace&format=image/png"/>
>           </LegendURL>
>         </Style>
>     </Layer>
>     <Layer queryable="0" opaque="0" cascaded="0">
>         <Name>grid</Name>
> <!-- WARNING: Mandatory metadata '..._title' was missing in this
> context. -->
>         <Title>grid</Title>
>         <LatLonBoundingBox minx="-178.838" miny="31.8844" maxx="179.94"
> maxy="89.8254" />
>         <BoundingBox SRS="EPSG:42304"
>                     minx="-2.75056e+006" miny="-936639"
maxx="3.58387e+006"
> maxy="4.67313e+006" />
>         <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://localhost:80/cgi-bin/mapserv.exe?map=/ms4w/apps\maplab-2.
>
2\tutorial/centrope2.map&version=1.1.1&service=WMS&request=GetLe
> gendGraphic&layer=grid&format=image/png"/>
>           </LegendURL>
>         </Style>
>     </Layer>
>   </Layer>
> </Capability>
> </WMT_MS_Capabilities>
>
> -----Ursprüngliche Nachricht-----
> Von: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU]Im
> Auftrag von Richard Taylor
> Gesendet: Montag, 11. Juli 2005 15:41
> An: MAPSERVER-USERS at LISTS.UMN.EDU
> Betreff: Re: [UMN_MAPSERVER-USERS] GetCapabilites Request
>
>
> am new also, but when i get that happening to me,
> it usually means i have not formatted some part of the
> request string or mapfile correctly.
>
> what does the xml file say when you open
> it in Explorer or other browser?
> rt
>
> ----- Original Message -----
> From: "Leopold Schefcik (MULTIMEDIAPLAN.AT)"
> <leopold.schefcik at MULTIMEDIAPLAN.AT>
> To: <MAPSERVER-USERS at LISTS.UMN.EDU>
> Sent: Monday, July 11, 2005 6:21 AM
> Subject: [UMN_MAPSERVER-USERS] GetCapabilites Request
>
>
> >
> >
> > hi list,
> > I´ve installed a ms4w (incl. umn server and Maplab)
> >
> > The GetMap Request works fine:
> >
>
http://localhost/cgi-bin/mapserv.exe?MAP=/ms4w/apps\maplab-2.2\tutorial/cent
> >
>
rope2.map&SERVICE=wms&VERSION=1.1.1&LAYERS=bathymetry,land_fn&REQUEST=GetMap
> >
> > At the GetCapabilities Request I get a file (I think xml) as
attachement.
> > (see attachement)
> >
>
http://localhost/cgi-bin/mapserv.exe?MAP=/ms4w/apps/gmap/htdocs/gmap75_wms.m
> > ap&SERVICE=wms&VERSION=1.1.1&REQUEST=GetCapabilities
> >
> > but in viewers (e.g. http://www.wmsviewer.com it won´t work.
> >
> > Maby someone has an idea what´s wrong!?
> > Leopold
> >
>
>



More information about the MapServer-users mailing list