World Wind/MapServer WMS
Ryan Ollerenshaw
ollerery at ENGR.ORST.EDU
Tue Aug 1 14:09:30 PDT 2006
Has anyone had any success accessing a MapServer WMS from World Wind? I keep
getting the message "Error loading WMS server list" when i add my WMS to World
Wind's WMS_server_list.
Here is the XML code that i added to the server list:
<Server>
<Name>My Data</Name>
<ServerUrl>http://neuron/cgi-bin/mapserv?map=../html/mapserver/htdocs/webservices.map&SERVICE=WMS&</ServerUrl>
<WMSLayerName>Themis</WMSLayerName>
<Version>1.1.1</Version>
<Abstract>Mars Visualization Server</Abstract>
</Server>
And here is the result of a GetCapabilities Request on my server:
<!-- end of DOCTYPE declaration -->
<WMT_MS_Capabilities version="1.1.1">
<!--
MapServer version 4.8.3 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP
OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER
SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER
SUPPORTS=GEOS INPUT=EPPL7 INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE
-->
<Service>
<Name>OGC:WMS</Name>
<Title>WMS MapServer</Title>
<OnlineResource
xlink:href="http://neuron/cgi-bin/mapserv?map=../html/mapserver/htdocs/webservices.map&"/>
</Service>
Capability>
<Request>
<GetCapabilities>
<Format>application/vnd.ogc.wms_xml</Format>
<DCPType>
<HTTP>
<Get>
<OnlineResource
xlink:href="http://neuron/cgi-bin/mapserv?map=../html/mapserver/htdocs/webservices.map&"/>
</Get>
<Post>
<OnlineResource
xlink:href="http://neuron/cgi-bin/mapserv?map=../html/mapserver/htdocs/webservices.map&"/>
</Post>
</HTTP>
</DCPType>
</GetCapabilities>
<GetMap>
<Format>image/png</Format>
<Format>image/gif</Format>
<Format>image/png; mode=24bit</Format>
<Format>image/jpeg</Format>
<Format>image/wbmp</Format>
<Format>image/tiff</Format>
<DCPType>
<HTTP>
<Get>
<OnlineResource
xlink:href="http://neuron/cgi-bin/mapserv?map=../html/mapserver/htdocs/webservices.map&"/>
</Get>
<Post>
<OnlineResource
xlink:href="http://neuron/cgi-bin/mapserv?map=../html/mapserver/htdocs/webservices.map&"/>
</Post>
</HTTP>
</DCPType>
</GetMap>
<GetFeatureInfo>
<Format>text/plain</Format>
<Format>application/vnd.ogc.gml</Format>
<DCPType>
<HTTP>
<Get>
<OnlineResource
xlink:href="http://neuron/cgi-bin/mapserv?map=../html/mapserver/htdocs/webservices.map&"/>
</Get>
<Post>
<OnlineResource
xlink:href="http://neuron/cgi-bin/mapserv?map=../html/mapserver/htdocs/webservices.map&"/>
</Post>
</HTTP>
</DCPType>
</GetFeatureInfo>
−
<DescribeLayer>
<Format>text/xml</Format>
−
<DCPType>
−
<HTTP>
−
<Get>
<OnlineResource
xlink:href="http://neuron/cgi-bin/mapserv?map=../html/mapserver/htdocs/webservices.map&"/>
</Get>
−
<Post>
<OnlineResource
xlink:href="http://neuron/cgi-bin/mapserv?map=../html/mapserver/htdocs/webservices.map&"/>
</Post>
</HTTP>
</DCPType>
</DescribeLayer>
−
<GetLegendGraphic>
<Format>image/gif</Format>
<Format>image/png; mode=24bit</Format>
<Format>image/jpeg</Format>
<Format>image/wbmp</Format>
−
<DCPType>
−
<HTTP>
−
<Get>
<OnlineResource
xlink:href="http://neuron/cgi-bin/mapserv?map=../html/mapserver/htdocs/webservices.map&"/>
</Get>
−
<Post>
<OnlineResource
xlink:href="http://neuron/cgi-bin/mapserv?map=../html/mapserver/htdocs/webservices.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>
<Name>WMS_WFS_WCS_server</Name>
<Title>WMS Mars MapServer</Title>
<SRS>EPSG:4326</SRS>
<LatLonBoundingBox minx="-180" miny="-90" maxx="180" maxy="90"/>
<BoundingBox SRS="EPSG:4326" minx="-180" miny="-90" maxx="180" maxy="90"/>
−
<Layer queryable="0" opaque="0" cascaded="0">
<Name>themis</Name>
<Title>TMEMIS Data</Title>
<SRS>EPSG:4326</SRS>
<LatLonBoundingBox minx="-180" miny="-90" maxx="180" maxy="90"/>
<BoundingBox SRS="EPSG:4326" minx="-180" miny="-90" maxx="180" maxy="90"/>
</Layer>
−
<Layer queryable="0" opaque="0" cascaded="0">
<Name>mola</Name>
<Title>MOLA Data</Title>
<SRS>EPSG:4326</SRS>
<LatLonBoundingBox minx="-180" miny="-90" maxx="180" maxy="90"/>
<BoundingBox SRS="EPSG:4326" minx="-180" miny="-90" maxx="180" maxy="90"/>
</Layer>
−
<Layer queryable="0" opaque="0" cascaded="0">
<Name>moc</Name>
<Title>MOC Data</Title>
<SRS>EPSG:4326</SRS>
<LatLonBoundingBox minx="-180" miny="-90" maxx="180" maxy="90"/>
<BoundingBox SRS="EPSG:4326" minx="-180" miny="-90" maxx="180" maxy="90"/>
</Layer>
−
<Layer queryable="0" opaque="0" cascaded="0">
<Name>hrsc_nd</Name>
<Title>hrsc data</Title>
<SRS>EPSG:4326</SRS>
<LatLonBoundingBox minx="-2.5e+07" miny="-2.5e+07" maxx="2.5e+07"
maxy="2.5e+07"/>
<BoundingBox SRS="EPSG:4326" minx="-2.5e+07" miny="-2.5e+07" maxx="2.5e+07"
maxy="2.5e+07"/>
−
<Style>
<Name>default</Name>
<Title>default</Title>
−
<LegendURL width="20" height="10">
<Format>image/png</Format>
<OnlineResource xlink:type="simple"
xlink:href="http://neuron/cgi-bin/mapserv?map=../html/mapserver/htdocs/webservices.map&version=1.1.1&service=WMS&request=GetLegendGraphic&layer=hrsc_nd&format=image/png"/>
</LegendURL>
</Style>
</Layer>
−
<Layer queryable="0" opaque="0" cascaded="0">
<Name>hrsc_other</Name>
<Title>hrsc_other</Title>
<SRS>EPSG:4326</SRS>
<LatLonBoundingBox minx="-2.5e+07" miny="-2.5e+07" maxx="2.5e+07"
maxy="2.5e+07"/>
<BoundingBox SRS="EPSG:4326" minx="-2.5e+07" miny="-2.5e+07" maxx="2.5e+07"
maxy="2.5e+07"/>
−
<Style>
<Name>default</Name>
<Title>default</Title>
−
<LegendURL width="20" height="10">
<Format>image/png</Format>
<OnlineResource xlink:type="simple"
xlink:href="http://neuron/cgi-bin/mapserv?map=../html/mapserver/htdocs/webservices.map&version=1.1.1&service=WMS&request=GetLegendGraphic&layer=hrsc_other&format=image/png"/>
</LegendURL>
</Style>
</Layer>
</Layer>
</Capability>
</WMT_MS_Capabilities>
More information about the MapServer-users
mailing list