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 01-27-2008, 12:42 PM   #1
sebastian_b
Junior Member
 
Join Date: Dec 2007
Location: Germany, Essen
Posts: 16
sebastian_b is on a distinguished road
Default No political boundaries

Hello,
today I noticed that in my application the political boundaries are not displayed anymore. As I haven't changed the code in the past days, I don't know what causes the problem. Any hints?

Bye,
Sebastian
sebastian_b is offline   Reply With Quote
Old 01-27-2008, 05:01 PM   #2
withak
What?
 
withak's Avatar
 
Join Date: Apr 2005
Location: San Francisco, California
Posts: 2,461
withak
Default

Network problem probably.
withak is offline   Reply With Quote
Old 01-27-2008, 05:11 PM   #3
nlneilson
Super Moderator
 
Join Date: Nov 2006
Location: Mojave & Oxnard California
Posts: 2,623
nlneilson is on a distinguished road
Default

Do you have the layer listed?
new CountryBoundariesLayer(),
Look at JavaOneDemoA.java that sets it to
wwd.setModel(new BasicModel());
this does not use the CountryBoundariesLayer
Look at JavaOneDemoB.java which does not list the CountryBoundariesLayer
Not knowing how your app is set up it is hard to tell why it is not showing up if it was before. If your app is set up similar to JavaOneDemoB.java then just add the line:
new CountryBoundariesLayer(),

edit: If it was a network problem it seems the boundaries that were downloaded when your app was working before should be in your cache and at least those should show up.

Last edited by nlneilson; 01-27-2008 at 05:29 PM.
nlneilson is offline   Reply With Quote
Old 01-27-2008, 05:27 PM   #4
sebastian_b
Junior Member
 
Join Date: Dec 2007
Location: Germany, Essen
Posts: 16
sebastian_b is on a distinguished road
Default

Network problems on my side? If that's the case, then I shouldn't receive any data - right? But beside the political boundaries everything else works fine (as far as I know).

Here's there code that used to work in the past:

myCountryBoundariesLayer = new CountryBoundariesLayer();
myCountryBoundariesLayer.setEnabled(true );
insertBeforeCompass(getWwd(), myCountryBoundariesLayer);


Sebastian

Last edited by sebastian_b; 01-27-2008 at 05:36 PM.
sebastian_b is offline   Reply With Quote
Old 01-27-2008, 06:16 PM   #5
sebastian_b
Junior Member
 
Join Date: Dec 2007
Location: Germany, Essen
Posts: 16
sebastian_b is on a distinguished road
Default

@nlneilson:
I add the line "new CountryBoundariesLayer()" in JavaOneDemoB but unfortunately without success.
One possible reason is, that I'm working on another computer now (the harddisk in my laptop crashed). But everything else works fine.

Sebastian
sebastian_b is offline   Reply With Quote
Old 01-27-2008, 06:27 PM   #6
nlneilson
Super Moderator
 
Join Date: Nov 2006
Location: Mojave & Oxnard California
Posts: 2,623
nlneilson is on a distinguished road
Default

Open JavaOneDemoB.java and add the line:
new CountryBoundariesLayer(),
If this shows the Boundaries then you will need to debug you app to see why yours is not showing the layer.
Does the check box for turning the layer off and on show up?

edit: I posted this before your last post showed up.
The WWJ SDK DemoB with the line added should work. You may need to re-install on the new hard drive.

Last edited by nlneilson; 01-27-2008 at 06:32 PM.
nlneilson is offline   Reply With Quote
Old 01-27-2008, 10:18 PM   #7
sebastian_b
Junior Member
 
Join Date: Dec 2007
Location: Germany, Essen
Posts: 16
sebastian_b is on a distinguished road
Default

If I understand the class CountryBoundariesLayer correct, then the application tries to receive the data from an URL like this: http://worldwind21.arc.nasa.gov/geos...ansparent=true

If I copy this link in my browser I got an error message (can't connect to the server). Maybe that's the problem?

CU,
Sebastian
sebastian_b is offline   Reply With Quote
Old 01-27-2008, 11:47 PM   #8
nlneilson
Super Moderator
 
Join Date: Nov 2006
Location: Mojave & Oxnard California
Posts: 2,623
nlneilson is on a distinguished road
Default

Quote:
Originally Posted by withak View Post
Network problem probably.
He is probably right there is a problem with the server at worldwind21.arc.nasa.gov.
I get this error:
can't establish a connection to the server at worldwind21.arc.nasa.gov.

worldwind25.arc.nasa.gov that has many of the other tiles is OK.

Look in the cache on the computer you are now using, there are probably no files in the Boundaries so none will display until the server for worldwind21.arc.nasa.gov. is working so the tiles can be downloaded.
nlneilson is offline   Reply With Quote
Old 01-29-2008, 06:14 AM   #9
sebastian_b
Junior Member
 
Join Date: Dec 2007
Location: Germany, Essen
Posts: 16
sebastian_b is on a distinguished road
Default

Any information when the server will be back online?
sebastian_b is offline   Reply With Quote
Old 01-29-2008, 04:00 PM   #10
tag
WWJ Technical Manager
 
Join Date: May 2007
Location: Seattle
Posts: 1,033
tag is on a distinguished road
Default

Change the server called to worldwind25. worldwind21 is now out of commission, and will likely remain so.
tag 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
New Boundaries Set including Administrative Areas mazop Add-ons & Scripts 12 10-02-2008 06:14 AM
historical political boundaries nittyG Developers' Corner 6 01-26-2008 07:13 AM
Political Boundary Data rogene Development Help 5 08-29-2007 06:56 PM
Historical Political Boundaries tushyd Suggestion Box 5 05-15-2007 09:29 PM
World Political Map AddOn mazop Add-ons & Scripts 11 04-26-2006 03:52 PM


All times are GMT +1. The time now is 08:14 AM.


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