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-14-2009, 08:49 PM   #1
Unregistered
Guest
 
Posts: n/a
Default Cache map Data - run in offline mode?

Hopefully someone can point me in the right direction and let me know if this is something that can be done.

I have Worldwind running fine on a machine right now and everything works great. When I zoom in I see that newer data is being downloaded and the map is updated with this information...

My question is as follows: Is it possible to download this data before hand and store it somewhere? I need to be able to run worldwind while not being connected to the internet? Storage space is not an issue....

If this is something that can be done, direction towards documentation would be greatly appreciated
  Reply With Quote
Old 01-15-2009, 01:41 PM   #2
Chiss
Senior Member
 
Join Date: Jul 2007
Location: Mirabel, Quebec, Canada
Posts: 225
Chiss is on a distinguished road
Default

Easy to do, just put all the required data in the default cache or in another location you define and then set the offline mode to true, like :

Code:
        //Our own local cache
        FileCache dataFileCache = WorldWind.getDataFileCache();
        dataFileCache.addCacheLocation(IMAGERY_PATH);
        WorldWind.setOfflineMode(true);
Hope this helps,

Chiss!
Chiss is offline   Reply With Quote
Old 01-22-2009, 04:33 PM   #3
Shaun
Member
 
Join Date: Sep 2007
Posts: 32
Shaun is on a distinguished road
Default

Sure does seem easy to do, where is that code being place?

-Shaun
Shaun is offline   Reply With Quote
Old 01-22-2009, 06:38 PM   #4
Chiss
Senior Member
 
Join Date: Jul 2007
Location: Mirabel, Quebec, Canada
Posts: 225
Chiss is on a distinguished road
Default

Just after initializing the WorldWindow component worked for me!
Chiss is offline   Reply With Quote
Old 06-30-2009, 02:59 PM   #5
Unregistered
Guest
 
Posts: n/a
Default

Hi

I am trying to setup my application to work offline. But i can find the methods that you are mentioning. I am using the WorldWind 0.6.157.11976. Please how can i set my code to work offline with the dataset that i already downloaded.

Cheers,
Ravioli
  Reply With Quote
Old 07-02-2009, 11:47 AM   #6
tingspain
Junior Member
 
Join Date: Apr 2009
Posts: 13
tingspain is on a distinguished road
Default

Hi

I am having trying to set my WorldWindJava to work offline setting my own local cache data. But I didn’t be able to do it. There is not clear explanation how to do it, specially using the last build of WWJ. I was not be able to find the WorldWind.getDataFileCache();

Also I will be very very very grateful if somebody could explain me how to prepare my own local cache data for BMNGWMSLayer, EarthNASAPlaceNameLayer(), SMRT and LandsatI3WMSLayer Layers .

Please, any help

Thanks in advance
Ting
tingspain is offline   Reply With Quote
Old 07-16-2009, 08:17 PM   #7
Xavier
Member
 
Join Date: Jun 2009
Location: Temp Residence: Slidell, Louisiana. Work: Stennis Space Center, Mississippi
Posts: 32
Xavier is on a distinguished road
Default

I believe there is a property that in worldwind.properties that allows you to work in offline mode. I did that, and when I set it to work offline, when it would have said "downloading" it had a constant "no network" (or something along those lines.)

/*Edit 1*/under src/config/worldwind.properties, scroll down to the bottom and you should see "gov.nasa.worldwind.avkey.OfflineMode=fa lse". Set this value to true, and the program will work offline. My apologies, but I am unsure of the other question.
__________________
Kilroy was here!

"Artificial intelligence is no match for natural stupidity."--Unknown

"Theory: The bane of every computer scientist."--unknown

I wonder why the threads and small forums I post on always seem to die off.

Last edited by Xavier; 07-16-2009 at 08:24 PM.
Xavier is offline   Reply With Quote
Old 07-17-2012, 06:07 PM   #8
KBub
Junior Member
 
Join Date: Jun 2012
Posts: 10
KBub is on a distinguished road
Default

I am also interested in an offline mode. I cant find where worldwindow is initialized in my main. Are there any how-to youtube videos out there on this ?? that would be most helpful
KBub is offline   Reply With Quote
Old 07-20-2012, 06:12 PM   #9
tag
WWJ Technical Manager
 
Join Date: May 2007
Location: Seattle
Posts: 1,041
tag is on a distinguished road
Default

WorldWind.setOfflineMode(true)

See the BulkDownload example. But please use it sparingly or you'll kill our servers (and use up your daily request allocation).
tag is offline   Reply With Quote
Old 07-21-2012, 03:07 PM   #10
nlneilson
Super Moderator
 
Join Date: Nov 2006
Location: Mojave & Oxnard California
Posts: 2,624
nlneilson is on a distinguished road
Default

Quote:
Originally Posted by Unregistered View Post
My question is as follows: Is it possible to download this data before hand and store it somewhere? I need to be able to run worldwind while not being connected to the internet? Storage space is not an issue....
Just run a WWJ app when online to download the images in the area you are concerned about. When offline those images can be viewed and nothing else is required.
__________________
Neil
http://www.nlneilson.com
nlneilson is offline   Reply With Quote
Reply

Tags
cache, download, map data, offline


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
Launching the world wind 1.4 danzack Technical Support 2 11-19-2008 07:01 PM
Offline mode needed James_In_Utah Developers' Corner 48 07-11-2008 12:55 PM
Cache corrupted data file warnings bhughes Development Help 3 05-14-2008 02:38 AM
second tier WW data cache packs johnh Developers' Corner 3 02-28-2005 08:53 PM
Offline Mode (use only cache) Stephen Suggestion Box 0 09-27-2004 04:27 PM


All times are GMT +1. The time now is 01:54 PM.


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