|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.deegree.coverage.raster.data.RasterDataFactory
public class RasterDataFactory
This class creates RasterData objects with a given interleaving type. This factory creates RasterData objects based on ByteBufferRasterData.
Constructor Summary | |
---|---|
RasterDataFactory()
|
Method Summary | |
---|---|
static ByteBufferRasterData |
createRasterData(int width,
int height,
BandType[] bands,
DataType dataType,
InterleaveType interleaveType,
boolean addToCache)
Creates a RasterData object object with given size, number of bands, data type and interleaving |
static ByteBufferRasterData |
createRasterData(int width,
int height,
BandType[] bands,
DataType dataType,
InterleaveType interleaveType,
RasterGeoReference geoRef,
ByteBuffer byteBuffer,
boolean createCacheFile,
String cacheId)
Creates a RasterData object object with given size, number of bands, data type and interleaving filled with the given ByteArray. |
static ByteBufferRasterData |
createRasterData(int width,
int height,
BandType[] bands,
DataType dataType,
InterleaveType interleaveType,
RasterReader reader,
boolean addToCache)
Creates a RasterData object object with given size, number of bands, data type and interleaving |
static ByteBufferRasterData |
createRasterData(int width,
int height,
DataType dataType,
boolean addToCache)
Creates a pixel-interleaved RasterData object with given size and data type |
static ByteBufferRasterData |
createRasterData(int width,
int height,
RasterDataInfo rdi,
RasterGeoReference geoRef,
ByteBuffer byteBuffer,
boolean createCacheFile,
String cacheId)
Creates a RasterData object object with given size, number of bands, data type and interleaving filled with the given ByteArray. |
static ByteBufferRasterData |
createRasterData(int width,
int height,
RasterDataInfo rdi,
RasterGeoReference geoRef,
ByteBuffer byteBuffer,
boolean createCacheFile,
String cacheId,
RasterIOOptions options)
Creates a RasterData object object with given size, number of bands, data type and interleaving filled with the given ByteArray. |
static ByteBufferRasterData |
createRasterData(int width,
int height,
RasterDataInfo dataInfo,
RasterReader reader,
boolean addToCache)
Creates a RasterData object object with given size, number of bands, data type and interleaving. |
static ByteBufferRasterData |
createRasterData(RasterRect view,
RasterDataInfo rdi,
RasterGeoReference geoRef,
ByteBuffer byteBuffer,
boolean createCacheFile,
String cacheId,
RasterIOOptions options)
Creates a RasterData object object with given size, number of bands, data type and interleaving filled with the given ByteArray. |
static ByteBufferRasterData |
createRasterData(RasterRect view,
RasterDataInfo dataInfo,
RasterReader reader,
boolean addToCache,
RasterIOOptions options)
Creates a RasterData object object with given view, number of bands, data type and interleaving. |
static TiledRasterData |
createTiledRasterData(GridReader reader,
RasterIOOptions options)
Encapsulates a Grid of Raster data as a new Raster data object. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public RasterDataFactory()
Method Detail |
---|
public static ByteBufferRasterData createRasterData(int width, int height, DataType dataType, boolean addToCache)
width
- width of the rasterheight
- height of the rasterdataType
- data type for samplesaddToCache
- if the reader should be added to the cache (almost always should be true).
public static ByteBufferRasterData createRasterData(int width, int height, BandType[] bands, DataType dataType, InterleaveType interleaveType, boolean addToCache)
width
- width of the rasterheight
- height of the rasterbands
- number and type of the bandsdataType
- data type for samplesinterleaveType
- interleaving type for the rasteraddToCache
- if the reader should be added to the cache (almost always should be true).
public static ByteBufferRasterData createRasterData(int width, int height, BandType[] bands, DataType dataType, InterleaveType interleaveType, RasterReader reader, boolean addToCache)
width
- width of the rasterheight
- height of the rasterbands
- number and type of the bandsdataType
- data type for samplesinterleaveType
- interleaving type for the rasterreader
- to get the data from, maybe null
addToCache
- if the reader should be added to the cache (almost always should be true).
public static ByteBufferRasterData createRasterData(int width, int height, RasterDataInfo dataInfo, RasterReader reader, boolean addToCache)
width
- width of the rasterheight
- height of the rasterdataInfo
- defining the bands, datatype and interleave type.reader
- to get the data from, maybe null
addToCache
- if the reader should be added to the cache (almost always should be true).
public static ByteBufferRasterData createRasterData(RasterRect view, RasterDataInfo dataInfo, RasterReader reader, boolean addToCache, RasterIOOptions options)
view
- valid for the raster data.dataInfo
- defining the bands, datatype and interleave type.reader
- to get the data from, maybe null
addToCache
- if the reader should be added to the cache (almost always should be true).options
- containing information about the raster cache directory.
public static ByteBufferRasterData createRasterData(int width, int height, BandType[] bands, DataType dataType, InterleaveType interleaveType, RasterGeoReference geoRef, ByteBuffer byteBuffer, boolean createCacheFile, String cacheId)
width
- width of the rasterheight
- height of the rasterbands
- number and type of the bandsdataType
- data type for samplesinterleaveType
- interleaving type for the rastergeoRef
- needed for the reader.byteBuffer
- on which the memory reader will operate upon.createCacheFile
- true if a cache file should back the datacacheId
- the name of the cache file to use in the default RasterCache
.
public static ByteBufferRasterData createRasterData(int width, int height, RasterDataInfo rdi, RasterGeoReference geoRef, ByteBuffer byteBuffer, boolean createCacheFile, String cacheId)
width
- width of the rasterheight
- height of the rasterrdi
- containing the number of bands, the data type and the interleave type.geoRef
- needed for the reader.byteBuffer
- on which the memory reader will operate upon.createCacheFile
- true if a cache file should back the datacacheId
- the name of the cache file to use in the default RasterCache
.
public static ByteBufferRasterData createRasterData(int width, int height, RasterDataInfo rdi, RasterGeoReference geoRef, ByteBuffer byteBuffer, boolean createCacheFile, String cacheId, RasterIOOptions options)
width
- width of the rasterheight
- height of the rasterrdi
- containing the number of bands, the data type and the interleave type.geoRef
- needed for the reader.byteBuffer
- on which the memory reader will operate upon.createCacheFile
- true if a cache file should back the datacacheId
- the name of the cache file to use in the default RasterCache
.options
- which can be used to get the cache data from.
public static ByteBufferRasterData createRasterData(RasterRect view, RasterDataInfo rdi, RasterGeoReference geoRef, ByteBuffer byteBuffer, boolean createCacheFile, String cacheId, RasterIOOptions options)
view
- rdi
- containing the number of bands, the data type and the interleave type.geoRef
- needed for the reader.byteBuffer
- on which the memory reader will operate upon.createCacheFile
- true if a cache file should back the datacacheId
- the name of the cache file to use in the default RasterCache
.options
- which can be used to get the cache data from.
public static TiledRasterData createTiledRasterData(GridReader reader, RasterIOOptions options)
reader
- to be used.options
- holding information on the io settings.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |