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, storeBandList
ALPHA_BAND, BLUE_BAND, FILE, GREEN_BAND, MOSAIC, POSTGIS, RED_BAND, REMOTE
BASE_NEWPARAMETERS_PROVIDER_DEFINITION_FULLNAME, BASE_NEWPARAMETERS_PROVIDER_DEFINITION_NAME, BASE_PARAMETERS_PROVIDER_DEFINITION_FULLNAME, BASE_PARAMETERS_PROVIDER_DEFINITION_NAME, PROVIDER_PARAMTER_FULLNAME, PROVIDER_PARAMTER_NAME
FEATURE_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
|
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.
|
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, hasDynValue, implement, initializeBandList, intializePhase1, intializePhase2, invokeDynMethod, invokeDynMethod, isFileSupported, notifyChange, notifyChange, notifyChange, query, queryArray, refresh, registerMetadataDefinition, setDynValue, setExplorer, setRender, setSelection, setTimeSerials
dispose, dispose
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
dispose
public static final String PERSISTENT_NAME
public static final String PERSISTENT_DESCRIPTION
public void reload()
RasterDataStore
public void setProvider(RasterProvider provider)
provider
- public void setParameters(DataStoreParameters p)
RasterDataStore
public void setProvider(CoverageStoreProvider prov)
RasterDataStore
public String getName()
DataStore
public boolean needEnhanced()
RasterDataStore
public boolean isTiled()
RasterDataStore
public boolean isMosaic()
RasterDataStore
public Tile getTile(SpiRasterQuery q) throws TileGettingException
QueryableRaster
TileGettingException
public long getFileSize()
public double getHeight()
RasterStoreProperties
public double getWidth()
RasterStoreProperties
public double getCellSize()
RasterStoreProperties
public int getBandCount()
RasterStoreProperties
public int[] getDataType()
RasterStoreProperties
public BandList getBands()
RasterDataStore
public double getMinX()
public double getMinY()
public double getMaxX()
public double getMaxY()
public NoData getNoDataValue()
RasterStoreProperties
public void setNoDataValue(NoData value)
RasterDataStore
public Extent getExtent()
RasterStoreProperties
public Extent getExtentForRequest()
public Extent getLastSelectedView()
public ColorTable getColorTable(int i)
QueryableRaster
i
- Posición del rasterpublic ColorTable getColorTables()
public ColorTable getColorTable()
RasterStoreProperties
public void setColorTable(ColorTable colorTable)
colorTable
- public ColorTable getColorTable(String fileName)
QueryableRaster
fileName
- Nombre del ficheropublic Point2D rasterToWorld(Point2D pt)
RasterDataStore
pt
- Punto a transformarpublic Point2D worldToRaster(Point2D pt)
RasterDataStore
pt
- Punto a transformarpublic boolean isGeoreferenced()
RasterDataStore
public double getPixelSizeX()
RasterStoreProperties
public double getPixelSizeY()
RasterStoreProperties
public Object getData(int x, int y, int band) throws InvalidSetViewException, FileNotOpenException, RasterDriverException
RasterDataStore
InvalidSetViewException
FileNotOpenException
RasterDriverException
public String getWktProjection() throws RasterDriverException
RasterStoreProperties
RasterDriverException
public boolean isInside(Point2D p)
RasterDataStore
p
- Punto a calcularpublic RasterDataStore getDataStore()
QueryableRaster
public AffineTransform getAffineTransform(int band)
band
- public void setAffineTransform(AffineTransform transf)
RasterDataStore
public AffineTransform getOwnTransformation()
public boolean isRotated()
RasterDataStore
public void setDrawableBands(int[] db)
QueryableRaster
db
- int[]public int[] getDrawableBands()
QueryableRaster
public void clearDrawableBands()
QueryableRaster
public void addDrawableBand(int posRasterBuf, int imageBand)
QueryableRaster
posRasterBuf
- Posición del RasterBuf que queremos pintar.imageBand
- Banda de la imagen que se pintarápublic void deleteLayerFromCache()
RasterDataStore
public boolean isMultiFile()
RasterDataStore
public int getOverviewWidth(int band, int overview) throws BandAccessException, RasterDriverException
RasterDataStore
BandAccessException
RasterDriverException
public int getOverviewHeight(int band, int overview) throws BandAccessException, RasterDriverException
RasterDataStore
BandAccessException
RasterDriverException
public int getOverviewCount(int band) throws BandAccessException, RasterDriverException
RasterDataStore
BandAccessException
RasterDriverException
public boolean overviewsSupport()
RasterDataStore
public void saveGeoreferencingToRmf() throws RmfSerializerException
RasterDataStore
RmfSerializerException
public void saveSerialInfoToRmf(TimeSeries serialInfo) throws RmfSerializerException
AbstractRasterDataStore
saveSerialInfoToRmf
in class AbstractRasterDataStore
serialInfo
- object to saveRmfSerializerException
public void saveColorTableToRmf(ColorTable table) throws RmfSerializerException
RasterDataStore
saveColorTableToRmf
in interface RasterDataStore
saveColorTableToRmf
in class AbstractRasterDataStore
RmfSerializerException
public void saveGeoPointListToRmf(GeoPointList pointList) throws RmfSerializerException
RasterDataStore
saveGeoPointListToRmf
in interface RasterDataStore
saveGeoPointListToRmf
in class AbstractRasterDataStore
RmfSerializerException
public void saveROIFileListToRmf(List<File> fileList) throws RmfSerializerException
RasterDataStore
saveROIFileListToRmf
in interface RasterDataStore
saveROIFileListToRmf
in class AbstractRasterDataStore
RmfSerializerException
public List<File> getROIFileListFromRmf()
RasterDataStore
public boolean loadSerialInfoFromRmf(TimeSeries serialInfo)
AbstractRasterDataStore
loadSerialInfoFromRmf
in class AbstractRasterDataStore
public Extent getView()
RasterDataStore
public Extent getExtentWithoutRot()
RasterStoreProperties
public AffineTransform getOwnAffineTransform()
RasterDataStore
public AffineTransform getAffineTransform()
RasterDataStore
public IProjection getProjection()
RasterStoreProperties
public void setProjection(IProjection proj, boolean persist) throws RmfSerializerException
RasterStoreProperties
RmfSerializerException
public Statistics getStatistics()
RasterStoreProperties
public void setStatistics(Statistics stats) throws RmfSerializerException
RasterStoreProperties
RmfSerializerException
public HistogramComputer getHistogramComputer()
Histogramable
public Metadata getMetadata()
RasterStoreProperties
public Transparency getTransparency()
RasterStoreProperties
public ColorInterpretation getColorInterpretation()
RasterStoreProperties
public void setColorInterpretation(ColorInterpretation ci)
public boolean isReproyectable()
RasterDataStore
public String getMetadataName()
Metadata
public RasterDataStore cloneDataStore() throws CloneException
RasterDataStore
CloneException
public boolean isOpen()
RasterDataStore
public CoverageStoreProvider getProvider()
RasterDataStore
getProvider
in interface RasterDataStore
getProvider
in interface CoverageStoreProviderServices
getProvider
in class AbstractRasterDataStore
public String getInfoByPoint(double x, double y, ICancellable cancellable) throws InfoByPointException
RasterDataStore
x
- X Pixel positiony
- Y pixel positionInfoByPointException
public String getInfoByPoint(double x, double y, Extent bbox, int w, int h, ICancellable cancellable) throws InfoByPointException
RasterDataStore
x
- X Pixel positiony
- Y pixel positionw
- Width in pixels of the windowh
- Height in pixels of the windowInfoByPointException
public void goTo(int position) throws OperationNotSupportedException
TRasterStore
OperationNotSupportedException
public void selectNext() throws OperationNotSupportedException
TRasterStore
OperationNotSupportedException
public void selectPrev() throws OperationNotSupportedException
TRasterStore
OperationNotSupportedException
public void setTime(Time time) throws TimeException, OperationNotSupportedException
TRasterStore
public boolean isRasterEnclosed()
RasterDataStore
public Extent getCoordsInLevel(Point2D viewCenter, int level, int w, int h)
PyramidRasterStore
public Extent getCoordsInTheNearestLevel(Extent extent, int w, int h)
PyramidRasterStore
public int getZoomLevels()
PyramidRasterStore
public int getNearestLevel(double pixelSize)
PyramidRasterStore
public void setTileServer(Class<?> tileServer) throws InitializeException
RasterDataStore
InitializeException
public RasterDataParameters getInternalParameters()
RasterDataStore
public RasterDataStore newDataStore()
RasterDataStore
public RasterDataStore newNotTiledDataStore()
RasterDataStore
public URI[] getURIByProvider()
RasterDataStore
public long[] getFileSizeByProvider()
RasterDataStore
public int getProviderCount()
RasterDataStore
public int[] getBandCountByProvider()
RasterDataStore
public RasterDataParameters[] getDataParametersByProvider()
RasterDataStore
public Metadata[] getMetadataByProvider()
RasterDataStore
public int[] getOverviewCountByProvider(int band) throws BandAccessException
RasterDataStore
BandAccessException
public String[] getOverviewSizeByProvider(int band, int overview) throws BandAccessException
RasterDataStore
BandAccessException
public AffineTransform[] getAffineTransformByProvider()
RasterDataStore
public double[] getHeightByProvider()
RasterDataStore
public double[] getWidthByProvider()
RasterDataStore
public void addFile(File file) throws InvalidSourceException
RasterDataStore
InvalidSourceException
public void removeFile(File file)
RasterDataStore
public URI getURIByBand(int band)
RasterDataStore
public 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()
RasterStoreProperties
public GeoPointList getGeoPointList()
public void setGeoPointList(GeoPointList geoPointList)
public Envelope getFullEnvelope()
public List<ROI> getRois(String epsg) throws ROIException
RasterDataStore
ROIException
public List<ROI> getRois(IProjection defaultProjection) throws ROIException
RasterDataStore
ROIException
public void setRois(List<ROI> rois)
RasterDataStore
public void setROIsFiles(List<File> file) throws RmfSerializerException
file
- RmfSerializerException
public List<File> getROIsFiles() throws RmfSerializerException
RmfSerializerException
public void close()
RasterDataStore
close
in interface RasterDataStore
close
in class AbstractRasterDataStore
protected void finalize() throws Throwable
finalize
in class AbstractRasterDataStore
Throwable
public static void registerPersistence()
public void loadFromState(PersistentState state) throws PersistenceException
Persistent
PersistenceException
public void saveToState(PersistentState state) throws PersistenceException
Persistent
PersistenceException