public class ErmapperProvider extends AbstractRasterProvider implements com.ermapper.ecw.JNCSProgressiveUpdate
Modifier and Type | Field and Description |
---|---|
static String |
DESCRIPTION |
protected Transparency |
fileTransparency |
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, uri
metadata, parameters, store
Constructor and Description |
---|
ErmapperProvider()
Mandatory constructor to instantiate an empty provider
|
ErmapperProvider(ErmapperDataParameters params,
DataStoreProviderServices storeServices) |
ErmapperProvider(String params)
Deprecated.
use
ErmapperProvider(URI) , this constructor will be removed in gvSIG 2.5 |
ErmapperProvider(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.
|
String |
getStringProjection() |
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
|
String |
getWktProjection()
Obtiene la proyección asociada al raster.
|
void |
init(AbstractRasterDataParameters params,
DataStoreProviderServices storeServices)
Abre el dataset.
|
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 |
isSupersamplingSupported() |
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) |
void |
refreshUpdate(int arg0,
int arg1,
double arg2,
double arg3,
double arg4,
double arg5) |
void |
refreshUpdate(int arg0,
int arg1,
int arg2,
int arg3,
int arg4,
int arg5) |
static void |
register() |
void |
removeFile(File file)
Removes a file.
|
void |
reProject(ICoordTrans rp) |
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, setAffineTransform, setColorInterpretation, setColorTable, setDataType, setFileSize, setFName, setGeoPointList, setNoDataValue, setParam, setProjection, setStatistics, setTileServer, setTimeSerials, singleDatasetInstance, translateFileName, translateURI, worldToRaster
allowWrite, clear, createCoverageSelection, createResource, delegate, getClassName, getDataStoreParameters, getDynClass, getDynValue, getEnvelope, getStoreServices, hasDynMethod, hasDynValue, implement, init, invokeDynMethod, invokeDynMethod, refresh, setDynValue, setMetadata
dispose, dispose
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
allowWrite, getStoreServices
refresh
hasDynMethod
clear, delegate, getDynClass, getDynValue, hasDynValue, implement, invokeDynMethod, invokeDynMethod, setDynValue
dispose
public static String NAME
public static String DESCRIPTION
public static final String METADATA_DEFINITION_NAME
protected Transparency fileTransparency
protected static String[] formatList
public ErmapperProvider()
public ErmapperProvider(String params) throws NotSupportedExtensionException, OpenException
ErmapperProvider(URI)
, this constructor will be removed in gvSIG 2.5proj
- ProyecciónfName
- Nombre del fichero ecwNotSupportedExtensionException
OpenException
public ErmapperProvider(URI uri) throws NotSupportedExtensionException
proj
- Proyecciónuri
- uri del fichero ecwNotSupportedExtensionException
public ErmapperProvider(ErmapperDataParameters params, DataStoreProviderServices storeServices) throws NotSupportedExtensionException
NotSupportedExtensionException
public static void register()
public String[] getFormatList()
RasterProvider
getFormatList
in interface RasterProvider
getFormatList
in class AbstractRasterProvider
public boolean isExtensionSupported(String ext)
ext
- public void init(AbstractRasterDataParameters params, DataStoreProviderServices storeServices) throws NotSupportedExtensionException
proj
- ProyecciónfName
- Nombre del fichero ecwNotSupportedExtensionException
public RasterProvider load()
AbstractRasterProvider
load
in class AbstractRasterProvider
public boolean isOpen()
RasterProvider
isOpen
in interface RasterProvider
public void close()
DataStoreProvider
close
in interface RasterProvider
close
in class AbstractRasterProvider
public Transparency getTransparency()
RasterProvider
getTransparency
in interface RasterProvider
getTransparency
in class AbstractRasterProvider
public double getWidth()
AbstractRasterProvider
getWidth
in interface RasterProvider
getWidth
in class AbstractRasterProvider
public double getHeight()
AbstractRasterProvider
getHeight
in interface RasterProvider
getHeight
in class AbstractRasterProvider
public Extent getView()
AbstractRasterProvider
getView
in interface RasterProvider
getView
in class AbstractRasterProvider
public void setView(Extent e)
AbstractRasterProvider
setView
in class AbstractRasterProvider
e
- Extentpublic void loadBuffer(SpiRasterQuery query) throws ProcessInterruptedException, RasterDriverException
AbstractRasterProvider
SpiRasterQuery
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 AbstractRasterProvider
ProcessInterruptedException
RasterDriverException
public void reProject(ICoordTrans rp)
public int getBlockSize()
getBlockSize
in class AbstractRasterProvider
public Object readCompleteLine(int line, int band) throws InvalidSetViewException, FileNotOpenException, RasterDriverException
public Object readBlock(int pos, int blockHeight, double scale) throws InvalidSetViewException, FileNotOpenException, RasterDriverException, ProcessInterruptedException
RasterProvider
readBlock
in interface RasterProvider
InvalidSetViewException
FileNotOpenException
RasterDriverException
ProcessInterruptedException
public Object getData(int x, int y, int band) throws InvalidSetViewException, FileNotOpenException, RasterDriverException
AbstractRasterProvider
getData
in interface RasterProvider
getData
in class AbstractRasterProvider
x
- coordenada Xy
- coordenada YInvalidSetViewException
FileNotOpenException
RasterDriverException
public void refreshUpdate(int arg0, int arg1, double arg2, double arg3, double arg4, double arg5)
refreshUpdate
in interface com.ermapper.ecw.JNCSProgressiveUpdate
public void refreshUpdate(int arg0, int arg1, int arg2, int arg3, int arg4, int arg5)
refreshUpdate
in interface com.ermapper.ecw.JNCSProgressiveUpdate
public DataStoreColorInterpretation getColorInterpretation()
RasterProvider
getColorInterpretation
in interface RasterProvider
getColorInterpretation
in class AbstractRasterProvider
public int getOverviewCount(int band) throws BandAccessException, RasterDriverException
RasterProvider
getOverviewCount
in interface RasterProvider
BandAccessException
RasterDriverException
public int getOverviewWidth(int band, int overview) throws BandAccessException, RasterDriverException
RasterProvider
getOverviewWidth
in interface RasterProvider
getOverviewWidth
in class AbstractRasterProvider
BandAccessException
RasterDriverException
public int getOverviewHeight(int band, int overview) throws BandAccessException, RasterDriverException
RasterProvider
getOverviewHeight
in interface RasterProvider
getOverviewHeight
in class AbstractRasterProvider
BandAccessException
RasterDriverException
public boolean isOverviewsSupported()
AbstractRasterProvider
isOverviewsSupported
in interface RasterProvider
isOverviewsSupported
in class AbstractRasterProvider
public String getStringProjection() throws RasterDriverException
RasterDriverException
public String getWktProjection()
RasterProvider
getWktProjection
in interface RasterProvider
getWktProjection
in class AbstractRasterProvider
public String getProviderName()
DataStoreProvider
getProviderName
in interface CoverageStoreProvider
public void setStatus(RasterProvider provider)
RasterProvider
setStatus
in interface RasterProvider
public boolean isSupersamplingSupported()
public TileServer getTileServer()
RasterProvider
getTileServer
in interface RasterProvider
public void addFile(File file) throws InvalidSourceException
RasterProvider
addFile
in interface RasterProvider
InvalidSourceException
public void removeFile(File file)
RasterProvider
removeFile
in interface RasterProvider