public class InstallImageryAndElevationsDemo extends ApplicationTemplate
TiledImageLayer or an
ElevationModel. The application also illustrates how to visualize data
that has been installed during a previous session.
For the simplest possible examples of installing imagery and elevation data, see the examples InstallImagery and InstallElevations.| Modifier and Type | Class and Description |
|---|---|
static class |
InstallImageryAndElevationsDemo.AppFrame |
protected static class |
InstallImageryAndElevationsDemo.InstallableDataFilter |
static class |
InstallImageryAndElevationsDemo.InstalledDataFrame |
ApplicationTemplate.AppPanel| Constructor and Description |
|---|
InstallImageryAndElevationsDemo() |
| Modifier and Type | Method and Description |
|---|---|
protected static void |
addInstalledData(Document dataConfig,
AVList params,
InstalledDataPanel panel) |
protected static void |
appendProperties(Element context,
AVList properties)
Append Property elements to a context element.
|
protected static void |
appendSource(Element sources,
CachedDataRaster raster)
Append Source element to a Sources element.
|
protected static String |
askForDatasetName(String suggestedName) |
protected static Document |
createDataStore(File[] files,
FileStore fileStore,
DataStoreProducer producer) |
protected static DataStoreProducer |
createDataStoreProducerFromFiles(File[] files)
Creates an instance of the DataStoreProducer basing on raster type.
|
protected static void |
createRasterServerConfigDoc(FileStore fileStore,
DataStoreProducer producer) |
protected static Document |
installDataFromFiles(Component parentComponent,
File[] files,
FileStore fileStore) |
protected static void |
loadInstalledDataFromDirectory(File dir,
InstalledDataPanel panel) |
protected static void |
loadInstalledDataFromFileStore(FileStore fileStore,
InstalledDataPanel panel) |
static void |
main(String[] args) |
protected static void |
setFallbackParams(Document dataConfig,
String filename,
AVList params) |
protected static String |
suggestDatasetName(File[] files)
Suggests a name for a dataset based on pathnames of the passed files.
|
insertAfterPlacenames, insertBeforeCompass, insertBeforeLayerName, insertBeforePlacenames, startprotected static void addInstalledData(Document dataConfig, AVList params, InstalledDataPanel panel)
protected static void appendProperties(Element context, AVList properties)
context - the context on which to append new element(s)properties - AVList with properties to append.protected static void appendSource(Element sources, CachedDataRaster raster) throws WWRuntimeException
sources - the Sources element on which to append the new Source elementraster - instance of the CachedDataRasterWWRuntimeException - if cannot retrieve or understand the data sourceprotected static Document createDataStore(File[] files, FileStore fileStore, DataStoreProducer producer) throws Exception
Exceptionprotected static DataStoreProducer createDataStoreProducerFromFiles(File[] files) throws IllegalArgumentException
files - Array of raster filesIllegalArgumentException, - if types of rasters do not match, or array of raster files is null or emptyIllegalArgumentExceptionprotected static void createRasterServerConfigDoc(FileStore fileStore, DataStoreProducer producer)
protected static Document installDataFromFiles(Component parentComponent, File[] files, FileStore fileStore) throws Exception
Exceptionprotected static void loadInstalledDataFromDirectory(File dir, InstalledDataPanel panel)
protected static void loadInstalledDataFromFileStore(FileStore fileStore, InstalledDataPanel panel)
public static void main(String[] args)
protected static void setFallbackParams(Document dataConfig, String filename, AVList params)
protected static String suggestDatasetName(File[] files)
files - Array of raster files