public class WMSBasicElevationModel extends BasicElevationModel
Modifier and Type | Class and Description |
---|---|
protected static class |
WMSBasicElevationModel.CompositionRetrievalPostProcessor |
protected static class |
WMSBasicElevationModel.ElevationCompositionTile |
protected static class |
WMSBasicElevationModel.URLBuilder |
BasicElevationModel.DownloadPostProcessor, BasicElevationModel.Elevations, BasicElevationModel.ElevationTile, BasicElevationModel.RequestTask
detailHint, elevationDataByteOrder, elevationDataType, extremes, extremesCachingEnabled, extremesLevel, extremesLookupCache, fileLock, levels, levelZeroTiles, maxElevation, memoryCache, minElevation, RESOURCE_ID_OGC_CAPABILITIES
dataFileStore, enabled, expiryTime, missingDataFlag, missingDataValue, networkRetrievalEnabled
Constructor and Description |
---|
WMSBasicElevationModel(AVList params) |
WMSBasicElevationModel(org.w3c.dom.Element domElement,
AVList params) |
WMSBasicElevationModel(java.lang.String restorableStateInXml) |
WMSBasicElevationModel(WMSCapabilities caps,
AVList params) |
Modifier and Type | Method and Description |
---|---|
void |
composeElevations(Sector sector,
java.util.List<? extends LatLon> latlons,
int tileWidth,
double[] buffer)
Determines the elevations at specified locations within a specified
Sector . |
protected org.w3c.dom.Document |
createConfigurationDocument(AVList params)
Appends WMS basic elevation model configuration elements to the superclass configuration document.
|
protected void |
downloadElevations(WMSBasicElevationModel.ElevationCompositionTile tile) |
void |
getRestorableStateForAVPair(java.lang.String key,
java.lang.Object value,
RestorableSupport rs,
RestorableSupport.StateObject context) |
static AVList |
getWMSElevationModelConfigParams(WMSCapabilities caps,
java.lang.String[] formatOrderPreference,
AVList params)
Parses WMSBasicElevationModel configuration parameters from a specified WMS Capabilities source.
|
protected static AVList |
wmsGetParamsFromCapsDoc(WMSCapabilities caps,
AVList params) |
protected static AVList |
wmsGetParamsFromDocument(org.w3c.dom.Element domElement,
AVList params) |
protected static AVList |
wmsRestorableStateToParams(java.lang.String stateInXml) |
protected static void |
wmsRestoreStateForParams(RestorableSupport rs,
RestorableSupport.StateObject context,
AVList params) |
protected static void |
wmsSetFallbacks(AVList params) |
addTileToCache, areElevationsInMemory, checkElevationExpiration, checkElevationExpiration, computeExtremeElevations, contains, convertImageToElevations, createBasicElevationModelConfigDocument, createBasicElevationModelConfigElements, createMemoryCache, createTile, determineExtremes, 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, getLocalDataAvailability, getMaxElevation, getMemoryCache, getMinElevation, getRestorableState, getTargetLevel, getTileFromMemory, getUnmappedElevation, getUnmappedElevations, getUnmappedLocalSourceElevation, getValue, initFromOGCCapabilitiesResource, intersects, isExtremesCachingEnabled, isFileExpired, isRetrieveResources, isTileLocalOrAbsent, loadElevations, loadExtremeElevations, lookupElevation, makeBilElevations, makeLocal, makeLocal, makeTiffElevations, needsConfigurationFile, readElevations, requestTile, restorableStateToParams, restoreState, restoreStateForParams, retrieveElevations, retrieveLocalElevations, retrieveRemoteElevations, retrieveResources, setByteOrder, setDetailHint, setElevationDataType, setExpiryTime, setExtremesCachingEnabled, setFallbacks, setValue, startResourceRetrieval, writeConfigurationFile, writeConfigurationParams
createElevationModelConfigElements, dispose, getBestResolutions, getDataFileStore, getElevation, getElevationModelConfigParams, getElevations, getExpiryTime, getMissingDataReplacement, getMissingDataSignal, getName, getUnmappedElevations, isElevationModelConfigDocument, isEnabled, isNetworkRetrievalEnabled, isTransparentValue, setDataFileStore, setEnabled, setMissingDataReplacement, setMissingDataSignal, setName, setNetworkRetrievalEnabled, toString
onMessage, propertyChange
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
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getName
addPropertyChangeListener, addPropertyChangeListener, clearList, copy, firePropertyChange, firePropertyChange, getEntries, getStringValue, getValues, hasKey, removeKey, removePropertyChangeListener, removePropertyChangeListener, setValues
onMessage
public WMSBasicElevationModel(AVList params)
public WMSBasicElevationModel(org.w3c.dom.Element domElement, AVList params)
public WMSBasicElevationModel(java.lang.String restorableStateInXml)
public WMSBasicElevationModel(WMSCapabilities caps, AVList params)
public void composeElevations(Sector sector, java.util.List<? extends LatLon> latlons, int tileWidth, double[] buffer) throws java.lang.Exception
ElevationModel
Sector
.composeElevations
in interface ElevationModel
composeElevations
in class AbstractElevationModel
sector
- the sector containing the locations.latlons
- the locations for which to return elevations.tileWidth
- the number of locations that comprise one row in the latlons
argument.buffer
- a buffer in which to put the elevations. The buffer must have at least as many elements as the
number of specified locations.java.lang.Exception
- if the method fails. Different elevation models may fail for different reasons.java.lang.IllegalArgumentException
- if either the sector, list of locations or buffer is null, if the buffer size is
not at least as large as the location list, or the tile width is greater than
the locations list length or less than 1.protected org.w3c.dom.Document createConfigurationDocument(AVList params)
createConfigurationDocument
in class BasicElevationModel
params
- configuration parameters describing this WMS basic elevation model.protected void downloadElevations(WMSBasicElevationModel.ElevationCompositionTile tile) throws java.lang.Exception
java.lang.Exception
public void getRestorableStateForAVPair(java.lang.String key, java.lang.Object value, RestorableSupport rs, RestorableSupport.StateObject context)
getRestorableStateForAVPair
in class BasicElevationModel
public static AVList getWMSElevationModelConfigParams(WMSCapabilities caps, java.lang.String[] formatOrderPreference, AVList params)
Parameter | Value | Type |
---|---|---|
AVKey.ELEVATION_MAX | WMS layer's maximum extreme elevation | Double |
AVKey.ELEVATION_MIN | WMS layer's minimum extreme elevation | Double |
AVKey.DATA_TYPE | Translate WMS layer's image format to a matching data type | String |
DataConfigurationUtils.getWMSLayerConfigParams(gov.nasa.worldwind.ogc.wms.WMSCapabilities,
String[], gov.nasa.worldwind.avlist.AVList)
.caps
- the WMS Capabilities source to parse for WMSBasicElevationModel configuration
parameters.formatOrderPreference
- an ordered array of preferred image formats, or null to use the default format.params
- the output key-value pairs which recieve the WMSBasicElevationModel configuration
parameters.java.lang.IllegalArgumentException
- if either the document or params are null, or if params does not contain the
required key-value pairs.WWRuntimeException
- if the Capabilities document does not contain any of the required information.protected static AVList wmsGetParamsFromCapsDoc(WMSCapabilities caps, AVList params)
protected static AVList wmsGetParamsFromDocument(org.w3c.dom.Element domElement, AVList params)
protected static AVList wmsRestorableStateToParams(java.lang.String stateInXml)
protected static void wmsRestoreStateForParams(RestorableSupport rs, RestorableSupport.StateObject context, AVList params)
protected static void wmsSetFallbacks(AVList params)