Package gov.nasa.worldwind.terrain
Class WCSElevationModel
- java.lang.Object
-
- gov.nasa.worldwind.avlist.AVListImpl
-
- gov.nasa.worldwind.WWObjectImpl
-
- gov.nasa.worldwind.terrain.AbstractElevationModel
-
- gov.nasa.worldwind.terrain.BasicElevationModel
-
- gov.nasa.worldwind.terrain.WCSElevationModel
-
- All Implemented Interfaces:
AVList
,Disposable
,MessageListener
,ElevationModel
,Restorable
,BulkRetrievable
,WWObject
,java.beans.PropertyChangeListener
,java.util.EventListener
public class WCSElevationModel extends BasicElevationModel
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected static class
WCSElevationModel.URLBuilder
-
Nested classes/interfaces inherited from class gov.nasa.worldwind.terrain.BasicElevationModel
BasicElevationModel.DownloadPostProcessor, BasicElevationModel.Elevations, BasicElevationModel.ElevationTile, BasicElevationModel.RequestTask
-
-
Field Summary
-
Fields inherited from class gov.nasa.worldwind.terrain.BasicElevationModel
detailHint, elevationDataByteOrder, elevationDataType, extremes, extremesCachingEnabled, extremesLevel, extremesLookupCache, fileLock, levels, levelZeroTiles, maxElevation, memoryCache, minElevation, RESOURCE_ID_OGC_CAPABILITIES
-
Fields inherited from class gov.nasa.worldwind.terrain.AbstractElevationModel
dataFileStore, enabled, expiryTime, missingDataFlag, missingDataValue, networkRetrievalEnabled
-
-
Constructor Summary
Constructors Constructor Description WCSElevationModel(WCS100Capabilities caps, AVList params)
WCSElevationModel(java.lang.String restorableStateInXml)
Create a new elevation model from a serialized restorable state string.WCSElevationModel(org.w3c.dom.Element domElement, AVList params)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
composeElevations(Sector sector, java.util.List<? extends LatLon> latlons, int tileWidth, double[] buffer)
Determines the elevations at specified locations within a specifiedSector
.protected org.w3c.dom.Document
createConfigurationDocument(AVList params)
Appends WCS elevation model configuration elements to the superclass configuration document.protected static void
determineNumLevels(WCS100DescribeCoverage coverage, AVList params)
protected void
downloadElevations(WMSBasicElevationModel.ElevationCompositionTile tile)
void
getRestorableStateForAVPair(java.lang.String key, java.lang.Object value, RestorableSupport rs, RestorableSupport.StateObject context)
static AVList
getWCSElevationModelConfigParams(WCS100Capabilities caps, WCS100DescribeCoverage coverage, AVList params)
protected static AVList
wcsGetParamsFromCapsDoc(WCS100Capabilities caps, AVList params)
protected static AVList
wcsGetParamsFromDocument(org.w3c.dom.Element domElement, AVList params)
protected static AVList
wcsRestorableStateToParams(java.lang.String stateInXml)
protected static void
wcsRestoreStateForParams(RestorableSupport rs, RestorableSupport.StateObject context, AVList params)
protected static void
wcsSetFallbacks(AVList params)
-
Methods inherited from class gov.nasa.worldwind.terrain.BasicElevationModel
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
-
Methods inherited from class gov.nasa.worldwind.terrain.AbstractElevationModel
createElevationModelConfigElements, dispose, getBestResolutions, getDataFileStore, getElevation, getElevationModelConfigParams, getElevations, getExpiryTime, getMissingDataReplacement, getMissingDataSignal, getName, getUnmappedElevations, isElevationModelConfigDocument, isEnabled, isNetworkRetrievalEnabled, isTransparentValue, setDataFileStore, setEnabled, setMissingDataReplacement, setMissingDataSignal, setName, setNetworkRetrievalEnabled, toString
-
Methods inherited from class gov.nasa.worldwind.WWObjectImpl
onMessage, propertyChange
-
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, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
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.retrieve.BulkRetrievable
getName
-
Methods inherited from interface gov.nasa.worldwind.event.MessageListener
onMessage
-
-
-
-
Constructor Detail
-
WCSElevationModel
public WCSElevationModel(org.w3c.dom.Element domElement, AVList params)
-
WCSElevationModel
public WCSElevationModel(WCS100Capabilities caps, AVList params)
-
WCSElevationModel
public WCSElevationModel(java.lang.String restorableStateInXml)
Create a new elevation model from a serialized restorable state string.- Parameters:
restorableStateInXml
- XML string in WorldWind restorable state format.- See Also:
BasicElevationModel.getRestorableState()
-
-
Method Detail
-
wcsGetParamsFromDocument
protected static AVList wcsGetParamsFromDocument(org.w3c.dom.Element domElement, AVList params)
-
wcsGetParamsFromCapsDoc
protected static AVList wcsGetParamsFromCapsDoc(WCS100Capabilities caps, AVList params)
-
wcsSetFallbacks
protected static void wcsSetFallbacks(AVList params)
-
determineNumLevels
protected static void determineNumLevels(WCS100DescribeCoverage coverage, AVList params)
-
getWCSElevationModelConfigParams
public static AVList getWCSElevationModelConfigParams(WCS100Capabilities caps, WCS100DescribeCoverage coverage, AVList params)
-
createConfigurationDocument
protected org.w3c.dom.Document createConfigurationDocument(AVList params)
Appends WCS elevation model configuration elements to the superclass configuration document.- Overrides:
createConfigurationDocument
in classBasicElevationModel
- Parameters:
params
- configuration parameters describing this WCS basic elevation model.- Returns:
- a WCS basic elevation model configuration document.
-
composeElevations
public void composeElevations(Sector sector, java.util.List<? extends LatLon> latlons, int tileWidth, double[] buffer) throws java.lang.Exception
Description copied from interface:ElevationModel
Determines the elevations at specified locations within a specifiedSector
.- Specified by:
composeElevations
in interfaceElevationModel
- Overrides:
composeElevations
in classAbstractElevationModel
- Parameters:
sector
- the sector containing the locations.latlons
- the locations for which to return elevations.tileWidth
- the number of locations that comprise one row in thelatlons
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.- Throws:
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.
-
downloadElevations
protected void downloadElevations(WMSBasicElevationModel.ElevationCompositionTile tile) throws java.lang.Exception
- Throws:
java.lang.Exception
-
getRestorableStateForAVPair
public void getRestorableStateForAVPair(java.lang.String key, java.lang.Object value, RestorableSupport rs, RestorableSupport.StateObject context)
- Overrides:
getRestorableStateForAVPair
in classBasicElevationModel
-
wcsRestorableStateToParams
protected static AVList wcsRestorableStateToParams(java.lang.String stateInXml)
-
wcsRestoreStateForParams
protected static void wcsRestoreStateForParams(RestorableSupport rs, RestorableSupport.StateObject context, AVList params)
-
-