public class MultiFileProvider extends AbstractRasterProvider
| Modifier and Type | Field and Description |
|---|---|
static String |
DESCRIPTION |
protected static String[] |
formatList |
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, transparency, urimetadata, parameters, store| Constructor and Description |
|---|
MultiFileProvider() |
MultiFileProvider(MultiFileDataParametersImpl params,
DataStoreProviderServices storeServices) |
MultiFileProvider(String params)
Deprecated.
use
MultiFileProvider(URI), this constructor will be removed in gvSIG 2.5 |
MultiFileProvider(URI uri)
Opens the dataset.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addFile(File file)
Adds a new file.
|
void |
addFile(String file) |
void |
close()
Request to close de source
|
AffineTransform |
getAffineTransform()
Obtiene la transformación afin aplicada en las peticiones con coordenadas
reales.
|
int |
getBandCount()
Obtiene el número de bandas del fichero
|
int[] |
getBandCountByProvider()
Gets the number of bands by provider.
|
int |
getBandPositionByProvider(int band)
Selecting a number of band this function returns the number of band
inside the file.
|
int |
getBlockSize() |
double |
getCellSize()
Gets the pixel size
|
ColorInterpretation |
getColorInterpretation()
Gets the object with the color interpretation by band
|
ColorTable |
getColorTable()
A multiband provider doesn't have a color table because this will have
more than one band.
|
Object |
getData(int x,
int y,
int band)
Obtiene el valor del raster en la coordenada que se le pasa.
|
int[] |
getDataType()
Obtiene el tipo de dato por banda
|
Extent |
getExtent()
Calcula el extent en coordenadas del mundo real
|
long[] |
getFileSizeByProvider()
Gets a list of sizes.
|
double |
getHeight()
Obtiene el ancho de la imagen
|
HistogramComputer |
getHistogramComputer()
Gets the object which computes the histogram
|
RasterProvider |
getInternalProvider(int i)
Gets the internal provider of the i position
|
int |
getInternalProviderCount()
Returns the number of internal providers that it has
|
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
|
MultiFileDataParameters |
getParameters() |
String |
getProviderName()
Return the name of the provider.
|
Statistics |
getStatistics()
Gets statistics of this provider
|
TileServer |
getTileServer()
Gets the tile cache data server
|
DataStoreTransparency |
getTransparency()
Obtiene el estado de transparencia a partir de los estados de transparencia de todos
los ficheros que lo componen.
|
URI |
getURIByBand(int band)
Gets the URI of the source.
|
URI[] |
getURIByProvider()
Gets a list of file names or URI.
|
URI |
getURIOfFirstProvider()
Gets the URI of the first provider.
|
Extent |
getView()
Obtiene el extent asignado
|
double |
getWidth()
Obtiene el ancho de la imagen
|
void |
init(MultiFileDataParameters params,
DataStoreProviderServices storeServices)
Build file references
|
boolean |
isInside(Point2D p)
Informa de si el punto en coordenadas del mundo real pasado por parámetro cae dentro del
raster o fuera.
|
boolean |
isMultiFile()
Returns true if the provider has several files and all of them has the same extension
|
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 |
isReproyectable()
Devuelve si el Dataset es reproyectable
|
boolean |
isSupersampling()
Informa de si el driver ha supersampleado en el �ltimo dibujado.
|
boolean |
isTimeSupported()
Returns true if this provider supports time.
|
RasterProvider |
load()
Carga un fichero raster.
|
void |
loadBuffer(SpiRasterQuery q)
Load a buffer with the parameters.
|
Point2D |
rasterToWorld(Point2D pt)
Convierte un punto desde coordenadas pixel a coordenadas del mundo.
|
Object |
readBlock(int pos,
int blockHeight,
double scale)
Reads a complete block of data and returns an tridimensional array of the right type.
|
static void |
register() |
void |
removeFile(File file)
Removes a file.
|
void |
setAffineTransform(AffineTransform t)
Asigna una transformación al raster para que se tenga en cuenta en la
asignación del setView.
|
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. existe un fichero .rmf debemos hacer una transformaci�n
de la vista asignada ya que la petici�n viene en coordenadas del fichero .rmf y la vista (v)
ha de estar en coordenadas del fichero.
|
URI |
translateURI(URI uri)
Traduce el nombre del fichero por un alias asignado por el propio driver.
|
Point2D |
worldToRaster(Point2D pt)
Convierte un punto desde del mundo a coordenadas pixel.
|
cloneProvider, deleteLayerFromCache, doDispose, finalize, getChilds, getDataParameters, getDataSet, getDefaultBandList, getExplorer, getExtentWithoutRot, getFileSize, getFileSuffix, getFormatList, getFullName, getGeoPointList, getImageLegend, getInfoByPoint, getInfoByPoint, getInterval, getMetadata, getName, getNoDataValue, getOwnAffineTransform, getPixelSizeX, getPixelSizeY, getProjection, getResource, getRmfBlocksManager, getRMFFile, getRMFFileForRemoteServices, getSourceId, getSourceType, getSubdatasetCount, getTileSize, getTime, getTimes, getTimes, getTimeSerials, getURI, getWktProjection, init, isARGB, isGeoreferenced, isMosaic, isRasterEnclosed, isRGB, isRotated, isTiled, loadFromRmf, loadObjectFromRmf, loadObjectFromRmf, loadObjectFromRmfFile, needEnhanced, newProvider, open, reload, resetAffineTransform, saveObjectToRmf, saveObjectToRmf, selectSubdataset, selectSubdataset, setColorInterpretation, setColorTable, setDataType, setFileSize, setFName, setGeoPointList, setNoDataValue, setParam, setProjection, setStatistics, setTileServer, setTimeSerials, singleDatasetInstance, translateFileNameallowWrite, 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 final String METADATA_DEFINITION_NAME
protected static String[] formatList
public MultiFileProvider()
public MultiFileProvider(String params) throws NotSupportedExtensionException, OpenException
MultiFileProvider(URI), this constructor will be removed in gvSIG 2.5params - proj - ProjectionfName - File nameNotSupportedExtensionExceptionOpenExceptionpublic MultiFileProvider(URI uri) throws NotSupportedExtensionException, OpenException
uri - proj - ProjectionfName - File nameNotSupportedExtensionExceptionOpenExceptionpublic MultiFileProvider(MultiFileDataParametersImpl params, DataStoreProviderServices storeServices) throws NotSupportedExtensionException, OpenException
params - storeServices - NotSupportedExtensionExceptionOpenExceptionpublic static void register()
public void init(MultiFileDataParameters params, DataStoreProviderServices storeServices) throws NotSupportedExtensionException, OpenException
params - storeServices - proj - Projectionparam - Load parametersNotSupportedExtensionExceptionOpenExceptionpublic MultiFileDataParameters getParameters()
public RasterProvider load()
AbstractRasterProviderload in class AbstractRasterProviderpublic int getBandCount()
AbstractRasterProvidergetBandCount in interface RasterProvidergetBandCount in class AbstractRasterProviderpublic int[] getDataType()
RasterProvidergetDataType in interface RasterProvidergetDataType in class AbstractRasterProviderpublic URI[] getURIByProvider()
RasterProvidergetURIByProvider in interface RasterProvidergetURIByProvider in class AbstractRasterProviderpublic int getBandPositionByProvider(int band)
RasterProvidergetBandPositionByProvider in interface RasterProvidergetBandPositionByProvider in class AbstractRasterProviderpublic URI getURIOfFirstProvider()
RasterProvidergetURIOfFirstProvider in interface RasterProvidergetURIOfFirstProvider in class AbstractRasterProviderpublic Extent getExtent()
AbstractRasterProvidergetExtent in interface RasterProvidergetExtent in class AbstractRasterProviderpublic AffineTransform getAffineTransform()
RasterProvidergetAffineTransform in interface RasterProvidergetAffineTransform in class AbstractRasterProviderpublic void setAffineTransform(AffineTransform t)
RasterProvidersetAffineTransform in interface RasterProvidersetAffineTransform in class AbstractRasterProvidert - Transformación afín a aplicarpublic int getInternalProviderCount()
RasterProvidergetInternalProviderCount in interface RasterProvidergetInternalProviderCount in class AbstractRasterProviderpublic RasterProvider getInternalProvider(int i)
RasterProvidergetInternalProvider in interface RasterProvidergetInternalProvider in class AbstractRasterProviderpublic int[] getBandCountByProvider()
RasterProvidergetBandCountByProvider in interface RasterProvidergetBandCountByProvider in class AbstractRasterProviderpublic long[] getFileSizeByProvider()
RasterProvidergetFileSizeByProvider in interface RasterProvidergetFileSizeByProvider in class AbstractRasterProviderpublic Point2D rasterToWorld(Point2D pt)
AbstractRasterProviderrasterToWorld in interface RasterProviderrasterToWorld in class AbstractRasterProviderpt - Punto a transformarpublic Point2D worldToRaster(Point2D pt)
AbstractRasterProviderworldToRaster in interface RasterProviderworldToRaster in class AbstractRasterProviderpt - Punto a transformarpublic boolean isInside(Point2D p)
RasterProviderisInside in interface RasterProviderisInside in class AbstractRasterProviderp - Punto a comprobar en coordenadas realespublic double getCellSize()
RasterProvidergetCellSize in interface RasterProvidergetCellSize in class AbstractRasterProviderpublic Statistics getStatistics()
RasterProvidergetStatistics in interface RasterProvidergetStatistics in class AbstractRasterProviderpublic HistogramComputer getHistogramComputer()
HistogramablegetHistogramComputer in interface HistogramablegetHistogramComputer in class AbstractRasterProviderpublic ColorTable getColorTable()
getColorTable in interface RasterProvidergetColorTable in class AbstractRasterProviderpublic boolean isOpen()
RasterProviderpublic void close()
DataStoreProviderclose in interface RasterProviderclose in class AbstractRasterProviderpublic URI translateURI(URI uri)
AbstractRasterProvidertranslateURI in class AbstractRasterProviderpublic void setView(Extent e)
setView in class AbstractRasterProvidere - Extentpublic Extent getView()
AbstractRasterProvidergetView in interface RasterProvidergetView in class AbstractRasterProviderpublic double getWidth()
AbstractRasterProvidergetWidth in interface RasterProvidergetWidth in class AbstractRasterProviderpublic double getHeight()
AbstractRasterProvidergetHeight in interface RasterProvidergetHeight in class AbstractRasterProviderpublic Object readBlock(int pos, int blockHeight, double scale) throws InvalidSetViewException, FileNotOpenException, RasterDriverException, ProcessInterruptedException
RasterProviderpublic 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 Object getData(int x, int y, int band) throws InvalidSetViewException, FileNotOpenException, RasterDriverException
AbstractRasterProvidergetData in interface RasterProvidergetData in class AbstractRasterProviderx - coordenada Xy - coordenada YInvalidSetViewExceptionFileNotOpenExceptionRasterDriverExceptionpublic int getBlockSize()
getBlockSize in class AbstractRasterProviderpublic ColorInterpretation getColorInterpretation()
RasterProvidergetColorInterpretation in interface RasterProvidergetColorInterpretation in class AbstractRasterProviderpublic DataStoreTransparency getTransparency()
RasterProvidergetTransparency in interface RasterProvidergetTransparency in class AbstractRasterProviderpublic boolean isSupersampling()
public 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 isMultiFile()
RasterProviderisMultiFile in interface RasterProviderisMultiFile in class AbstractRasterProviderpublic boolean isOverviewsSupported()
AbstractRasterProviderisOverviewsSupported in interface RasterProviderisOverviewsSupported in class AbstractRasterProviderpublic boolean isReproyectable()
AbstractRasterProviderisReproyectable in interface RasterProviderisReproyectable in class AbstractRasterProviderpublic String getProviderName()
DataStoreProviderpublic void setStatus(RasterProvider provider)
RasterProviderpublic boolean isTimeSupported()
RasterProviderisTimeSupported in interface RasterProviderisTimeSupported in class AbstractRasterProviderpublic URI getURIByBand(int band)
RasterProvidergetURIByBand in interface RasterProvidergetURIByBand in class AbstractRasterProviderpublic void addFile(String file) throws InvalidSourceException
file - InvalidSourceExceptionpublic void removeFile(File file)
RasterProviderpublic TileServer getTileServer()
RasterProviderpublic void addFile(File file) throws InvalidSourceException
RasterProviderInvalidSourceException