GeoscienceAustralia / ga-worldwind-suite

A collection of tools created by the Geoscience Australia (GA) Movies and 3D Visualisation (M3DV) team. The tools are built around the NASA World Wind Java SDK, an open-source virtual globe toolkit.
40 stars 24 forks source link

Complete loading of cached file layers #45

Open jfnavin opened 12 years ago

jfnavin commented 12 years ago

When loading a GeoTIFF or other georeferenced image, a local tileset is generated in the 'C:\WINNT\Profiles\All Users\Application Data\WorldWindInstalled' directory. The FileLoader.loadCachedData() function should return a valid layer document when this cached data exists.

At the moment, it returns null, which means the local tileset is generated on load every time the Viewer is run.

Also, I think the directories stored under the WorldWindInstalled directory should contain the file's path information, not just the filename.

At the moment, if you insert two file layers from different directories but with the same filename into the Viewer's layers, the generated local tileset directory will be the same. This is not ideal. Perhaps encode the path and filename into the local tileset directory name (replacing the /'s with some other character)?