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(org.w3c.dom.Document dataConfig,
AVList params,
InstalledDataPanel panel) |
protected static java.lang.String |
askForDatasetName(java.lang.String suggestedName) |
protected static org.w3c.dom.Document |
createDataStore(java.io.File[] files,
FileStore fileStore,
DataStoreProducer producer) |
protected static DataStoreProducer |
createDataStoreProducerFromFiles(java.io.File[] files)
Creates an instance of the DataStoreProducer basing on raster type.
|
protected static org.w3c.dom.Document |
installDataFromFiles(java.awt.Component parentComponent,
java.io.File[] files,
FileStore fileStore) |
protected static void |
loadInstalledDataFromDirectory(java.io.File dir,
InstalledDataPanel panel) |
protected static void |
loadInstalledDataFromFileStore(FileStore fileStore,
InstalledDataPanel panel) |
static void |
main(java.lang.String[] args) |
protected static void |
setFallbackParams(org.w3c.dom.Document dataConfig,
java.lang.String filename,
AVList params) |
protected static java.lang.String |
suggestDatasetName(java.io.File[] files)
Suggests a name for a dataset based on pathnames of the passed files.
|
insertAfterPlacenames, insertBeforeCompass, insertBeforeLayerName, insertBeforePlacenames, start
protected static void addInstalledData(org.w3c.dom.Document dataConfig, AVList params, InstalledDataPanel panel)
protected static java.lang.String askForDatasetName(java.lang.String suggestedName)
protected static org.w3c.dom.Document createDataStore(java.io.File[] files, FileStore fileStore, DataStoreProducer producer) throws java.lang.Exception
java.lang.Exception
protected static DataStoreProducer createDataStoreProducerFromFiles(java.io.File[] files) throws java.lang.IllegalArgumentException
files
- Array of raster filesIllegalArgumentException,
- if types of rasters do not match, or array of raster files is null or emptyjava.lang.IllegalArgumentException
protected static org.w3c.dom.Document installDataFromFiles(java.awt.Component parentComponent, java.io.File[] files, FileStore fileStore) throws java.lang.Exception
java.lang.Exception
protected static void loadInstalledDataFromDirectory(java.io.File dir, InstalledDataPanel panel)
protected static void loadInstalledDataFromFileStore(FileStore fileStore, InstalledDataPanel panel)
public static void main(java.lang.String[] args)
protected static void setFallbackParams(org.w3c.dom.Document dataConfig, java.lang.String filename, AVList params)
protected static java.lang.String suggestDatasetName(java.io.File[] files)
files
- Array of raster files