NASA World Wind

gov.nasa.worldwind.terrain
Class LocalRasterServerElevationModel

java.lang.Object
  extended by gov.nasa.worldwind.avlist.AVListImpl
      extended by gov.nasa.worldwind.WWObjectImpl
          extended by gov.nasa.worldwind.terrain.AbstractElevationModel
              extended by gov.nasa.worldwind.terrain.BasicElevationModel
                  extended by gov.nasa.worldwind.terrain.LocalRasterServerElevationModel
All Implemented Interfaces:
AVList, Disposable, MessageListener, ElevationModel, NamedObject, Restorable, BulkRetrievable, WWObject, PropertyChangeListener, EventListener

public class LocalRasterServerElevationModel
extends BasicElevationModel

Implements an ElevationModel for a local dataset accessed via a local raster server (RasterServer).


Nested Class Summary
 
Nested classes/interfaces inherited from class gov.nasa.worldwind.terrain.BasicElevationModel
BasicElevationModel.DownloadPostProcessor, BasicElevationModel.Elevations, BasicElevationModel.ElevationTile, BasicElevationModel.RequestTask, BasicElevationModel.ResourceRetrievalTask
 
Field Summary
 
Fields inherited from class gov.nasa.worldwind.terrain.BasicElevationModel
absentResources, DEFAULT_MAX_RESOURCE_ATTEMPTS, DEFAULT_MIN_RESOURCE_CHECK_INTERVAL, detailHint, elevationDataByteOrder, elevationDataType, extremes, extremesLevel, extremesLookupCache, fileLock, levels, levelZeroTiles, maxElevation, memoryCache, minElevation, RESOURCE_ID_OGC_CAPABILITIES, resourceRetrievalService
 
Fields inherited from class gov.nasa.worldwind.terrain.AbstractElevationModel
dataFileStore, expiryTime, missingDataFlag, missingDataValue, networkRetrievalEnabled
 
Constructor Summary
LocalRasterServerElevationModel(AVList params)
          Constructs an elevation model from a list of parameters describing the elevation model.
LocalRasterServerElevationModel(Document dom, AVList params)
          Constructs an elevation model from an XML document description.
LocalRasterServerElevationModel(Element domElement, AVList params)
          Constructs an elevation model from an XML document Element.
LocalRasterServerElevationModel(String restorableStateInXml)
          Constructs an elevation model from restorable state obtained by a call to BasicElevationModel.getRestorableState() on another instance of this class.
 
Method Summary
protected  void createRasterServer(AVList params)
           
 
Methods inherited from class gov.nasa.worldwind.terrain.BasicElevationModel
addTileToCache, areElevationsInMemory, checkElevationExpiration, checkElevationExpiration, computeExtremeElevations, contains, convertImageToElevations, createBasicElevationModelConfigDocument, createBasicElevationModelConfigElements, createConfigurationDocument, createMemoryCache, createResourceRetrievalTask, createTile, determineExtremes, dispose, doGetRestorableState, doRestoreState, doRestoreStateForObject, downloadElevations, downloadElevations, doWriteConfigurationParams, generateExtremeElevations, getBasicElevationModelConfigParams, getBestResolution, getConfigurationParams, getDetailHint, getElevationDataByteOrder, getElevationDataType, getElevations, getElevations, getElevations, getEstimatedMissingDataSize, getEstimatedMissingDataSize, getExtremeElevations, getExtremeElevations, getExtremes, getExtremesLevel, getExtremesLookupCache, getLevels, getLevelZeroTiles, getMaxElevation, getMemoryCache, getMinElevation, getRestorableState, getRestorableStateForAVPair, getTargetLevel, getTileFromMemory, getUnmappedElevation, getUnmappedElevations, getValue, initFromOGCCapabilitiesResource, intersects, isFileExpired, isRetrieveResources, loadElevations, loadExtremeElevations, lookupElevation, makeLocal, makeLocal, needsConfigurationFile, propertyChange, readElevations, requestTile, restorableStateToParams, restoreState, restoreStateForParams, retrieveElevations, retrieveLocalElevations, retrieveRemoteElevations, retrieveResources, setByteOrder, setDetailHint, setElevationDataType, setExpiryTime, setFallbacks, setValue, startResourceRetrieval, stopResourceRetrieval, writeConfigurationFile, writeConfigurationParams
 
