Hi!
I downloaded DTEDs from the USGS site and installed them into WorldWind using the InstallImageryAndElevationsDemo. I then transferred those files from my local hard drive to an external hard drive. Next I made edits to my own DataFileStore.xml file so it would point to my external hard drive. But I can't get WorldWind to recognize the DTED cache tiles on my external hard drive.
At first I thought WorldWind couldn't locate my external hard drive, but during my testing I zoomed into certain locations on the Earth while WorldWind.setOfflineMode(false) was set, and an Earth subfolder was created on my external hard drive and imagery was downloaded to that Earth subfolder. When I restarted WorldWind with setOfflineMode(true), the application obtained that imagery from my external hard drive so it seems the DataFileStore.xml file is working.
But I can't get it to recognize the DTED cache tiles that were created using the InstallImageryAndElevationsDemo. Any ideas?
Below is my DataFileStore.xml, which is actually located in a different directory than the default one so I'm using the following code in my program:
DataFileStore.xml :
I tried to mimic the file structure from my local drive so the downloaded Earth imagery resides in the WorldWindData folder, while the DTED cache tiles are in the WorldWindInstalled folder.
Thank you!
I downloaded DTEDs from the USGS site and installed them into WorldWind using the InstallImageryAndElevationsDemo. I then transferred those files from my local hard drive to an external hard drive. Next I made edits to my own DataFileStore.xml file so it would point to my external hard drive. But I can't get WorldWind to recognize the DTED cache tiles on my external hard drive.
At first I thought WorldWind couldn't locate my external hard drive, but during my testing I zoomed into certain locations on the Earth while WorldWind.setOfflineMode(false) was set, and an Earth subfolder was created on my external hard drive and imagery was downloaded to that Earth subfolder. When I restarted WorldWind with setOfflineMode(true), the application obtained that imagery from my external hard drive so it seems the DataFileStore.xml file is working.
But I can't get it to recognize the DTED cache tiles that were created using the InstallImageryAndElevationsDemo. Any ideas?
Below is my DataFileStore.xml, which is actually located in a different directory than the default one so I'm using the following code in my program:
Code:
Configuration.setValue( "gov.nasa.worldwind.avkey.DataFileStoreConfigurationFileName", "resources/DataFileStore.xml");
Code:
<?xml version="1.0"?> <!-- World Wind data-file store configuration --> <dataFileStore> <readLocations> <location wwDir="F:\WorldWindData" /> <location wwDir="F:\WorldWindInstalled" isInstall="true" isMarkWhenUsed="true" /> </readLocations> <writeLocations> <location wwDir="F:\WorldWindData" create="true"/> </writeLocations> </dataFileStore>
Thank you!
Comment