public class MemoryRasterProvider extends AbstractRasterProvider
| Modifier and Type | Field and Description |
|---|---|
protected Buffer |
buffer |
static String |
DESCRIPTION |
static String |
METADATA_DEFINITION_NAME |
static String |
NAME |
ALPHA_BAND, bandCount, BLUE_BAND, bytesReaded, colorTable, externalTransformation, fileSize, fileUtil, geoPointList, GREEN_BAND, histogram, lineCnt, noData, ownTransformation, param, proj, rasterUtil, RED_BAND, rmfBlocksManager, selectedSubdatasetID, serialInfo, stats, storeServices, tileServer, transparency, urimetadata, parameters, store| Constructor and Description |
|---|
MemoryRasterProvider()
Mandatory constructor to instantiate an empty provider
|
MemoryRasterProvider(AbstractRasterDataParameters params,
DataStoreProviderServices storeServices)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addFile(File file)
Adds a new file.
|
void |
close()
Request to close de source
|
int |
getBlockSize()
Devuelve el tamaño de bloque
|
Object |
getData(int x,
int y,
int band)
Obtiene la orientación de la imagen a partir del signo del tamaño de pixel para poder
asignarlo en el setView.
|
int[] |
getDataType()
Obtiene el tipo de dato por banda
|
String |
getFullName()
Returns a more descriptive name for the provider that getName.
|
double |
getHeight()
Obtiene la altura del fichero
|
String |
getName()
Returns the name associated to the provider.
|
int |
getOverviewCount(int band)
Obtiene el número de overviews de una banda
|
int |
getOverviewHeight(int band,
int overview)
Obtiene el alto de una overview de una banda
|
int |
getOverviewWidth(int band,
int overview)
Obtiene el ancho de una overview de una banda
|
String |
getProviderName()
Return the name of the provider.
|
TileServer |
getTileServer()
Gets the tile cache data server
|
Transparency |
getTransparency()
Obtiene el objeto que contiene el estado de la transparencia
|
Extent |
getView()
Obtiene extent de la vista actual
|
double |
getWidth()
Obtiene la anchura del fichero
|
Buffer |
getWindow(double x,
double y,
double w,
double h,
BandList bandList,
Buffer rasterBuf,
boolean adjustToExtent,
TaskStatus status) |
Buffer |
getWindow(Extent ex,
BandList bandList,
Buffer rasterBuf,
TaskStatus status) |
Buffer |
getWindow(Extent extent,
int bufWidth,
int bufHeight,
BandList bandList,
Buffer rasterBuf,
boolean adjustToExtent,
TaskStatus status) |
Buffer |
getWindow(int x,
int y,
int w,
int h,
BandList bandList,
Buffer rasterBuf,
TaskStatus status) |
boolean |
isGeoreferenced()
Obtiene el flag que dice si la imagen está o no georreferenciada
|
boolean |
isOpen()
Returns true if this provider is open and false if don't
|
boolean |
isOverviewsSupported()
Informa de si el dataset soporta overviews o no.
|
boolean |
isSupersampling()
Informa de si el driver ha supersampleado en el último dibujado.
|
RasterProvider |
load()
Carga un fichero raster.
|
void |
loadBuffer(SpiRasterQuery q)
Load a buffer with the parameters.
|
Object |
readBlock(int pos,
int blockHeight,
double scale)
Reads a complete block of data and returns an tridimensional array of the right type.
|
Object |
readCompleteLine(int line,
int band) |
static void |
register() |
void |
registerTileProviderFormats(Class<RasterProvider> c) |
void |
removeFile(File file)
Removes a file.
|
void |
reProject(ICoordTrans rp) |
void |
setStatus(RasterProvider provider)
Sets the status information using other provider of the same type.
|
void |
setView(Extent e)
Asigna el extent de la vista actual.
|
cloneProvider, deleteLayerFromCache, doDispose, finalize, getAffineTransform, getBandCount, getBandCountByProvider, getBandPositionByProvider, getCellSize, getChilds, getColorInterpretation, getColorTable, getDataParameters, getDataSet, getDefaultBandList, getExplorer, getExtent, getExtentWithoutRot, getFileSize, getFileSizeByProvider, getFileSuffix, getFormatList, getGeoPointList, getHistogramComputer, getImageLegend, getInfoByPoint, getInfoByPoint, getInternalProvider, getInternalProviderCount, getInterval, getMetadata, getNoDataValue, getOwnAffineTransform, getPixelSizeX, getPixelSizeY, getProjection, getResource, getRmfBlocksManager, getRMFFile, getRMFFileForRemoteServices, getSourceId, getSourceType, getStatistics, getSubdatasetCount, getTileSize, getTime, getTimes, getTimes, getTimeSerials, getURI, getURIByBand, getURIByProvider, getURIOfFirstProvider, getWktProjection, init, isARGB, isInside, isMosaic, isMultiFile, isRasterEnclosed, isReproyectable, isRGB, isRotated, isTiled, isTimeSupported, loadFromRmf, loadObjectFromRmf, loadObjectFromRmf, loadObjectFromRmfFile, needEnhanced, newProvider, open, rasterToWorld, reload, resetAffineTransform, saveObjectToRmf, saveObjectToRmf, selectSubdataset, selectSubdataset, setAffineTransform, setColorInterpretation, setColorTable, setDataType, setFileSize, setFName, setGeoPointList, setNoDataValue, setParam, setProjection, setStatistics, setTileServer, setTimeSerials, singleDatasetInstance, translateFileName, translateURI, worldToRasterallowWrite, clear, createCoverageSelection, createResource, delegate, getClassName, getDataStoreParameters, getDynClass, getDynValue, getEnvelope, getStoreServices, hasDynValue, implement, init, invokeDynMethod, invokeDynMethod, refresh, setDynValue, setMetadatadispose, disposeclone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitallowWrite, getStoreServicesrefreshclear, delegate, getDynClass, getDynValue, hasDynValue, implement, invokeDynMethod, invokeDynMethod, setDynValuedisposepublic static String NAME
public static String DESCRIPTION
public static final String METADATA_DEFINITION_NAME
protected Buffer buffer
public MemoryRasterProvider()
public MemoryRasterProvider(AbstractRasterDataParameters params, DataStoreProviderServices storeServices) throws NotSupportedExtensionException
proj - Proyecciónbuf - BufferNotSupportedExtensionExceptionpublic static void register()
public void registerTileProviderFormats(Class<RasterProvider> c)
public RasterProvider load()
AbstractRasterProviderload in class AbstractRasterProviderpublic boolean isOpen()
RasterProviderpublic void close()
DataStoreProviderclose in interface RasterProviderclose in class AbstractRasterProviderpublic void setView(Extent e)
setView in class AbstractRasterProvidere - Extentpublic Extent getView()
getView in interface RasterProvidergetView in class AbstractRasterProviderpublic double getWidth()
getWidth in interface RasterProvidergetWidth in class AbstractRasterProviderpublic double getHeight()
getHeight in interface RasterProvidergetHeight in class AbstractRasterProviderpublic void reProject(ICoordTrans rp)
public Object getData(int x, int y, int band)
getData in interface RasterProvidergetData in class AbstractRasterProviderx - coordenada Xy - coordenada Ypublic int getBlockSize()
getBlockSize in class AbstractRasterProviderpublic boolean isGeoreferenced()
isGeoreferenced in interface RasterProviderisGeoreferenced in class AbstractRasterProviderpublic boolean isSupersampling()
public int[] getDataType()
RasterProvidergetDataType in interface RasterProvidergetDataType in class AbstractRasterProviderpublic void loadBuffer(SpiRasterQuery q) throws ProcessInterruptedException, RasterDriverException
AbstractRasterProviderSpiRasterQuery by the RasterDataStore. The other
parameters have been calculated too, all of them adjusted to the raster limits. The provider only
have to read the parameters and load the buffer.loadBuffer in class AbstractRasterProviderProcessInterruptedExceptionRasterDriverExceptionpublic Buffer getWindow(Extent ex, BandList bandList, Buffer rasterBuf, TaskStatus status)
public Buffer getWindow(double x, double y, double w, double h, BandList bandList, Buffer rasterBuf, boolean adjustToExtent, TaskStatus status)
public Buffer getWindow(Extent extent, int bufWidth, int bufHeight, BandList bandList, Buffer rasterBuf, boolean adjustToExtent, TaskStatus status)
public Buffer getWindow(int x, int y, int w, int h, BandList bandList, Buffer rasterBuf, TaskStatus status)
public Object readCompleteLine(int line, int band) throws InvalidSetViewException, FileNotOpenException, RasterDriverException
public Object readBlock(int pos, int blockHeight, double scale) throws InvalidSetViewException, FileNotOpenException, RasterDriverException
RasterProviderpublic Transparency getTransparency()
getTransparency in interface RasterProvidergetTransparency in class AbstractRasterProviderpublic int getOverviewCount(int band)
throws BandAccessException,
RasterDriverException
RasterProviderBandAccessExceptionRasterDriverExceptionpublic int getOverviewWidth(int band,
int overview)
throws BandAccessException,
RasterDriverException
RasterProvidergetOverviewWidth in interface RasterProvidergetOverviewWidth in class AbstractRasterProviderBandAccessExceptionRasterDriverExceptionpublic int getOverviewHeight(int band,
int overview)
throws BandAccessException,
RasterDriverException
RasterProvidergetOverviewHeight in interface RasterProvidergetOverviewHeight in class AbstractRasterProviderBandAccessExceptionRasterDriverExceptionpublic boolean isOverviewsSupported()
AbstractRasterProviderisOverviewsSupported in interface RasterProviderisOverviewsSupported in class AbstractRasterProviderpublic String getProviderName()
DataStoreProviderpublic String getName()
DataStoreProvidergetName in class AbstractRasterProviderpublic String getFullName()
DataStoreProvidergetFullName in class AbstractRasterProviderpublic void setStatus(RasterProvider provider)
RasterProviderpublic TileServer getTileServer()
RasterProviderpublic void addFile(File file) throws InvalidSourceException
RasterProviderInvalidSourceExceptionpublic void removeFile(File file)
RasterProvider