public interface RasterProvider extends CoverageStoreProvider, Histogramable
Modifier and Type | Method and Description |
---|---|
void |
addFile(File file)
Adds a new file.
|
RasterProvider |
cloneProvider()
Clone this RasterProvider
|
void |
close()
Cierra los raster asociados.
|
void |
deleteLayerFromCache()
Deletes the cache of this layer composed by the files in the provider list
|
AffineTransform |
getAffineTransform()
Obtiene la transformación afin aplicada en las peticiones con coordenadas
reales.
|
int |
getBandCount()
Obtiene el número de bandas del raster
|
int[] |
getBandCountByProvider()
Gets the number of bands by provider.
|
int |
getBandPositionByProvider(int band)
Selecting a number of band this function returns the number of band
inside the file.
|
double |
getCellSize()
Gets the pixel size
|
ColorInterpretation |
getColorInterpretation()
Gets the object with the color interpretation by band
|
ColorTable |
getColorTable()
Gets the
ColorTable or null if the raster
does not have |
Object |
getData(int x,
int y,
int band)
Obtiene el valor del raster en la coordenada que se le pasa.
|
RasterDataParameters |
getDataParameters()
Returs the DataParameters
|
Buffer |
getDataSet(SpiRasterQuery query)
Gets the set of data selected in the
RasterQuery |
int[] |
getDataType()
Obtiene el tipo de dato por banda
|
Extent |
getExtent()
Obtiene el extent del raster.
|
Extent |
getExtentWithoutRot()
Este es el extent sobre el que se ajusta una petición para que esta no
exceda el extent máximo del raster.
|
long[] |
getFileSizeByProvider()
Gets a list of sizes.
|
String |
getFileSuffix()
Gets the suffix of the source file
|
String[] |
getFormatList()
Gets the list of supported formats
|
GeoPointList |
getGeoPointList()
Gets the list of geo points associated to this provider
|
double |
getHeight()
Obtiene la altura del raster en píxeles.
|
Image |
getImageLegend()
Gets the legend as a image.
|
String |
getInfoByPoint(double x,
double y,
ICancellable cancellable)
Gets the information in a real point
|
String |
getInfoByPoint(int x,
int y,
Extent bbox,
int w,
int h,
ICancellable cancellable)
Gets the information in a pixel point.
|
RasterProvider |
getInternalProvider(int i)
Gets the internal provider of the i position
|
int |
getInternalProviderCount()
Returns the number of internal providers that it has
|
Metadata |
getMetadata()
Gets a DatasetMetadata object
|
NoData |
getNoDataValue()
Gets the nodata value.
|
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
|
AffineTransform |
getOwnAffineTransform()
Obtiene la matriz de transformación del propio raster.
|
double |
getPixelSizeX()
Obtiene el tamaño de pixel en X
|
double |
getPixelSizeY()
Obtiene el tamaño de pixel en Y
|
IProjection |
getProjection()
Sets the provider projection
|
File |
getRMFFile()
Gets the rmf file path.
|
int |
getSourceType()
Returns the source type (FILE, POSTGIS, REMOTE,...)
|
Statistics |
getStatistics()
Gets statistics of this provider
|
int |
getSubdatasetCount()
Gets the number of subdatasets
|
TileServer |
getTileServer()
Gets the tile cache data server
|
TimeSeries |
getTimeSerials()
Gets the time serial information
|
Transparency |
getTransparency()
Obtiene el estado de transparencia a partir de los estados de transparencia de todos
los ficheros que lo componen.
|
URI |
getURI()
Gets the uniform resource identifier
|
URI |
getURIByBand(int band)
Gets the URI of the source.
|
URI[] |
getURIByProvider()
Gets a list of file names or URI.
|
URI |
getURIOfFirstProvider()
Gets the URI of the first provider.
|
Extent |
getView()
Obtiene el extent asignado
|
double |
getWidth()
Obtiene la anchura del raster en píxeles.
|
String |
getWktProjection()
Obtiene la proyección asociada al raster.
|
boolean |
isGeoreferenced()
Obtiene el flag que dice si el raster está o no georreferenciado
|
boolean |
isInside(Point2D p)
Informa de si el punto en coordenadas del mundo real pasado por parámetro cae dentro del
raster o fuera.
|
boolean |
isMosaic()
Returns true if the source of data is a mosaic of images
|
boolean |
isMultiFile()
Returns true if the provider has several files and all of them has the same extension
|
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
|
boolean |
isRotated()
Returns true if this raster has rotation and false if don't
|
boolean |
isTiled()
Returns true if the provider support tiles
|
boolean |
isTimeSupported()
Returns true if this provider supports time.
|
Object |
loadObjectFromRmf(Class<?> class1,
Object value)
Carga un objecto desde un serializador usando el tipo del mismo objeto pasado por parametro.
|
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)
Deprecated.
This method is only used to generate statistics. The statistics have to change the way in
which are calculated. Then this function will be eliminated.
|
void |
reload() |
void |
removeFile(File file)
Removes a file.
|
void |
saveObjectToRmf(Class<?> class1,
Object value)
Guarda en el RMF el objecto actual en caso de que exista un serializador para el.
|
void |
selectSubdataset()
Selects the subdataset.
|
void |
setAffineTransform(AffineTransform t)
Asigna una transformación al raster para que se tenga en cuenta en la
asignación del setView.
|
void |
setColorInterpretation(ColorInterpretation ci)
Assigns the object with the color interpretation by band
|
void |
setColorTable(ColorTable value)
Define el objeto paleta.
|
void |
setGeoPointList(GeoPointList geoPointList)
Sets the list of geo points associated to this provider
|
void |
setNoDataValue(NoData value)
Sets the nodata value
|
void |
setProjection(IProjection proj,
boolean persist)
Gets the provider projection
|
void |
setStatistics(Statistics stats)
Sets the statistics of this provider.
|
void |
setStatus(RasterProvider provider)
Sets the status information using other provider of the same type.
|
void |
setTimeSerials(TimeSeries serialInfo)
Sets the time serial information
|
Point2D |
worldToRaster(Point2D pt)
Convierte un punto desde del mundo a coordenadas pixel.
|
allowWrite, getProviderName, getStoreServices
getChilds, getExplorer, getFullName, getInterval, getName, getResource, getSourceId, getTimes, getTimes, open, refresh
hasDynMethod
clear, delegate, getDynClass, getDynValue, hasDynValue, implement, invokeDynMethod, invokeDynMethod, setDynValue
dispose
getHistogramComputer
void reload()
long[] getFileSizeByProvider()
URI[] getURIByProvider()
URI getURIOfFirstProvider()
int[] getBandCountByProvider()
int getBandPositionByProvider(int band)
band
- int getInternalProviderCount()
RasterProvider getInternalProvider(int i)
i
- URI getURIByBand(int band)
band
- URI getURI()
int getSubdatasetCount()
void addFile(File file) throws InvalidSourceException
file
- InvalidSourceException
void removeFile(File file)
file
- int getBandCount()
int[] getDataType()
double getHeight()
double getWidth()
boolean isReproyectable()
boolean isRotated()
boolean isOpen()
boolean isTimeSupported()
boolean isTiled()
boolean isOverviewsSupported()
int getOverviewCount(int band) throws BandAccessException, RasterDriverException
BandAccessException
RasterDriverException
int getOverviewWidth(int band, int overview) throws BandAccessException, RasterDriverException
BandAccessException
RasterDriverException
int getOverviewHeight(int band, int overview) throws BandAccessException, RasterDriverException
BandAccessException
RasterDriverException
boolean isInside(Point2D p)
p
- Punto a comprobar en coordenadas realesNoData getNoDataValue()
Statistics getStatistics()
void setStatistics(Statistics stats) throws RmfSerializerException
RmfSerializerException
Extent getExtent()
String getFileSuffix()
Extent getExtentWithoutRot()
AffineTransform getOwnAffineTransform()
AffineTransform getAffineTransform()
IProjection getProjection()
void setProjection(IProjection proj, boolean persist) throws RmfSerializerException
RmfSerializerException
Extent getView()
Metadata getMetadata()
ColorInterpretation getColorInterpretation()
void setColorInterpretation(ColorInterpretation ci)
ci
- void setColorTable(ColorTable value)
value
- ColorTable getColorTable()
ColorTable
or null if the raster
does not haveImage getImageLegend()
Transparency getTransparency()
void close()
Point2D rasterToWorld(Point2D pt)
pt
- Punto a transformarPoint2D worldToRaster(Point2D pt)
pt
- Punto a transformarvoid setAffineTransform(AffineTransform t)
t
- Transformación afín a aplicardouble getCellSize()
double getPixelSizeX()
double getPixelSizeY()
Object getData(int x, int y, int band) throws InvalidSetViewException, FileNotOpenException, RasterDriverException
x
- coordenada Xy
- coordenada YInvalidSetViewException
FileNotOpenException
RasterDriverException
String getWktProjection() throws RasterDriverException
RasterDriverException
void setNoDataValue(NoData value)
boolean isGeoreferenced()
boolean isMultiFile()
boolean isMosaic()
void deleteLayerFromCache()
RasterProvider cloneProvider() throws CloneException
CloneException
RasterDataParameters getDataParameters()
Object readBlock(int pos, int blockHeight, double scale) throws InvalidSetViewException, FileNotOpenException, RasterDriverException, ProcessInterruptedException
Object loadObjectFromRmf(Class<?> class1, Object value) throws RmfSerializerException
class1
- value
- RmfSerializerException
void saveObjectToRmf(Class<?> class1, Object value) throws RmfSerializerException
class1
- value
- RmfSerializerException
void setStatus(RasterProvider provider)
provider
- String getInfoByPoint(double x, double y, ICancellable cancellable) throws InfoByPointException
x
- y
- RemoteServiceException
InfoByPointException
String getInfoByPoint(int x, int y, Extent bbox, int w, int h, ICancellable cancellable) throws InfoByPointException
x
- X Pixel positiony
- Y pixel positionbbox
- Bounding box of the windoww
- Width in pixels of the windowh
- Height in pixels of the windowcancellable
- RemoteServiceException
InfoByPointException
TileServer getTileServer()
boolean isRasterEnclosed()
File getRMFFile()
void selectSubdataset()
String[] getFormatList()
int getSourceType()
boolean needEnhanced()
TimeSeries getTimeSerials() throws RmfSerializerException
RmfSerializerException
void setTimeSerials(TimeSeries serialInfo) throws RmfSerializerException
RmfSerializerException
Buffer getDataSet(SpiRasterQuery query) throws ProcessInterruptedException, RasterDriverException
RasterQuery
q
- RasterDriverException
ProcessInterruptedException
GeoPointList getGeoPointList()
void setGeoPointList(GeoPointList geoPointList)