public class DefaultRasterStore extends AbstractRasterDataStore
| Modifier and Type | Field and Description |
|---|---|
static String |
PERSISTENT_DESCRIPTION |
static String |
PERSISTENT_NAME |
currentQuery, explorer, metadata, nHeight, nWidth, parameters, provider, storeBandListALPHA_BAND, BLUE_BAND, FILE, GREEN_BAND, MOSAIC, POSTGIS, RED_BAND, REMOTEBASE_NEWPARAMETERS_PROVIDER_DEFINITION_FULLNAME, BASE_NEWPARAMETERS_PROVIDER_DEFINITION_NAME, BASE_PARAMETERS_PROVIDER_DEFINITION_FULLNAME, BASE_PARAMETERS_PROVIDER_DEFINITION_NAME, PROVIDER_PARAMTER_FULLNAME, PROVIDER_PARAMTER_NAMEFEATURE_METADATA_DEFINITION_NAME, METADATA_CONTAINERNAME, METADATA_CRS, METADATA_DEFINITION_NAME, METADATA_ENVELOPE, METADATA_FEATURETYPE, METADATA_PROVIDER, SPATIAL_METADATA_DEFINITION_NAME| Constructor and Description |
|---|
DefaultRasterStore()
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
void |
addDrawableBand(int posRasterBuf,
int imageBand)
Para este dataset asigna que bandas se pintaran
sobre el RasterBuf cuando se haga un update.
|
void |
addFile(File file)
Adds a new file.
|
void |
clearDrawableBands()
Removes the drawable bands
|
RasterDataStore |
cloneDataStore()
Clones this object
|
void |
close()
Closes this data store
|
void |
deleteLayerFromCache()
Deletes the cache of this layer composed by the files in the provider list
|
protected void |
finalize() |
AffineTransform |
getAffineTransform()
Obtiene la transformación afin aplicada en las peticiones con coordenadas
reales.
|
AffineTransform |
getAffineTransform(int band) |
AffineTransform[] |
getAffineTransformByProvider()
Gets a list of affine transforms
|
int |
getBandCount()
Obtiene el número de bandas del raster
|
int[] |
getBandCountByProvider()
Gets the number of bands by provider.
|
BandList |
getBands()
Returns the band list
|
double |
getCellSize()
Obtiene el tamaño de celda del raster
|
ColorInterpretation |
getColorInterpretation()
Obtiene el objeto que contiene que contiene la interpretación de
color por banda para el dataset seleccionado
|
ColorTable |
getColorTable()
Gets the color table.
|
ColorTable |
getColorTable(int i)
Obtiene la paleta correspondiente a uno de los ficheros que forman el GeoMultiRasterFile
|
ColorTable |
getColorTable(String fileName)
Obtiene la paleta correspondiente al nombre del fichero pasado por parámetro.
|
ColorTable |
getColorTables()
Obtiene la lista de paletas correspondiente a todos los ficheros que forman el GeoMultiRasterFile
|
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)
Gets a pixel
|
RasterDataParameters[] |
getDataParametersByProvider()
Gets a list of data parameters.
|
RasterDataStore |
getDataStore()
Gets the dataset of this queryable raster
|
int[] |
getDataType()
Obtiene el tipo de dato por banda
|
int[] |
getDrawableBands()
Obtiene las bandas dibujables cuando se solicita una acción de lectura de datos
|
Extent |
getExtent()
Obtiene el extent del raster.
|
Extent |
getExtentForRequest()
Este es el extent sobre el que se ajusta una petición para que esta no exceda el
extent máximo 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 |
getFileSize()
Calcula el tamaño de los ficheros en disco
|
long[] |
getFileSizeByProvider()
Gets a list of sizes.
|
Envelope |
getFullEnvelope() |
GeoPointList |
getGeoPointList()
Gets the list of geo points associated to this provider
|
double |
getHeight()
Obtiene la altura del raster en píxeles.
|
double[] |
getHeightByProvider()
Gets the height by provider
|
HistogramComputer |
getHistogramComputer()
Gets the object which computes the histogram
|
Image |
getImageLegend()
Gets the legend as a image.
|
String |
getInfoByPoint(double x,
double y,
Extent bbox,
int w,
int h,
ICancellable cancellable)
Gets the information in a pixel point.
|
String |
getInfoByPoint(double x,
double y,
ICancellable cancellable)
Gets the information in a real point
|
RasterDataParameters |
getInternalParameters()
This method will return the DataParameters if it has a simple provider behind.
|
Interval |
getInterval()
Gets the
Interval of the store, that means the temporal
interval where the store has valid data. |
Extent |
getLastSelectedView() |
double |
getMaxX()
Obtiene la coordenada Y máxima de toda la lista
|
double |
getMaxY()
Obtiene la coordenada Y máxima de toda la lista
|
Metadata |
getMetadata()
Gets the object with the metadata
|
Metadata[] |
getMetadataByProvider()
Gets a list of Metadata
|
String |
getMetadataName()
Returns the name of the Metadata, which allows to identify the type in
the Metadata registry.
|
double |
getMinX()
Obtiene la coordenada X mínima de toda la lista
|
double |
getMinY()
Obtiene la coordenada Y mínima de toda la lista
|
String |
getName()
Returns the name associated to the store.
|
int |
getNearestLevel(double pixelSize)
Gets the nearest level
|
NoData |
getNoDataValue()
Gets the nodata value for this raster
|
int |
getOverviewCount(int band)
Obtiene el número de overviews de una banda
|
int[] |
getOverviewCountByProvider(int band)
Gets the number of overviews by provider
|
int |
getOverviewHeight(int band,
int overview)
Obtiene el alto de una overview de una banda
|
String[] |
getOverviewSizeByProvider(int band,
int overview)
Gets the size of a overview in one band.
|
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.
|
AffineTransform |
getOwnTransformation()
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()
Gets the dataset projection
|
CoverageStoreProvider |
getProvider()
Gets a provider
|
int |
getProviderCount()
Returns the number of internal providers that it has
|
DataStoreProviderFactory |
getProviderFactory() |
List<File> |
getROIFileListFromRmf()
Gets the list of ROI files in the RMF
|
List<ROI> |
getRois(IProjection defaultProjection)
Gets the list of regions of interest
|
List<ROI> |
getRois(String epsg)
Gets the list of regions of interest
|
List<File> |
getROIsFiles() |
Statistics |
getStatistics()
Gets the statistics object
|
Tile |
getTile(SpiRasterQuery q)
Gets a tile of data if the provider is able to return a tile
|
Collection<?> |
getTimes()
Gets all the possible values of time for which the store has data.
|
Collection<?> |
getTimes(Interval interval)
Gets all the possible values of time for which the store has data
and intersects with an interval.
|
Transparency |
getTransparency()
Obtiene el estado de transparencia a partir de los estados de transparencia de todos
los ficheros que lo componen.
|
URI |
getURIByBand(int band)
Gets the URI of the source.
|
URI[] |
getURIByProvider()
Gets a list of file names or URI.
|
Extent |
getView()
Obtiene el extent asignado
|
double |
getWidth()
Obtiene la anchura del raster en píxeles.
|
double[] |
getWidthByProvider()
Gets the width by provider
|
String |
getWktProjection()
Obtiene la proyección asociada al raster.
|
int |
getZoomLevels()
Gets the number of zoom levels
|
void |
goTo(int position)
Goes to the selected position in the image list
|
boolean |
isGeoreferenced()
Obtiene el flag que dice si el raster está o no georreferenciado
|
boolean |
isInside(Point2D p)
Metodo que obtiene si un punto cae dentro de los límites de la extensión de la fuente de
datos raster o fuera de ellos.
|
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 DataStore is open and false if not
|
boolean |
isRasterEnclosed()
Some sevices has neither limits nor pixel size.
|
boolean |
isReproyectable()
Returns true if this data store is reproyectable or false if not
|
boolean |
isRotated()
Consulta de si un raster tiene rotación o no.
|
boolean |
isTiled()
Returns true if the data source is tiled
|
void |
loadFromState(PersistentState state)
Set the state of the object from the state passed as parameter.
|
boolean |
loadSerialInfoFromRmf(TimeSeries serialInfo)
Loads information about serials
|
boolean |
needEnhanced()
This function returns true if the image to be loaded needs a enhanced filter or
doesn't.
|
RasterDataStore |
newDataStore()
Creates a new dataset which has the same source reference
|
RasterDataStore |
newNotTiledDataStore()
Creates a new dataset which has the same source reference but insure
that the provider will be not tiled.
|
boolean |
overviewsSupport()
Informa de si el dataset soporta overviews o no.
|
Point2D |
rasterToWorld(Point2D pt)
Convierte un punto desde coordenadas pixel a coordenadas del mundo.
|
static void |
registerPersistence()
Register persistence
|
void |
reload()
Actions to reload the information of a layer such as, read rmf or
tfw files
|
void |
removeFile(File file)
Removes a file.
|
void |
saveColorTableToRmf(ColorTable table)
Saves a color table
|
void |
saveGeoPointListToRmf(GeoPointList pointList)
Saves the geo point list to a RMF file
|
void |
saveGeoreferencingToRmf()
Saves georeferencing information in the rmf file
|
void |
saveROIFileListToRmf(List<File> fileList)
Saves a list of files in the RMF file
|
void |
saveSerialInfoToRmf(TimeSeries serialInfo)
Saves information about serials
|
void |
saveToState(PersistentState state)
Saves the internal state of the object on the provided
PersistentState object.
|
void |
selectNext()
Selects the next image
|
void |
selectPrev()
Selects the previous image
|
void |
setAffineTransform(AffineTransform transf)
Asigna una transformación al raster para que se tenga en cuenta en la
asignación del setView.
|
void |
setColorInterpretation(ColorInterpretation ci) |
void |
setColorTable(ColorTable colorTable)
Sets the color table
|
void |
setDrawableBands(int[] db)
Asigna las bandas dibujables cuando se solicita una acción de lectura de datos
|
void |
setGeoPointList(GeoPointList geoPointList)
Sets the list of geo points associated to this provider
|
void |
setNoDataValue(NoData value)
Define el valor NoData asociado al raster.
|
void |
setParameters(DataStoreParameters p)
Sets the parameters
|
void |
setProjection(IProjection proj,
boolean persist)
Sets the dataset projection
|
void |
setProvider(CoverageStoreProvider prov)
Sets a provider
|
void |
setProvider(RasterProvider provider) |
void |
setRois(List<ROI> rois)
Sets the list of regions of interest
|
void |
setROIsFiles(List<File> file) |
void |
setStatistics(Statistics stats)
Sets the statistics object.
|
void |
setTileServer(Class<?> tileServer)
Sets a tile server to create a second level of cache.
|
void |
setTime(Time time)
Assigns the time for read information of the right source.
|
void |
useCache(String providerName,
DynObject parameters) |
Point2D |
worldToRaster(Point2D pt)
Convierte un punto desde del mundo a coordenadas pixel.
|
accept, accept, addObserver, adjustToExtent, beginComplexNotification, clear, createDefaultCoverageSelection, createQuery, createSelection, createVectorizeObject, delegate, deleteObserver, deleteObservers, disableNotifications, doDispose, enableNotifications, endComplexNotification, getChildren, getCoverageStore, getDataSet, getDataSet, getDataSet, getDataSet, getDefaultBandList, getDynClass, getDynValue, getExplorer, getFullName, getLastBuffer, getManager, getMetadataChildren, getMetadataID, getParameters, getProviderName, getRender, getSelection, getSourceType, getStore, getTimeSerials, hasDynMethod, hasDynValue, implement, initializeBandList, intializePhase1, intializePhase2, invokeDynMethod, invokeDynMethod, isFileSupported, notifyChange, notifyChange, notifyChange, query, queryArray, refresh, registerMetadataDefinition, setDynValue, setExplorer, setRender, setSelection, setTimeSerialsdispose, disposeclone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitdisposepublic static final String PERSISTENT_NAME
public static final String PERSISTENT_DESCRIPTION
public void reload()
RasterDataStorepublic void setProvider(RasterProvider provider)
provider - public void setParameters(DataStoreParameters p)
RasterDataStorepublic void setProvider(CoverageStoreProvider prov)
RasterDataStorepublic String getName()
DataStorepublic boolean needEnhanced()
RasterDataStorepublic boolean isTiled()
RasterDataStorepublic boolean isMosaic()
RasterDataStorepublic Tile getTile(SpiRasterQuery q) throws TileGettingException
QueryableRasterTileGettingExceptionpublic long getFileSize()
public double getHeight()
RasterStorePropertiespublic double getWidth()
RasterStorePropertiespublic double getCellSize()
RasterStorePropertiespublic int getBandCount()
RasterStorePropertiespublic int[] getDataType()
RasterStorePropertiespublic BandList getBands()
RasterDataStorepublic double getMinX()
public double getMinY()
public double getMaxX()
public double getMaxY()
public NoData getNoDataValue()
RasterStorePropertiespublic void setNoDataValue(NoData value)
RasterDataStorepublic Extent getExtent()
RasterStorePropertiespublic Extent getExtentForRequest()
public Extent getLastSelectedView()
public ColorTable getColorTable(int i)
QueryableRasteri - Posición del rasterpublic ColorTable getColorTables()
public ColorTable getColorTable()
RasterStorePropertiespublic void setColorTable(ColorTable colorTable)
colorTable - public ColorTable getColorTable(String fileName)
QueryableRasterfileName - Nombre del ficheropublic Point2D rasterToWorld(Point2D pt)
RasterDataStorept - Punto a transformarpublic Point2D worldToRaster(Point2D pt)
RasterDataStorept - Punto a transformarpublic boolean isGeoreferenced()
RasterDataStorepublic double getPixelSizeX()
RasterStorePropertiespublic double getPixelSizeY()
RasterStorePropertiespublic Object getData(int x, int y, int band) throws InvalidSetViewException, FileNotOpenException, RasterDriverException
RasterDataStoreInvalidSetViewExceptionFileNotOpenExceptionRasterDriverExceptionpublic String getWktProjection() throws RasterDriverException
RasterStorePropertiesRasterDriverExceptionpublic boolean isInside(Point2D p)
RasterDataStorep - Punto a calcularpublic RasterDataStore getDataStore()
QueryableRasterpublic AffineTransform getAffineTransform(int band)
band - public void setAffineTransform(AffineTransform transf)
RasterDataStorepublic AffineTransform getOwnTransformation()
public boolean isRotated()
RasterDataStorepublic void setDrawableBands(int[] db)
QueryableRasterdb - int[]public int[] getDrawableBands()
QueryableRasterpublic void clearDrawableBands()
QueryableRasterpublic void addDrawableBand(int posRasterBuf,
int imageBand)
QueryableRasterposRasterBuf - Posición del RasterBuf que queremos pintar.imageBand - Banda de la imagen que se pintarápublic void deleteLayerFromCache()
RasterDataStorepublic boolean isMultiFile()
RasterDataStorepublic int getOverviewWidth(int band,
int overview)
throws BandAccessException,
RasterDriverException
RasterDataStoreBandAccessExceptionRasterDriverExceptionpublic int getOverviewHeight(int band,
int overview)
throws BandAccessException,
RasterDriverException
RasterDataStoreBandAccessExceptionRasterDriverExceptionpublic int getOverviewCount(int band)
throws BandAccessException,
RasterDriverException
RasterDataStoreBandAccessExceptionRasterDriverExceptionpublic boolean overviewsSupport()
RasterDataStorepublic void saveGeoreferencingToRmf()
throws RmfSerializerException
RasterDataStoreRmfSerializerExceptionpublic void saveSerialInfoToRmf(TimeSeries serialInfo) throws RmfSerializerException
AbstractRasterDataStoresaveSerialInfoToRmf in class AbstractRasterDataStoreserialInfo - object to saveRmfSerializerExceptionpublic void saveColorTableToRmf(ColorTable table) throws RmfSerializerException
RasterDataStoresaveColorTableToRmf in interface RasterDataStoresaveColorTableToRmf in class AbstractRasterDataStoreRmfSerializerExceptionpublic void saveGeoPointListToRmf(GeoPointList pointList) throws RmfSerializerException
RasterDataStoresaveGeoPointListToRmf in interface RasterDataStoresaveGeoPointListToRmf in class AbstractRasterDataStoreRmfSerializerExceptionpublic void saveROIFileListToRmf(List<File> fileList) throws RmfSerializerException
RasterDataStoresaveROIFileListToRmf in interface RasterDataStoresaveROIFileListToRmf in class AbstractRasterDataStoreRmfSerializerExceptionpublic List<File> getROIFileListFromRmf()
RasterDataStorepublic boolean loadSerialInfoFromRmf(TimeSeries serialInfo)
AbstractRasterDataStoreloadSerialInfoFromRmf in class AbstractRasterDataStorepublic Extent getView()
RasterDataStorepublic Extent getExtentWithoutRot()
RasterStorePropertiespublic AffineTransform getOwnAffineTransform()
RasterDataStorepublic AffineTransform getAffineTransform()
RasterDataStorepublic IProjection getProjection()
RasterStorePropertiespublic void setProjection(IProjection proj, boolean persist) throws RmfSerializerException
RasterStorePropertiesRmfSerializerExceptionpublic Statistics getStatistics()
RasterStorePropertiespublic void setStatistics(Statistics stats) throws RmfSerializerException
RasterStorePropertiesRmfSerializerExceptionpublic HistogramComputer getHistogramComputer()
Histogramablepublic Metadata getMetadata()
RasterStorePropertiespublic Transparency getTransparency()
RasterStorePropertiespublic ColorInterpretation getColorInterpretation()
RasterStorePropertiespublic void setColorInterpretation(ColorInterpretation ci)
public boolean isReproyectable()
RasterDataStorepublic String getMetadataName()
Metadatapublic RasterDataStore cloneDataStore() throws CloneException
RasterDataStoreCloneExceptionpublic boolean isOpen()
RasterDataStorepublic CoverageStoreProvider getProvider()
RasterDataStoregetProvider in interface RasterDataStoregetProvider in interface CoverageStoreProviderServicesgetProvider in class AbstractRasterDataStorepublic String getInfoByPoint(double x, double y, ICancellable cancellable) throws InfoByPointException
RasterDataStorex - X Pixel positiony - Y pixel positionInfoByPointExceptionpublic String getInfoByPoint(double x, double y, Extent bbox, int w, int h, ICancellable cancellable) throws InfoByPointException
RasterDataStorex - X Pixel positiony - Y pixel positionw - Width in pixels of the windowh - Height in pixels of the windowInfoByPointExceptionpublic void goTo(int position)
throws OperationNotSupportedException
TRasterStoreOperationNotSupportedExceptionpublic void selectNext()
throws OperationNotSupportedException
TRasterStoreOperationNotSupportedExceptionpublic void selectPrev()
throws OperationNotSupportedException
TRasterStoreOperationNotSupportedExceptionpublic void setTime(Time time) throws TimeException, OperationNotSupportedException
TRasterStorepublic boolean isRasterEnclosed()
RasterDataStorepublic Extent getCoordsInLevel(Point2D viewCenter, int level, int w, int h)
PyramidRasterStorepublic Extent getCoordsInTheNearestLevel(Extent extent, int w, int h)
PyramidRasterStorepublic int getZoomLevels()
PyramidRasterStorepublic int getNearestLevel(double pixelSize)
PyramidRasterStorepublic void setTileServer(Class<?> tileServer) throws InitializeException
RasterDataStoreInitializeExceptionpublic RasterDataParameters getInternalParameters()
RasterDataStorepublic RasterDataStore newDataStore()
RasterDataStorepublic RasterDataStore newNotTiledDataStore()
RasterDataStorepublic URI[] getURIByProvider()
RasterDataStorepublic long[] getFileSizeByProvider()
RasterDataStorepublic int getProviderCount()
RasterDataStorepublic int[] getBandCountByProvider()
RasterDataStorepublic RasterDataParameters[] getDataParametersByProvider()
RasterDataStorepublic Metadata[] getMetadataByProvider()
RasterDataStorepublic int[] getOverviewCountByProvider(int band)
throws BandAccessException
RasterDataStoreBandAccessExceptionpublic String[] getOverviewSizeByProvider(int band, int overview) throws BandAccessException
RasterDataStoreBandAccessExceptionpublic AffineTransform[] getAffineTransformByProvider()
RasterDataStorepublic double[] getHeightByProvider()
RasterDataStorepublic double[] getWidthByProvider()
RasterDataStorepublic void addFile(File file) throws InvalidSourceException
RasterDataStoreInvalidSourceExceptionpublic void removeFile(File file)
RasterDataStorepublic URI getURIByBand(int band)
RasterDataStorepublic Interval getInterval()
Interval of the store, that means the temporal
interval where the store has valid data.
In raster this method has sense in a mosaic. Therefore this has to be implemented
by the provider.public Collection<?> getTimes()
Time objects.public Collection<?> getTimes(Interval interval)
interval - the interval of timeTime objects.public Image getImageLegend()
RasterStorePropertiespublic GeoPointList getGeoPointList()
public void setGeoPointList(GeoPointList geoPointList)
public Envelope getFullEnvelope()
public List<ROI> getRois(String epsg) throws ROIException
RasterDataStoreROIExceptionpublic List<ROI> getRois(IProjection defaultProjection) throws ROIException
RasterDataStoreROIExceptionpublic void setRois(List<ROI> rois)
RasterDataStorepublic void setROIsFiles(List<File> file) throws RmfSerializerException
file - RmfSerializerExceptionpublic List<File> getROIsFiles() throws RmfSerializerException
RmfSerializerExceptionpublic void close()
RasterDataStoreclose in interface RasterDataStoreclose in class AbstractRasterDataStoreprotected void finalize()
throws Throwable
finalize in class AbstractRasterDataStoreThrowablepublic static void registerPersistence()
public void loadFromState(PersistentState state) throws PersistenceException
PersistentPersistenceExceptionpublic void saveToState(PersistentState state) throws PersistenceException
PersistentPersistenceExceptionpublic void useCache(String providerName, DynObject parameters) throws DataException
DataExceptionpublic DataStoreProviderFactory getProviderFactory()