![]() |
|
|||||||
| Development Help Help for building applications or diagnosing problems with WWJ |
![]() |
|
|
Thread Tools | Display Modes |
|
|
|
|
#1 |
|
Guest
Posts: n/a
|
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 |
|
|
|
#2 |
|
Senior Member
Join Date: Jul 2007
Location: Mirabel, Quebec, Canada
Posts: 225
![]() |
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);
Chiss! |
|
|
|
|
|
#3 |
|
Member
Join Date: Sep 2007
Posts: 32
![]() |
Sure does seem easy to do, where is that code being place?
-Shaun |
|
|
|
|
|
#4 |
|
Senior Member
Join Date: Jul 2007
Location: Mirabel, Quebec, Canada
Posts: 225
![]() |
Just after initializing the WorldWindow component worked for me!
|
|
|
|
|
|
#5 |
|
Guest
Posts: n/a
|
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 |
|
|
|
#6 |
|
Junior Member
Join Date: Apr 2009
Posts: 13
![]() |
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 |
|
|
|
|
|
#7 |
|
Member
Join Date: Jun 2009
Location: Temp Residence: Slidell, Louisiana. Work: Stennis Space Center, Mississippi
Posts: 32
![]() |
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. |
|
|
|
|
|
#8 |
|
Junior Member
Join Date: Jun 2012
Posts: 10
![]() |
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
|
|
|
|
|
|
#9 |
|
WWJ Technical Manager
Join Date: May 2007
Location: Seattle
Posts: 1,041
![]() |
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). |
|
|
|
|
|
#10 |
|
Super Moderator
Join Date: Nov 2006
Location: Mojave & Oxnard California
Posts: 2,624
![]() |
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.
|
|
|
|
![]() |
| Tags |
| cache, download, map data, offline |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|
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 |