public class NetCDFProvider extends AbstractRasterProvider
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
DESCRIPTION |
protected static java.lang.String[] |
formatList |
java.lang.String |
METADATA_DEFINITION_NAME |
static java.lang.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 |
|---|
NetCDFProvider() |
NetCDFProvider(NetCDFDataParameters params,
DataStoreProviderServices storeServices) |
NetCDFProvider(java.lang.String params)
Deprecated.
use
NetCDFProvider(URI), this constructor will be removed in gvSIG 2.5 |
NetCDFProvider(java.net.URI uri)
Opens the dataset.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addFile(java.io.File file)
Adds a new file.
|
void |
close()
Request to close de source
|
int |
getBlockSize() |
ColorInterpretation |
getColorInterpretation()
Gets the object with the color interpretation by band
|
java.lang.Object |
getData(int x,
int y,
int band)
Obtiene el valor del raster en la coordenada que se le pasa.
|
java.lang.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
|
java.lang.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
|
void |
init(NetCDFDataParameters params,
DataStoreProviderServices storeServices)
Build file references
|
boolean |
isExtensionSupported(java.lang.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 |
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 query)
Load a buffer with the parameters.
|
java.lang.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(java.io.File file)
Removes a file.
|
void |
selectSubdataset()
Selects the GridDataType using the selected variable in the parameters
|
void |
setAffineTransform(java.awt.geom.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.
|
java.net.URI |
translateURI(java.net.URI uri)
Traduce el nombre del fichero por un alias asignado por el propio driver.
|
cloneProvider, deleteLayerFromCache, doDispose, finalize, getAffineTransform, getBandCount, getBandCountByProvider, getBandPositionByProvider, getCellSize, getChildren, 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, getResourcesStorage, getRmfBlocksManager, getRMFFile, getRMFFileForRemoteServices, getSourceId, getSourceType, getStatistics, getStoresRepository, getSubdatasetCount, getTileSize, getTime, getTimes, getTimes, getTimeSerials, getURI, getURIByBand, getURIByProvider, getURIOfFirstProvider, getWktProjection, init, isARGB, isGeoreferenced, isInside, isMosaic, isMultiFile, isRasterEnclosed, isRGB, isRotated, isTiled, loadFromRmf, loadObjectFromRmf, loadObjectFromRmf, loadObjectFromRmfFile, needEnhanced, newProvider, open, rasterToWorld, reload, resetAffineTransform, saveObjectToRmf, saveObjectToRmf, selectSubdataset, setColorInterpretation, setColorTable, setDataType, setFileSize, setFName, setGeoPointList, setNoDataValue, setParam, setProjection, setStatistics, setTileServer, setTimeSerials, singleDatasetInstance, translateFileName, worldToRasterallowWrite, clear, createCoverageSelection, createResource, delegate, getClassName, getDataStoreParameters, getDynClass, getDynValue, getEnvelope, getStoreServices, hasDynMethod, hasDynValue, implement, init, invokeDynMethod, invokeDynMethod, refresh, setDynValue, setMetadatasetTransactiondispose, disposeclone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitallowWrite, getStoreServicesrefresh, setTransactionhasDynMethodclear, clone, delegate, getDynClass, getDynValue, hasDynValue, implement, invokeDynMethod, invokeDynMethod, setDynValuedisposepublic static java.lang.String NAME
public static java.lang.String DESCRIPTION
public final java.lang.String METADATA_DEFINITION_NAME
protected static java.lang.String[] formatList
public NetCDFProvider()
public NetCDFProvider(java.lang.String params)
throws NotSupportedExtensionException,
OpenException
NetCDFProvider(URI), this constructor will be removed in gvSIG 2.5proj - ProjectionfName - File nameNotSupportedExtensionExceptionOpenExceptionpublic NetCDFProvider(java.net.URI uri)
throws NotSupportedExtensionException,
OpenException
proj - ProjectionfName - File nameNotSupportedExtensionExceptionOpenExceptionpublic NetCDFProvider(NetCDFDataParameters params, DataStoreProviderServices storeServices) throws NotSupportedExtensionException, OpenException
public static void register()
public java.lang.String[] getFormatList()
RasterProvidergetFormatList in interface RasterProvidergetFormatList in class AbstractRasterProviderpublic boolean isExtensionSupported(java.lang.String ext)
ext - public void init(NetCDFDataParameters params, DataStoreProviderServices storeServices) throws NotSupportedExtensionException, OpenException
proj - Projectionparam - Load parametersNotSupportedExtensionExceptionOpenExceptionpublic RasterProvider load()
AbstractRasterProviderload in class AbstractRasterProviderpublic boolean isOpen()
RasterProviderpublic void close()
DataStoreProviderclose in interface RasterProviderclose in class AbstractRasterProviderpublic java.net.URI translateURI(java.net.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 java.lang.Object readBlock(int pos,
int blockHeight,
double scale)
throws InvalidSetViewException,
FileNotOpenException,
RasterDriverException,
ProcessInterruptedException
RasterProviderpublic java.lang.Object getData(int x,
int y,
int band)
throws InvalidSetViewException,
FileNotOpenException,
RasterDriverException
AbstractRasterProvidergetData in interface RasterProvidergetData in class AbstractRasterProviderx - coordenada Xy - coordenada YInvalidSetViewExceptionFileNotOpenExceptionRasterDriverExceptionpublic 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 selectSubdataset()
selectSubdataset in interface RasterProviderselectSubdataset in class AbstractRasterProviderpublic 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 void setAffineTransform(java.awt.geom.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 boolean isReproyectable()
AbstractRasterProviderisReproyectable in interface RasterProviderisReproyectable in class AbstractRasterProviderpublic java.lang.String getProviderName()
DataStoreProviderpublic void setStatus(RasterProvider provider)
RasterProviderpublic boolean isTimeSupported()
RasterProviderisTimeSupported in interface RasterProviderisTimeSupported in class AbstractRasterProviderpublic TileServer getTileServer()
RasterProviderpublic void addFile(java.io.File file)
throws InvalidSourceException
RasterProviderInvalidSourceExceptionpublic void removeFile(java.io.File file)
RasterProvider