public class LizardTechProvider extends AbstractRasterProvider
| Modifier and Type | Field and Description |
|---|---|
static String |
DESCRIPTION |
protected DataStoreTransparency |
fileTransparency |
protected static String[] |
formatList |
protected LizardTechNative |
lztNative |
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 |
|---|
LizardTechProvider()
Mandatory constructor to instantiate an empty provider
|
LizardTechProvider(LizardTechDataParameters params,
DataStoreProviderServices storeServices) |
LizardTechProvider(String params)
Deprecated.
use
LizardTechProvider(URI), this constructor will be removed in gvSIG 2.5 |
LizardTechProvider(URI uri)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addFile(File file)
Adds a new file.
|
void |
close()
Request to close de source
|
int |
getBlockSize() |
DataStoreColorInterpretation |
getColorInterpretation()
Gets the object with the color interpretation by band
|
Object |
getData(int x,
int y,
int band)
Obtiene el valor del raster en la coordenada que se le pasa.
|
String[] |
getFormatList()
Gets the list of supported formats
|
double |
getHeight()
Obtiene el ancho de la imagen
|
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
|
DataStoreTransparency |
getTransparency()
Obtiene el estado de transparencia a partir de los estados de transparencia de todos
los ficheros que lo componen.
|
Extent |
getView()
Obtiene el extent asignado
|
double |
getWidth()
Obtiene el ancho de la imagen
|
String |
getWktProjection()
Obtiene la proyección asociada al raster.
|
void |
init(AbstractRasterDataParameters params,
DataStoreProviderServices storeServices)
Contructor.
|
boolean |
isExtensionSupported(String ext)
Returns true if the extension is supported and false if doesn't
|
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 query)
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)
Read a line from the file
|
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.
|
protected void |
setRGBLine(BufferedImage image,
int startX,
int startY,
int w,
int h,
int[] rgbArray,
int offset,
int scansize)
Asigna al objeto Image los valores con los dato de la imagen contenidos en
el vector de enteros.
|
void |
setStatus(RasterProvider provider)
Sets the status information using other provider of the same type.
|
void |
setView(Extent e)
Asigna un nuevo Extent
|
cloneProvider, deleteLayerFromCache, doDispose, finalize, getAffineTransform, getBandCount, getBandCountByProvider, getBandPositionByProvider, getCellSize, getChilds, getColorTable, getDataParameters, getDataSet, getDataType, getDefaultBandList, getExplorer, getExtent, getExtentWithoutRot, getFileSize, getFileSizeByProvider, getFileSuffix, getFullName, getGeoPointList, getHistogramComputer, getImageLegend, getInfoByPoint, getInfoByPoint, getInternalProvider, getInternalProviderCount, getInterval, getMetadata, getName, getNoDataValue, getOwnAffineTransform, getPixelSizeX, getPixelSizeY, getProjection, getResource, getRmfBlocksManager, getRMFFile, getRMFFileForRemoteServices, getSourceId, getSourceType, getStatistics, getSubdatasetCount, getTileSize, getTime, getTimes, getTimes, getTimeSerials, getURI, getURIByBand, getURIByProvider, getURIOfFirstProvider, init, isARGB, isGeoreferenced, isInside, isMosaic, isMultiFile, isRasterEnclosed, isReproyectable, isRGB, isRotated, isTiled, isTimeSupported, loadFromRmf, loadObjectFromRmf, loadObjectFromRmf, loadObjectFromRmfFile, needEnhanced, newProvider, open, rasterToWorld, reload, resetAffineTransform, saveObjectToRmf, saveObjectToRmf, selectSubdataset, selectSubdataset, 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 LizardTechNative lztNative
protected DataStoreTransparency fileTransparency
protected static String[] formatList
public LizardTechProvider()
public LizardTechProvider(String params) throws NotSupportedExtensionException, OpenException
LizardTechProvider(URI), this constructor will be removed in gvSIG 2.5proj - ProyecciónfName - Nombre del fichero ecwNotSupportedExtensionExceptionOpenExceptionpublic LizardTechProvider(URI uri) throws NotSupportedExtensionException
proj - ProyecciónfName - Nombre del fichero ecwNotSupportedExtensionExceptionpublic LizardTechProvider(LizardTechDataParameters params, DataStoreProviderServices storeServices) throws NotSupportedExtensionException
NotSupportedExtensionExceptionpublic static void register()
public String[] getFormatList()
RasterProvidergetFormatList in interface RasterProvidergetFormatList in class AbstractRasterProviderpublic boolean isExtensionSupported(String ext)
ext - public void init(AbstractRasterDataParameters params, DataStoreProviderServices storeServices) throws NotSupportedExtensionException
proj - ProyecciónfName - Nombre del fichero mrsidNotSupportedExtensionExceptionpublic RasterProvider load()
AbstractRasterProviderload in class AbstractRasterProviderpublic boolean isOpen()
RasterProviderpublic void close()
DataStoreProviderclose in interface RasterProviderclose in class AbstractRasterProviderpublic void setView(Extent e)
AbstractRasterProvidersetView 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 AbstractRasterProviderprotected void setRGBLine(BufferedImage image, int startX, int startY, int w, int h, int[] rgbArray, int offset, int scansize)
image - imagen con los datos actualesstartX - inicio de la posición en X dentro de la imagenstartY - inicio de la posición en X dentro de la imagenw - Ancho de la imagenh - Alto de la imagenrgbArray - vector que contiene la banda que se va a sustituiroffset - desplazamientoscansize - tamaño de imagen recorrida por cada ppublic 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 boolean isSupersampling()
public void loadBuffer(SpiRasterQuery query) 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 readBlock(int pos, int blockHeight, double scale) throws InvalidSetViewException, FileNotOpenException, RasterDriverException, ProcessInterruptedException
RasterProviderpublic Object readCompleteLine(int line, int band) throws InvalidSetViewException, FileNotOpenException, RasterDriverException
line - band - InvalidSetViewExceptionFileNotOpenExceptionRasterDriverExceptionpublic DataStoreTransparency getTransparency()
RasterProvidergetTransparency in interface RasterProvidergetTransparency in class AbstractRasterProviderpublic DataStoreColorInterpretation getColorInterpretation()
RasterProvidergetColorInterpretation in interface RasterProvidergetColorInterpretation in class AbstractRasterProviderpublic String getWktProjection()
RasterProvidergetWktProjection in interface RasterProvidergetWktProjection in class AbstractRasterProviderpublic void setAffineTransform(AffineTransform t)
RasterProvidersetAffineTransform in interface RasterProvidersetAffineTransform in class AbstractRasterProvidert - Transformación afín a aplicarpublic 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 void setStatus(RasterProvider provider)
RasterProviderpublic TileServer getTileServer()
RasterProviderpublic void addFile(File file) throws InvalidSourceException
RasterProviderInvalidSourceExceptionpublic void removeFile(File file)
RasterProvider