Methods inherited from class gov.nasa.worldwind.terrain.AbstractElevationModel
composeElevations, createElevationModelConfigElements, getDataFileStore, getElevation, getElevationModelConfigParams, getExpiryTime, getMissingDataReplacement, getMissingDataSignal, getName, isElevationModelConfigDocument, isNetworkRetrievalEnabled, isTransparentValue, setDataFileStore, setMissingDataReplacement, setMissingDataSignal, setName, setNetworkRetrievalEnabled, toString
 
Methods inherited from class gov.nasa.worldwind.WWObjectImpl
onMessage
 
Methods inherited from class gov.nasa.worldwind.avlist.AVListImpl
addPropertyChangeListener, addPropertyChangeListener, clearList, copy, firePropertyChange, firePropertyChange, getBooleanValue, getBooleanValue, getChangeSupport, getDoubleValue, getDoubleValue, getEntries, getIntegerValue, getIntegerValue, getLongValue, getLongValue, getStringValue, getStringValue, getStringValue, getValues, hasKey, removeKey, removePropertyChangeListener, removePropertyChangeListener, setValues
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface gov.nasa.worldwind.NamedObject
getName
 
Methods inherited from interface gov.nasa.worldwind.avlist.AVList
addPropertyChangeListener, addPropertyChangeListener, clearList, copy, firePropertyChange, firePropertyChange, getEntries, getStringValue, getValues, hasKey, removeKey, removePropertyChangeListener, removePropertyChangeListener, setValues
 
Methods inherited from interface gov.nasa.worldwind.event.MessageListener
onMessage
 

Constructor Detail

LocalRasterServerElevationModel

public LocalRasterServerElevationModel(AVList params)
Constructs an elevation model from a list of parameters describing the elevation model.

Parameter values for DATASET_NAME and DATA_CACHE_NAME are required.

TODO: Enumerate the other required and optional parameters.

Parameters:
params - the parameters describing the dataset.
Throws:
IllegalArgumentException - if the parameter list is null.
IllegalStateException - if the required parameters are missing from the parameter list.

LocalRasterServerElevationModel

public LocalRasterServerElevationModel(Document dom,
                                       AVList params)
Constructs an elevation model from an XML document description.

Either the specified XML document or parameter list must contain values for DATASET_NAME and DATA_CACHE_NAME.

TODO: Enumerate the other required and optional parameters.

Parameters:
dom - the XML document describing the dataset.
params - a list of parameters that each override a parameter of the same name in the XML document, or that augment the definition there.
Throws:
IllegalArgumentException - if the XML document reference is null.
IllegalStateException - if the required parameters are missing from the XML document or the parameter list.

LocalRasterServerElevationModel

public LocalRasterServerElevationModel(Element domElement,
                                       AVList params)
Constructs an elevation model from an XML document Element.

Either the specified XML element or parameter list must contain values for DATASET_NAME and DATA_CACHE_NAME.

TODO: Enumerate the other required and optional parameters.

Parameters:
domElement - the XML document describing the dataset.
params - a list of parameters that each override a parameter of the same name in the XML document, or that augment the definition there.
Throws:
IllegalArgumentException - if the XML document reference is null.
IllegalStateException - if the required parameters are missing from the XML element or the parameter list.

LocalRasterServerElevationModel

public LocalRasterServerElevationModel(String restorableStateInXml)
Constructs an elevation model from restorable state obtained by a call to BasicElevationModel.getRestorableState() on another instance of this class.

Parameters:
restorableStateInXml - a string containing the restorable state.
Throws:
IllegalArgumentException - if the restorable state is null or cannot be interpreted.
IllegalStateException - if the restorable state does not contain values for DATASET_NAME and DATA_CACHE_NAME.
Method Detail

createRasterServer

protected void createRasterServer(AVList params)

NASA World Wind