World Wind/MapServer WMS

Dunne, Declan D.Dunne at UCC.IE
Thu Aug 3 04:30:31 PDT 2006


Hi Ryan,

NASA World Wind supports WMS in two ways

1) 
High-resolution imagery overlay (i.e. the layers listed under Layer
Manger/Images). This option supports visualisation of large WMS image
repositories through WMS image tiling.
Configuration file: @Images.xml

2)
Lower-resolution static/animated image overlay (i.e. the WMS Browser
button). This option supports both static image and time-series WMS
animations at a lower-resolution. It automatically builds a layer list from
a WMS GetCapabilities request.
Configuration file: wms_server_list.xml

So, I think you are using method 2. To get this working you need to
configure the wms_server_list.xml file like below (WW 1.3.5). Note, the
ServerUrl tag contains a WMS GetCapabilities URL request, and I also replace
"&" with "&" in the request string. I think the WMSLayerName tag that
you used only works with option 1. 

...
  <Server>
    <Name>WMS DEMO</Name>
 
<ServerUrl>http://localhost//cgi-bin/mapserv.exe?map=YourMapfile.map&ser
vice=WMS&version=1.1.1&request=GetCapabilities</ServerUrl>    
    <Version>1.1.1</Version>
    <Abstract>Some Name</Abstract>
  </Server>
...

Hope this helps,
Declan


-----Original Message-----
From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On
Behalf Of Ryan Ollerenshaw
Sent: 01 August 2006 22:10
To: MAPSERVER-USERS at LISTS.UMN.EDU
Subject: [UMN_MAPSERVER-USERS] World Wind/MapServer WMS

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/webser
vices.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/webse
rvices.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/webse
rvices.map&"/>
</Get>

<Post>
<OnlineResource
xlink:href="http://neuron/cgi-bin/mapserv?map=../html/mapserver/htdocs/webse
rvices.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/webse
rvices.map&"/>
</Get>

<Post>
<OnlineResource
xlink:href="http://neuron/cgi-bin/mapserv?map=../html/mapserver/htdocs/webse
rvices.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/webse
rvices.map&"/>
</Get>

<Post>
<OnlineResource
xlink:href="http://neuron/cgi-bin/mapserv?map=../html/mapserver/htdocs/webse
rvices.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/webse
rvices.map&"/>
</Get>
−
	<Post>
<OnlineResource
xlink:href="http://neuron/cgi-bin/mapserv?map=../html/mapserver/htdocs/webse
rvices.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/webse
rvices.map&"/>
</Get>
−
	<Post>
<OnlineResource
xlink:href="http://neuron/cgi-bin/mapserv?map=../html/mapserver/htdocs/webse
rvices.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/webse
rvices.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/webse
rvices.map&version=1.1.1&service=WMS&request=GetLegendGraphic&layer=hrsc_oth
er&format=image/png"/>
</LegendURL>
</Style>
</Layer>
</Layer>
</Capability>
</WMT_MS_Capabilities>



More information about the MapServer-users mailing list