public class BasicRasterServer extends WWObjectImpl implements RasterServer
| Modifier and Type | Field and Description | 
|---|---|
| protected static MemoryCache | cache | 
| protected List<DataRaster> | dataRasterList | 
| protected DataRasterReaderFactory | readerFactory | 
| Constructor and Description | 
|---|
| BasicRasterServer(Object o,
                 AVList params)BasicRasterServer constructor reads a list of data raster sources from *.RasterServer.xml (the file that
 accompanies layer description XML file), reads sector of each source and maintains a list of data sources, their
 properties, | 
| Modifier and Type | Method and Description | 
|---|---|
| DataRaster | composeRaster(AVList reqParams)Composes a DataRaster of the given width and height for the specific geographic region of interest (ROI). | 
| protected void | extractProperties(RasterServerConfiguration config)Extracts all  | 
| protected DataRasterReader | findDataRasterReader(Object source,
                    AVList params) | 
| MemoryCache | getCache()Returns an instance of the MemoryCache that contains DataRasters and their properties | 
| protected String | getDataSetName() | 
| protected String | getDataSetPixelFormat()Returns DataSet's pixel format (AVKey.IMAGE or AVKey.ELEVATION), or empty string if not set | 
| ByteBuffer | getRasterAsByteBuffer(AVList params)Composes a DataRaster of the given width and height for the specific geographic region of interest (ROI), in the
 requested file format (AVKey.IMAGE_FORMAT) and returns as a ByteBuffer | 
| Sector | getSector()Returns a Geographic extend (coverage) of the composer | 
| boolean | hasDataRasters()Returns TRUE, if the DataRaster list is not empty | 
| protected void | init(Object o) | 
| protected boolean | readRasterSources(RasterServerConfiguration config)Reads XML document and extracts raster sources | 
| protected void | setDataSetPixelFormat(String pixelFormat) | 
onMessage, propertyChangeaddPropertyChangeListener, 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, setValuesclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddPropertyChangeListener, addPropertyChangeListener, clearList, copy, firePropertyChange, firePropertyChange, getEntries, getStringValue, getValue, getValues, hasKey, removeKey, removePropertyChangeListener, removePropertyChangeListener, setValue, setValuesprotected static final MemoryCache cache
protected List<DataRaster> dataRasterList
protected DataRasterReaderFactory readerFactory
public DataRaster composeRaster(AVList reqParams) throws IllegalArgumentException, WWRuntimeException
reqParams - This is a required parameter, must not be null or empty; Must contain AVKey.WIDTH, AVKey.HEIGHT,
                  and AVKey.SECTOR values.
                  
                  Optional keys are: AVKey.PIXEL_FORMAT (AVKey.ELEVATION | AVKey.IMAGE) AVKey.DATA_TYPE
                  AVKey.BYTE_ORDER (AVKey.BIG_ENDIAN | AVKey.LITTLE_ENDIAN )WWRuntimeException - if there is no intersection of the source rasters with the requested ROI or the
                                  source format is unknown or not supported by currently loaded driversIllegalArgumentException - if any of the required parameters or values are missingprotected void extractProperties(RasterServerConfiguration config)
config - Parsed configuration document.protected DataRasterReader findDataRasterReader(Object source, AVList params)
public MemoryCache getCache()
protected String getDataSetName()
protected String getDataSetPixelFormat()
public ByteBuffer getRasterAsByteBuffer(AVList params)
getRasterAsByteBuffer in interface RasterServerparams - This is a required parameter, must not be null or empty; Must contain AVKey.WIDTH, AVKey.HEIGHT,
               AVKey.SECTOR, and AVKey.IMAGE_FORMAT (mime type) values. Supported mime types are: "image/png",
               "image/jpeg", "image/dds".
               
               Optional keys are: AVKey.PIXEL_FORMAT (AVKey.ELEVATION | AVKey.IMAGE) AVKey.DATA_TYPE
               AVKey.BYTE_ORDER (AVKey.BIG_ENDIAN | AVKey.LITTLE_ENDIAN )WWRuntimeException - if there is no intersection of the source rasters with the requested ROI or the
                                  source format is unknown or not supported by currently loaded driversIllegalArgumentException - if any of the required parameters or values are missingpublic Sector getSector()
RasterServergetSector in interface RasterServerpublic boolean hasDataRasters()
protected void init(Object o)
protected boolean readRasterSources(RasterServerConfiguration config)
config - Parsed configuration document.protected void setDataSetPixelFormat(String pixelFormat)