public class WCSProvider extends AbstractRasterProvider implements RemoteRasterProvider
| Modifier and Type | Field and Description |
|---|---|
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 |
|---|
WCSProvider() |
WCSProvider(String params)
Deprecated.
use
WCSProvider(URI), this constructor will be removed in gvSIG 2.5 |
WCSProvider(URI uri) |
WCSProvider(WCSDataParametersImpl params,
DataStoreProviderServices storeServices) |
| Modifier and Type | Method and Description |
|---|---|
void |
addFile(File file)
Adds a new file.
|
void |
close()
Request to close de source
|
AffineTransform |
getAffineTransform()
Obtiene la transformación afin aplicada en las peticiones con coordenadas
reales.
|
int |
getBlockSize()
When a WCS provider is opened the information of data type and number of bands is not
available.
|
Buffer |
getBuffer(BandList bandList,
File lastFile,
double ulx,
double uly,
double lrx,
double lry)
Assigns the list of bands RGB and read a window of data
|
Buffer |
getBufferLastRequest()
Gets the buffer of the last request.
|
ColorInterpretation |
getColorInterpretation()
Obtiene el objeto que contiene que contiene la interpretación de
color por banda
|
WCSConnector |
getConnector()
Gets the connector from the URL
|
static WCSConnector |
getConnectorFromURL(URL url) |
Object |
getData(int x,
int y,
int band)
Obtiene el valor del raster en la coordenada que se le pasa.
|
Extent |
getExtent()
Calcula el extent en coordenadas del mundo real
|
File |
getFileLayer()
When the remote layer has fixed size this method downloads the file and return its reference.
|
String |
getFileSuffix()
Gets the suffix of the downloaded image
|
double |
getHeight()
Obtiene el ancho de la imagen
|
HistogramComputer |
getHistogramComputer()
Gets the object which computes the histogram
|
File |
getLastRequest()
Gets the file of the last request.
|
double |
getLastRequestHeight() |
double |
getLastRequestWidth() |
Rectangle2D |
getLayerExtent(String layerName,
String srs)
Gets the bounding box of this layer
|
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
|
WCSDataParameters |
getParameters()
Gets WCS parameters
|
String |
getProviderName()
Return the name of the provider.
|
File |
getRMFFile()
Gets the rmf file path.
|
TileServer |
getTileServer()
Gets the tile cache data server
|
Transparency |
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(DataStoreParameters params,
DataStoreProviderServices storeServices)
Crea las referencias al fichero y carga
las estructuras con la información y los metadatos.
|
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 |
isRasterEnclosed()
Some services neither has limits nor pixel size.
|
boolean |
isReproyectable()
Devuelve si el Dataset es reproyectable
|
RasterProvider |
load()
Carga un fichero raster.
|
void |
loadBuffer(SpiRasterQuery query)
Load a buffer with the parameters.
|
boolean |
needEnhanced()
This function returns true if the image to be loaded needs a enhanced filter or
doesn't.
|
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.
|
Object |
readCompleteLine(int line,
int band) |
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 |
setParam(DataStoreProviderServices storeServices,
DataStoreParameters param)
ASigna el parámetro de inicialización del driver.
|
void |
setStatus(RasterProvider provider)
Sets the status information using other provider of the same type.
|
void |
setView(Extent e)
Asigna un nuevo Extent
|
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, getBandCount, getBandCountByProvider, getBandPositionByProvider, getCellSize, getChilds, getColorTable, getDataParameters, getDataSet, getDataType, getDefaultBandList, getExplorer, getExtentWithoutRot, getFileSize, getFileSizeByProvider, getFormatList, getFullName, getGeoPointList, getImageLegend, getInfoByPoint, getInfoByPoint, getInternalProvider, getInternalProviderCount, getInterval, getMetadata, getNoDataValue, getOwnAffineTransform, getPixelSizeX, getPixelSizeY, getProjection, getResource, getRmfBlocksManager, getRMFFileForRemoteServices, getSourceId, getSourceType, getStatistics, getSubdatasetCount, getTileSize, getTime, getTimes, getTimes, getTimeSerials, getURI, getURIByBand, getURIByProvider, getURIOfFirstProvider, getWktProjection, init, isARGB, isGeoreferenced, isInside, isMosaic, isMultiFile, isRGB, isRotated, isTiled, isTimeSupported, loadFromRmf, loadObjectFromRmf, loadObjectFromRmf, loadObjectFromRmfFile, newProvider, open, reload, resetAffineTransform, saveObjectToRmf, saveObjectToRmf, selectSubdataset, selectSubdataset, setColorInterpretation, setColorTable, setDataType, setFileSize, setFName, setGeoPointList, setNoDataValue, 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, waitcloneProvider, deleteLayerFromCache, getBandCount, getBandCountByProvider, getBandPositionByProvider, getCellSize, getColorTable, getDataParameters, getDataSet, getDataType, getExtentWithoutRot, getFileSizeByProvider, getFormatList, getGeoPointList, getImageLegend, getInfoByPoint, getInfoByPoint, getInternalProvider, getInternalProviderCount, getMetadata, getNoDataValue, getOwnAffineTransform, getPixelSizeX, getPixelSizeY, getProjection, getSourceType, getStatistics, getSubdatasetCount, getTimeSerials, getURI, getURIByBand, getURIByProvider, getURIOfFirstProvider, getWktProjection, isGeoreferenced, isInside, isMosaic, isMultiFile, isRotated, isTiled, isTimeSupported, loadObjectFromRmf, reload, saveObjectToRmf, selectSubdataset, setColorInterpretation, setColorTable, setGeoPointList, setNoDataValue, setProjection, setStatistics, setTimeSerialsallowWrite, getStoreServicesgetChilds, getExplorer, getFullName, getInterval, getResource, getSourceId, getTimes, getTimes, open, refreshclear, delegate, getDynClass, getDynValue, hasDynValue, implement, invokeDynMethod, invokeDynMethod, setDynValuedisposepublic static String NAME
public static String DESCRIPTION
public static final String METADATA_DEFINITION_NAME
public WCSProvider()
throws NotSupportedExtensionException
NotSupportedExtensionExceptionpublic WCSProvider(String params) throws InitializeException, OpenException
WCSProvider(URI), this constructor will be removed in gvSIG 2.5public WCSProvider(URI uri) throws InitializeException, OpenException
InitializeExceptionOpenExceptionpublic WCSProvider(WCSDataParametersImpl params, DataStoreProviderServices storeServices) throws InitializeException
InitializeExceptionpublic static void register()
public WCSConnector getConnector() throws RemoteServiceException
RemoteServiceExceptionpublic void init(DataStoreParameters params, DataStoreProviderServices storeServices) throws InitializeException
proj - Proyecciónparam - Parametros de cargaNotSupportedExtensionExceptionRasterDriverExceptionInitializeExceptionpublic static final WCSConnector getConnectorFromURL(URL url) throws IOException
IOExceptionpublic ColorInterpretation getColorInterpretation()
getColorInterpretation in interface RasterProvidergetColorInterpretation in class AbstractRasterProviderpublic WCSDataParameters getParameters()
public AffineTransform getAffineTransform()
RasterProvidergetAffineTransform in interface RasterProvidergetAffineTransform in class AbstractRasterProviderpublic Extent getExtent()
getExtent in interface RasterProvidergetExtent in class AbstractRasterProviderpublic Rectangle2D getLayerExtent(String layerName, String srs) throws RemoteServiceException
RemoteRasterProvidergetLayerExtent in interface RemoteRasterProviderRemoteServiceExceptionpublic RasterProvider load()
AbstractRasterProviderload in class AbstractRasterProviderpublic boolean isOpen()
RasterProviderisOpen in interface RasterProviderpublic void close()
DataStoreProviderclose in interface RasterProviderclose in class AbstractRasterProviderpublic Transparency getTransparency()
RasterProvidergetTransparency in interface RasterProvidergetTransparency in class AbstractRasterProviderpublic URI translateURI(URI uri)
AbstractRasterProvidertranslateURI 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 AbstractRasterProviderpublic Object readCompleteLine(int line, int band) throws InvalidSetViewException, FileNotOpenException, RasterDriverException
public File getFileLayer() throws RasterDriverException
getFileLayer in interface RemoteRasterProviderRasterDriverExceptionpublic Object readBlock(int pos, int blockHeight, double scale) throws InvalidSetViewException, FileNotOpenException, RasterDriverException, ProcessInterruptedException
readBlock in interface RasterProviderpos - Posición donde se empieza a leerblockHeight - Altura máxima del bloque leidoInvalidSetViewExceptionFileNotOpenExceptionRasterDriverExceptionProcessInterruptedExceptionpublic double getLastRequestHeight()
throws RasterDriverException
RasterDriverExceptionpublic double getLastRequestWidth()
throws RasterDriverException
RasterDriverExceptionpublic File getLastRequest()
RemoteRasterProvidergetLastRequest in interface RemoteRasterProviderpublic Buffer getBufferLastRequest() throws ProcessInterruptedException, RasterDriverException
RemoteRasterProvidergetBufferLastRequest in interface RemoteRasterProviderProcessInterruptedExceptionRasterDriverExceptionpublic Object getData(int x, int y, int band) throws InvalidSetViewException, FileNotOpenException, RasterDriverException
AbstractRasterProvidergetData in interface RasterProvidergetData in class AbstractRasterProviderx - coordenada Xy - coordenada YInvalidSetViewExceptionFileNotOpenExceptionRasterDriverExceptionpublic boolean needEnhanced()
RasterProviderneedEnhanced in interface RasterProviderneedEnhanced in class AbstractRasterProviderpublic Buffer getBuffer(BandList bandList, File lastFile, double ulx, double uly, double lrx, double lry) throws RasterDriverException, ProcessInterruptedException
rasterBuf - bandList - lastFile - ulx - uly - lrx - lry - RasterDriverExceptionProcessInterruptedExceptionpublic 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 int getBlockSize()
getBlockSize in class AbstractRasterProvidernewDataType - buf - bandList - public void setAffineTransform(AffineTransform t)
RasterProvidersetAffineTransform in interface RasterProvidersetAffineTransform in class AbstractRasterProvidert - Transformación afín a aplicarpublic int getOverviewCount(int band)
throws BandAccessException,
RasterDriverException
RasterProvidergetOverviewCount in interface 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 String getProviderName()
DataStoreProvidergetProviderName in interface CoverageStoreProviderpublic String getName()
DataStoreProvidergetName in class AbstractRasterProviderpublic Point2D rasterToWorld(Point2D pt)
rasterToWorld in interface RasterProviderrasterToWorld in class AbstractRasterProviderpt - Punto a transformarpublic Point2D worldToRaster(Point2D pt)
worldToRaster in interface RasterProviderworldToRaster in class AbstractRasterProviderpt - Punto a transformarpublic void setStatus(RasterProvider provider)
RasterProvidersetStatus in interface RasterProviderpublic void setParam(DataStoreProviderServices storeServices, DataStoreParameters param)
setParam in class AbstractRasterProviderpublic String getFileSuffix()
getFileSuffix in interface RasterProvidergetFileSuffix in class AbstractRasterProviderpublic TileServer getTileServer()
RasterProvidergetTileServer in interface RasterProviderpublic boolean isRasterEnclosed()
RasterProviderisRasterEnclosed in interface RasterProviderisRasterEnclosed in class AbstractRasterProviderpublic File getRMFFile()
RasterProvidergetRMFFile in interface RasterProvidergetRMFFile in class AbstractRasterProviderpublic HistogramComputer getHistogramComputer()
HistogramablegetHistogramComputer in interface HistogramablegetHistogramComputer in class AbstractRasterProviderpublic void addFile(File file) throws InvalidSourceException
RasterProvideraddFile in interface RasterProviderInvalidSourceExceptionpublic void removeFile(File file)
RasterProviderremoveFile in interface RasterProvider