Package gov.nasa.worldwind.data
Class TiledElevationProducer
- java.lang.Object
-
- gov.nasa.worldwind.avlist.AVListImpl
-
- gov.nasa.worldwind.WWObjectImpl
-
- gov.nasa.worldwind.data.AbstractDataStoreProducer
-
- gov.nasa.worldwind.data.TiledRasterProducer
-
- gov.nasa.worldwind.data.TiledElevationProducer
-
- All Implemented Interfaces:
AVList
,DataStoreProducer
,MessageListener
,WWObject
,java.beans.PropertyChangeListener
,java.util.EventListener
public class TiledElevationProducer extends TiledRasterProducer
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class gov.nasa.worldwind.data.AbstractDataStoreProducer
AbstractDataStoreProducer.SourceInfo
-
-
Field Summary
Fields Modifier and Type Field Description protected static java.lang.String
DEFAULT_IMAGE_FORMAT
protected static double
DEFAULT_MISSING_DATA_SIGNAL
protected double[]
extremes
protected static DataRasterReader[]
readers
-
Fields inherited from class gov.nasa.worldwind.data.AbstractDataStoreProducer
productionParams
-
-
Constructor Summary
Constructors Constructor Description TiledElevationProducer()
TiledElevationProducer(MemoryCache cache, int writeThreadPoolSize)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected LatLon
computeRasterPixelSize(DataRaster raster)
protected LatLon
computeRasterTileDelta(int tileWidth, int tileHeight, java.lang.Iterable<? extends DataRaster> rasters)
protected org.w3c.dom.Document
createConfigDoc(AVList params)
Returns an ElevationModel configuration document which describes the tiled elevation data produced by this TiledElevationProducer.protected DataRaster
createDataRaster(int width, int height, Sector sector, AVList params)
protected void
doStartProduction(AVList parameters)
Overridden to initialize this producer's extreme elevations prior to creating and installing elevation tiles.protected DataRasterReader[]
getDataRasterReaders()
protected DataRasterWriter[]
getDataRasterWriters()
java.lang.String
getDataSourceDescription()
protected void
initProductionParameters(AVList params)
protected void
installTileRasterLater(LevelSet levelSet, Tile tile, DataRaster tileRaster, AVList params)
Overridden to compute the extreme elevations prior to installing a tile in the filesystem.protected void
updateExtremeElevations(DataRaster raster)
protected java.lang.String
validateDataSource(java.lang.Object source, AVList params)
protected java.lang.String
validateDataSourceParams(AVList params, java.lang.String name)
-
Methods inherited from class gov.nasa.worldwind.data.TiledRasterProducer
appendProperties, appendSource, assembleDataRasters, assembleDataSource, calculateTileCount, computeBoundingSector, computeDesiredTileDelta, computeIntegralLevelZeroTileDelta, computeNumLevels, computeSmallestPixelSize, createDefaultCache, createDefaultTileWriteService, createSubTiles, createTileRaster, drawDataSources, drawDescendants, extractMaxLevelLimit, findWriterFor, getCache, getConfigFileInstallLocation, getDataRasters, getReaderFactory, getTileWriteSemaphore, getTileWriteService, initLevelSetParameters, installConfigFile, installLevelSet, installLocationFor, installLocationForTile, installRasterServerConfigFile, installTileRaster, installTileRasterComplete, isDataSetLarge, isFinalLevel, isWithinLatLonLimits, removeProductionState, startProgress, updateProgress, validateProductionParameters, waitForInstallTileTasks
-
Methods inherited from class gov.nasa.worldwind.data.AbstractDataStoreProducer
acceptsDataSource, containsDataSource, getDataSourceList, getDataSources, getProductionParameters, getProductionResults, getProductionResultsList, getStoreParameters, isStopped, offerAllDataSources, offerDataSource, removeAllDataSources, removeDataSource, setStoreParameters, startProduction, stopProduction
-
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, getRestorableStateForAVPair, getStringValue, getStringValue, getStringValue, getValue, getValues, hasKey, removeKey, removePropertyChangeListener, removePropertyChangeListener, setValue, setValues
-
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface gov.nasa.worldwind.avlist.AVList
addPropertyChangeListener, addPropertyChangeListener, clearList, copy, firePropertyChange, firePropertyChange, getEntries, getStringValue, getValue, getValues, hasKey, removeKey, removePropertyChangeListener, removePropertyChangeListener, setValue, setValues
-
Methods inherited from interface gov.nasa.worldwind.event.MessageListener
onMessage
-
-
-
-
Field Detail
-
extremes
protected double[] extremes
-
DEFAULT_IMAGE_FORMAT
protected static final java.lang.String DEFAULT_IMAGE_FORMAT
- See Also:
- Constant Field Values
-
DEFAULT_MISSING_DATA_SIGNAL
protected static final double DEFAULT_MISSING_DATA_SIGNAL
- See Also:
- Constant Field Values
-
readers
protected static DataRasterReader[] readers
-
-
Constructor Detail
-
TiledElevationProducer
public TiledElevationProducer(MemoryCache cache, int writeThreadPoolSize)
-
TiledElevationProducer
public TiledElevationProducer()
-
-
Method Detail
-
doStartProduction
protected void doStartProduction(AVList parameters) throws java.lang.Exception
Overridden to initialize this producer's extreme elevations prior to creating and installing elevation tiles.- Overrides:
doStartProduction
in classTiledRasterProducer
- Parameters:
parameters
- the installation parameters.- Throws:
java.lang.Exception
- if production fails for any reason.
-
getDataSourceDescription
public java.lang.String getDataSourceDescription()
- Specified by:
getDataSourceDescription
in interfaceDataStoreProducer
- Overrides:
getDataSourceDescription
in classTiledRasterProducer
-
createDataRaster
protected DataRaster createDataRaster(int width, int height, Sector sector, AVList params)
- Specified by:
createDataRaster
in classTiledRasterProducer
-
getDataRasterReaders
protected DataRasterReader[] getDataRasterReaders()
- Specified by:
getDataRasterReaders
in classTiledRasterProducer
-
getDataRasterWriters
protected DataRasterWriter[] getDataRasterWriters()
- Specified by:
getDataRasterWriters
in classTiledRasterProducer
-
validateDataSource
protected java.lang.String validateDataSource(java.lang.Object source, AVList params)
- Specified by:
validateDataSource
in classAbstractDataStoreProducer
-
validateDataSourceParams
protected java.lang.String validateDataSourceParams(AVList params, java.lang.String name)
-
initProductionParameters
protected void initProductionParameters(AVList params)
- Specified by:
initProductionParameters
in classTiledRasterProducer
-
computeRasterTileDelta
protected LatLon computeRasterTileDelta(int tileWidth, int tileHeight, java.lang.Iterable<? extends DataRaster> rasters)
- Overrides:
computeRasterTileDelta
in classTiledRasterProducer
-
computeRasterPixelSize
protected LatLon computeRasterPixelSize(DataRaster raster)
- Overrides:
computeRasterPixelSize
in classTiledRasterProducer
-
installTileRasterLater
protected void installTileRasterLater(LevelSet levelSet, Tile tile, DataRaster tileRaster, AVList params)
Overridden to compute the extreme elevations prior to installing a tile in the filesystem.- Overrides:
installTileRasterLater
in classTiledRasterProducer
- Parameters:
tile
- the tile to install to the filesystem.tileRaster
- the raster containing the raster's data content.params
- the installation parameters.
-
updateExtremeElevations
protected void updateExtremeElevations(DataRaster raster)
-
createConfigDoc
protected org.w3c.dom.Document createConfigDoc(AVList params)
Returns an ElevationModel configuration document which describes the tiled elevation data produced by this TiledElevationProducer. The document's contents are based on the configuration document for a basic ElevationModel, except this document describes an offline dataset. This returns null if the parameter list is null, or if the configuration document cannot be created for any reason.- Specified by:
createConfigDoc
in classTiledRasterProducer
- Parameters:
params
- the parameters which describe an ElevationModel configuration document's contents.- Returns:
- the configuration document, or null if the parameter list is null or does not contain the required parameters.
-
-