public class TileFileFormatProvider extends AbstractRasterProvider implements TiledRasterProvider
TileFileFormat| Modifier and Type | Field and Description |
|---|---|
static String |
DESCRIPTION |
protected static String[] |
formatList |
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 |
|---|
TileFileFormatProvider() |
TileFileFormatProvider(TileFileFormatDataParameters params,
DataStoreProviderServices storeServices) |
| Modifier and Type | Method and Description |
|---|---|
void |
addFile(File file)
Adds a new file.
|
int |
getBlockSize() |
Extent |
getCoordsInLevel(Point2D viewCenter,
int level,
int w,
int h)
Calculates the extent of a zoom level using a center.
|
Extent |
getCoordsInTheNearestLevel(Extent extent,
int w,
int h)
Calculates the extent of a zoom level using other extent as a reference.
|
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
|
RasterProvider |
getInternalProvider()
Gets the internal provider used to feed the TileProvider
|
int |
getNearestLevel(double pixelSize)
Gets the nearest level to the selected pixel size
|
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
|
TileFileFormatDataParameters |
getParameters() |
String |
getProviderName()
Return the name of the provider.
|
Tile |
getTile(SpiRasterQuery q)
Gets a tile
|
TileServer |
getTileServer()
Gets the tile cache data server
|
Extent |
getView()
Obtiene el extent asignado
|
double |
getWidth()
Obtiene el ancho de la imagen
|
int |
getZoomLevels()
Gets the number of zoom levels
|
void |
init(TileFileFormatDataParameters params,
DataStoreProviderServices storeServices)
Build file references
|
boolean |
isExtensionSupported(String ext) |
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.
|
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.
|
static void |
register() |
void |
removeFile(File file)
Removes a file.
|
void |
setStatus(RasterProvider provider)
Sets the status information using other provider of the same type.
|
void |
setView(Extent e)
Asigna un nuevo Extent
|
cloneProvider, close, deleteLayerFromCache, doDispose, finalize, getAffineTransform, getBandCount, getBandCountByProvider, getBandPositionByProvider, getCellSize, getChilds, getColorInterpretation, 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, getTransparency, getURI, getURIByBand, getURIByProvider, getURIOfFirstProvider, getWktProjection, 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, 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, waitgetTileSize, setTileServerallowWrite, getStoreServicesrefreshclear, delegate, getDynClass, getDynValue, hasDynValue, implement, invokeDynMethod, invokeDynMethod, setDynValuedisposepublic static String NAME
public static String DESCRIPTION
public static final String METADATA_DEFINITION_NAME
protected static String[] formatList
public TileFileFormatProvider()
throws NotSupportedExtensionException
NotSupportedExtensionExceptionpublic TileFileFormatProvider(TileFileFormatDataParameters params, DataStoreProviderServices storeServices) throws InitializeException
params - storeServices - InitializeExceptionpublic static void register()
public String[] getFormatList()
RasterProvidergetFormatList in interface RasterProvidergetFormatList in class AbstractRasterProviderpublic boolean isExtensionSupported(String ext)
ext - public void init(TileFileFormatDataParameters params, DataStoreProviderServices storeServices) throws NotSupportedExtensionException, OpenException
params - storeServices - NotSupportedExtensionExceptionOpenExceptionpublic TileFileFormatDataParameters getParameters()
public int getBlockSize()
getBlockSize in class AbstractRasterProviderpublic Object getData(int x, int y, int band) throws InvalidSetViewException, FileNotOpenException, RasterDriverException
AbstractRasterProvidergetData in interface RasterProvidergetData in class AbstractRasterProviderx - coordenada Xy - coordenada YInvalidSetViewExceptionFileNotOpenExceptionRasterDriverExceptionpublic double getHeight()
AbstractRasterProvidergetHeight in interface RasterProvidergetHeight in class AbstractRasterProviderpublic int getOverviewHeight(int band,
int overview)
throws BandAccessException,
RasterDriverException
RasterProvidergetOverviewHeight in interface RasterProvidergetOverviewHeight in class AbstractRasterProviderBandAccessExceptionRasterDriverExceptionpublic int getOverviewWidth(int band,
int overview)
throws BandAccessException,
RasterDriverException
RasterProvidergetOverviewWidth in interface RasterProvidergetOverviewWidth in class AbstractRasterProviderBandAccessExceptionRasterDriverExceptionpublic Extent getView()
AbstractRasterProvidergetView in interface RasterProvidergetView in class AbstractRasterProviderpublic double getWidth()
AbstractRasterProvidergetWidth in interface RasterProvidergetWidth in class AbstractRasterProviderpublic boolean isOverviewsSupported()
AbstractRasterProviderisOverviewsSupported in interface RasterProviderisOverviewsSupported in class AbstractRasterProviderpublic RasterProvider load()
AbstractRasterProviderload in class AbstractRasterProviderpublic void setView(Extent e)
AbstractRasterProvidersetView in class AbstractRasterProvidere - Extentpublic Extent getCoordsInLevel(Point2D viewCenter, int level, int w, int h)
TiledRasterProvidergetCoordsInLevel in interface TiledRasterProviderpublic Extent getCoordsInTheNearestLevel(Extent extent, int w, int h)
TiledRasterProvidergetCoordsInTheNearestLevel in interface TiledRasterProviderpublic RasterProvider getInternalProvider()
TiledRasterProvidergetInternalProvider in interface TiledRasterProviderpublic int getNearestLevel(double pixelSize)
TiledRasterProvidergetNearestLevel in interface TiledRasterProviderpublic Tile getTile(SpiRasterQuery q) throws TileGettingException
TiledRasterProvidergetTile in interface TiledRasterProviderTileGettingExceptionpublic int getZoomLevels()
TiledRasterProvidergetZoomLevels in interface TiledRasterProviderpublic int getOverviewCount(int band)
throws BandAccessException,
RasterDriverException
RasterProvidergetOverviewCount in interface RasterProviderBandAccessExceptionRasterDriverExceptionpublic TileServer getTileServer()
RasterProvidergetTileServer in interface RasterProviderpublic boolean isOpen()
RasterProviderisOpen in interface RasterProviderpublic Object readBlock(int pos, int blockHeight, double scale) throws InvalidSetViewException, FileNotOpenException, RasterDriverException, ProcessInterruptedException
RasterProviderreadBlock in interface RasterProviderInvalidSetViewExceptionFileNotOpenExceptionRasterDriverExceptionProcessInterruptedExceptionpublic void setStatus(RasterProvider provider)
RasterProvidersetStatus in interface RasterProviderpublic String getProviderName()
DataStoreProvidergetProviderName in interface CoverageStoreProviderpublic 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 void addFile(File file) throws InvalidSourceException
RasterProvideraddFile in interface RasterProviderInvalidSourceExceptionpublic void removeFile(File file)
RasterProviderremoveFile in interface RasterProvider