World Wind Forums

Go Back   World Wind Forums > WorldWind JAVA forums > Development Help

Development Help Help for building applications or diagnosing problems with WWJ

Reply
 
Thread Tools Display Modes
Old 07-20-2007, 03:01 AM   #1
Yang
Junior Member
 
Join Date: Jul 2007
Posts: 15
Yang is on a distinguished road
Default WWJ_WWConfigLoader cannot load geoserver wms

Hello dear patmurris,following your WWJ_WWConfigLoader codes, I find it cannot load
local geoserver wms data. I make a geos.xml as WW_BRGM.xml. And add "layerset.add(WWConfigLoader.getLaye rSet FromFile(
new File("Config/Earth/geos.xml")));" in the WWGlobe.java .But the map cannot display.Thank you very much!The geos.xml is as follows.
Best wishes for you!
Sincerely yours,
Yang

geos.xml :
<LayerSet Name="GeoS" ShowOnlyOneLayer="false" ShowAtStartup="true" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="LayerSet. xsd">
<ChildLayerSet Name="wms" ShowOnlyOneLayer="false" ShowAtStartup="false">
<ExtendedInformation>
<ToolBarImage>Data\Icons\Interface\BRG M_ logo.png</ToolBarImage>
</ExtendedInformation>

<QuadTileSet ShowAtStartup="false">
<Name>qujie_Type</Name>
<DistanceAboveSurface>0</DistanceAboveSurface>
<BoundingBox>
<North>
<Value>31.8178405761719</Value>
</North>
<South>
<Value>27.2143630981445</Value>
</South>
<West>
<Value>82.0993194580078 </Value>
</West>
<East>
<Value>90.3516540527344</Value>
</East>
</BoundingBox>
<TerrainMapped>true</TerrainMapped>
<ImageAccessor>
<LevelZeroTileSizeDegrees>22.5</LevelZeroTileSizeDegrees>
<NumberLevels>14</NumberLevels>
<TextureSizePixels>512</TextureSizePixels>
<ImageFileExtension>png</ImageFileExtension>
<WMSAccessor>
<ServerGetMapUrl>http://localhost:8080/geoserver/wms</ServerGetMapUrl>
<Version>1.1.1</Version>
<ImageFormat>image/png</ImageFormat>
<WMSLayerName>topp:qujie&amp;TRANSPARE NT =TRUE&amp;BGCOLOR=0xFF00FF</WMSLayerName>
<UseTransparency>true</UseTransparency>
<ServerLogoFilePath>Data\Icons\pecten. pn g</ServerLogoFilePath>
</WMSAccessor>
</ImageAccessor>
<ExtendedInformation>
<ToolBarImage />
</ExtendedInformation>
<TransparentColor>
<Red>255</Red>
<Green>0</Green>
<Blue>255</Blue>
</TransparentColor>
</QuadTileSet>
</ChildLayerSet>
</LayerSet>
Yang is offline   Reply With Quote
Old 07-20-2007, 11:43 AM   #2
m_k
Bored Explorer
 
m_k's Avatar
 
Join Date: Nov 2004
Location: Warsaw, Poland
Posts: 1,808
m_k is an unknown quantity at this point
Default

See here: http://forum.worldwindcentral.com/sh...6684#post46684
__________________
Hot stuff: FAQ, forum search, DirectX, .NET, Video Card Compatibility list
m_k is offline   Reply With Quote
Old 07-20-2007, 01:57 PM   #3
patmurris
WWJ Consultant
 
patmurris's Avatar
 
Join Date: Jun 2005
Location: Saint-Paul de Vence, Alpes Maritimes, France
Posts: 3,412
patmurris is an unknown quantity at this point
Default

Try adding a trace System.out.println() at the end of the urlRetreiver to see if it is called at all, and what kind of url it returns. You can then at least try those urls in a web browser to see if the server returns the proper data or an error message.
It could be the ':' in the layer name 'topp:qujie' that is the problem too.
__________________
My World Wind Java Blog & WW.net Plugins page
patmurris is offline   Reply With Quote
Old 07-20-2007, 04:20 PM   #4
Yang
Junior Member
 
Join Date: Jul 2007
Posts: 15
Yang is on a distinguished road
Default

Thank you very much m_k and patmurris ! Follow your help ,I make it run correctly. But I find the wrong point is because it lack of "styles" param in the xml file tags.
Yang is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may post new threads
You may post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
GeoServer Transparency and WMS Browser randomyachtie Image Serving & GIS 5 04-15-2009 04:56 AM
Problems oin adding layers from WMS GEOserver asbayomie Developers' Corner 2 12-27-2008 12:20 PM
I can't see WMS data with Worldwind 2.1 and Local Geoserver WMS vash Development Help 15 07-10-2007 06:25 PM
Relief overlay of WMS data. globpat WorldWind General 2 07-03-2007 08:47 PM
WMS Browser Problem armin Technical Support 1 03-20-2007 04:41 PM


All times are GMT +1. The time now is 11:24 AM.


Powered by vBulletin® Version 3.7.1
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.