public interface RasterDataStore extends DataStore, TRasterStore, PyramidRasterStore, RasterStoreProperties, Histogramable
| Modifier and Type | Field and Description |
|---|---|
static int |
ALPHA_BAND |
static int |
BLUE_BAND |
static int |
FILE
Tipos de raster dependiendo de su fuente
|
static int |
GREEN_BAND |
static int |
MOSAIC |
static int |
POSTGIS |
static int |
RED_BAND |
static int |
REMOTE |
CSV_PROVIDER_NAME, DBASE_PROVIDER_NAME, FEATURE_METADATA_DEFINITION_NAME, GEOPACKAGE_PROVIDER_NAME, H2SPATIAL_PROVIDER_NAME, MDB_PROVIDER_NAME, METADATA_CONTAINERNAME, METADATA_CRS, METADATA_DEFINITION_NAME, METADATA_ENVELOPE, METADATA_FEATURETYPE, METADATA_PROVIDER, SHAPE_PROVIDER_NAME, SPATIAL_METADATA_DEFINITION_NAME| Modifier and Type | Method and Description |
|---|---|
void |
addFile(java.io.File file)
Adds a new file.
|
RasterDataStore |
cloneDataStore()
Clones this object
|
void |
close()
Closes this data store
|
Vectorization |
createVectorizeObject()
Gets an object which vectorize a raster
|
void |
deleteLayerFromCache()
Deletes the cache of this layer composed by the files in the provider list
|
java.awt.geom.AffineTransform |
getAffineTransform()
Obtiene la transformación afin aplicada en las peticiones con coordenadas
reales.
|
java.awt.geom.AffineTransform[] |
getAffineTransformByProvider()
Gets a list of affine transforms
|
int[] |
getBandCountByProvider()
Gets the number of bands by provider.
|
BandList |
getBands()
Returns the band list
|
java.lang.Object |
getData(int x,
int y,
int band)
Gets a pixel
|
RasterDataParameters[] |
getDataParametersByProvider()
Gets a list of data parameters.
|
BandList |
getDefaultBandList()
Gets a default band list for this provider
|
long |
getFileSize()
Obtiene el Tamaño de cada fichero de que consta el raster en bytes.
|
long[] |
getFileSizeByProvider()
Gets a list of sizes.
|
GeoPointList |
getGeoPointList()
Gets the list of geo points associated to this provider
|
double[] |
getHeightByProvider()
Gets the height by provider
|
java.lang.String |
getInfoByPoint(double x,
double y,
Extent extent,
int w,
int h,
ICancellable cancellable)
Gets the information in a pixel point.
|
java.lang.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.
|
Buffer |
getLastBuffer()
Returns the last buffer loaded if the flag storeLastBuffer in the query is true
|
Metadata[] |
getMetadataByProvider()
Gets a list of Metadata
|
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
|
java.lang.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
|
java.awt.geom.AffineTransform |
getOwnAffineTransform()
Obtiene la matriz de transformación del propio raster.
|
CoverageStoreProvider |
getProvider()
Gets a provider
|
int |
getProviderCount()
Returns the number of internal providers that it has
|
Render |
getRender()
Builds an render object using this RasterDataStore
|
java.util.List<java.io.File> |
getROIFileListFromRmf()
Gets the list of ROI files in the RMF
|
java.util.List<ROI> |
getRois(IProjection defaultProjection)
Gets the list of regions of interest
|
java.util.List<ROI> |
getRois(java.lang.String epsg)
Gets the list of regions of interest
|
int |
getSourceType()
Returns the source type (FILE, POSTGIS, REMOTE,...)
|
java.net.URI |
getURIByBand(int band)
Gets the URI of the source.
|
java.net.URI[] |
getURIByProvider()
Gets a list of file names or URI.
|
Extent |
getView()
Obtiene el extent asignado
|
double[] |
getWidthByProvider()
Gets the width by provider
|
boolean |
isFileSupported(java.lang.String fName)
Tipo de fichero soportado.
|
boolean |
isGeoreferenced()
Obtiene el flag que dice si el raster está o no georreferenciado
|
boolean |
isInside(java.awt.geom.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
|
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.
|
Buffer |
query(RasterQuery query)
Makes a request to load a buffer of data.
|
java.lang.Object[] |
queryArray(RasterQuery query)
Makes a request to load a buffer of data.
|
java.awt.geom.Point2D |
rasterToWorld(java.awt.geom.Point2D pt)
Convierte un punto desde coordenadas pixel a coordenadas del mundo.
|
void |
reload()
Actions to reload the information of a layer such as, read rmf or
tfw files
|
void |
removeFile(java.io.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(java.util.List<java.io.File> fileList)
Saves a list of files in the RMF file
|
void |
setAffineTransform(java.awt.geom.AffineTransform transf)
Asigna una transformación al raster para que se tenga en cuenta en la
asignación del setView.
|
void |
setExplorer(RasterDataServerExplorer explorer)
Sets the explorer
|
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 |
setProvider(CoverageStoreProvider prov)
Sets a provider
|
void |
setRender(Render render)
Assigns a render object
|
void |
setRois(java.util.List<ROI> rois)
Sets the list of regions of interest
|
void |
setTileServer(java.lang.Class<?> tileServer)
Sets a tile server to create a second level of cache.
|
java.awt.geom.Point2D |
worldToRaster(java.awt.geom.Point2D pt)
Convierte un punto desde del mundo a coordenadas pixel.
|
accept, accept, createQuery, createSelection, getCache, getChildren, getDataSet, getDataSet, getDataSet, getDataSet, getExplorer, getFullName, getFullNameQuietly, getInterval, getName, getNameQuietly, getParameters, getProviderFactory, getProviderName, getResourcesStorage, getSelection, getStoresRepository, getTimes, getTimes, refresh, setSelection, useCachebeginComplexNotification, disableNotifications, enableNotifications, endComplexNotificationaddObserver, deleteObserver, deleteObserversloadFromState, saveToStategetMetadataChildren, getMetadataID, getMetadataNamedisposehasDynMethodclear, clone, delegate, getDynClass, getDynValue, hasDynValue, implement, invokeDynMethod, invokeDynMethod, setDynValuegetTimeSerials, goTo, selectNext, selectPrev, setTime, setTimeSerialsgetCoordsInLevel, getCoordsInTheNearestLevel, getNearestLevel, getZoomLevelsgetBandCount, getCellSize, getColorInterpretation, getColorTable, getDataType, getExtent, getExtentWithoutRot, getHeight, getHistogramComputer, getImageLegend, getMetadata, getName, getNoDataValue, getPixelSizeX, getPixelSizeY, getProjection, getStatistics, getTransparency, getWidth, getWktProjection, setColorInterpretation, setProjection, setStatisticsgetHistogramComputerstatic final int RED_BAND
static final int GREEN_BAND
static final int BLUE_BAND
static final int ALPHA_BAND
static final int FILE
static final int POSTGIS
static final int REMOTE
static final int MOSAIC
void reload()
BandList getDefaultBandList()
RasterDataParameters[] getDataParametersByProvider()
long[] getFileSizeByProvider()
java.net.URI[] getURIByProvider()
int[] getBandCountByProvider()
Metadata[] getMetadataByProvider()
int[] getOverviewCountByProvider(int band)
throws BandAccessException
number - of bandBandAccessExceptionjava.lang.String[] getOverviewSizeByProvider(int band,
int overview)
throws BandAccessException
band - BandAccessExceptionjava.awt.geom.AffineTransform[] getAffineTransformByProvider()
double[] getHeightByProvider()
double[] getWidthByProvider()
java.net.URI getURIByBand(int band)
band - int getProviderCount()
void addFile(java.io.File file)
throws InvalidSourceException
file - InvalidSourceExceptionvoid removeFile(java.io.File file)
file - void setNoDataValue(NoData value)
Extent getView()
RasterDataStore newDataStore()
RasterDataStore newNotTiledDataStore()
long getFileSize()
java.awt.geom.Point2D rasterToWorld(java.awt.geom.Point2D pt)
pt - Punto a transformarjava.awt.geom.Point2D worldToRaster(java.awt.geom.Point2D pt)
pt - Punto a transformarboolean isInside(java.awt.geom.Point2D p)
p - Punto a calcularboolean isTiled()
boolean isMultiFile()
boolean isMosaic()
java.awt.geom.AffineTransform getOwnAffineTransform()
java.awt.geom.AffineTransform getAffineTransform()
void setAffineTransform(java.awt.geom.AffineTransform transf)
t - Transformación afín a aplicarVectorization createVectorizeObject() throws QueryException, ProcessInterruptedException
RasterDriverExceptionProcessInterruptedException - When the object Vectorization is built the raster data buffer is loaded.
This operation can be interruptedQueryExceptionRender getRender()
void setRender(Render render)
render - void saveGeoreferencingToRmf()
throws RmfSerializerException
RmfSerializerExceptionvoid saveColorTableToRmf(ColorTable table) throws RmfSerializerException
table - RmfSerializerExceptionvoid saveGeoPointListToRmf(GeoPointList pointList) throws RmfSerializerException
pointList - RmfSerializerExceptionvoid saveROIFileListToRmf(java.util.List<java.io.File> fileList)
throws RmfSerializerException
fileList - RmfSerializerExceptionjava.util.List<java.io.File> getROIFileListFromRmf()
RmfSerializerExceptionboolean isFileSupported(java.lang.String fName)
fName - Fichero rasterboolean isOpen()
boolean isGeoreferenced()
boolean isReproyectable()
boolean isRotated()
int getOverviewCount(int band)
throws BandAccessException,
RasterDriverException
BandAccessExceptionRasterDriverExceptionboolean overviewsSupport()
int getOverviewWidth(int band,
int overview)
throws BandAccessException,
RasterDriverException
BandAccessExceptionRasterDriverExceptionint getOverviewHeight(int band,
int overview)
throws BandAccessException,
RasterDriverException
BandAccessExceptionRasterDriverExceptionBandList getBands()
RasterDataStore cloneDataStore() throws CloneException
CloneExceptionCoverageStoreProvider getProvider()
void setProvider(CoverageStoreProvider prov)
void deleteLayerFromCache()
void setParameters(DataStoreParameters p)
p - int getSourceType()
RasterDataParameters getInternalParameters()
void setExplorer(RasterDataServerExplorer explorer)
explorer - void close()
throws CloseException
CloseExceptionBuffer getLastBuffer()
java.lang.Object getData(int x,
int y,
int band)
throws InvalidSetViewException,
FileNotOpenException,
RasterDriverException
x - y - band - InvalidSetViewExceptionFileNotOpenExceptionRasterDriverExceptionjava.lang.Object[] queryArray(RasterQuery query) throws ProcessInterruptedException, QueryException
query - ProcessInterruptedExceptionQueryExceptionBuffer query(RasterQuery query) throws ProcessInterruptedException, QueryException
query - ProcessInterruptedExceptionQueryExceptionvoid setTileServer(java.lang.Class<?> tileServer)
throws InitializeException
tileServer - InitializeExceptionboolean isRasterEnclosed()
boolean needEnhanced()
java.lang.String getInfoByPoint(double x,
double y,
ICancellable cancellable)
throws InfoByPointException
x - X Pixel positiony - Y pixel positionInfoByPointExceptionjava.lang.String getInfoByPoint(double x,
double y,
Extent extent,
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 - RemoteServiceExceptionInfoByPointExceptionGeoPointList getGeoPointList()
void setGeoPointList(GeoPointList geoPointList)
java.util.List<ROI> getRois(IProjection defaultProjection) throws ROIException
defaultProjection - ROIExceptionjava.util.List<ROI> getRois(java.lang.String epsg) throws ROIException
defaultProjection - ROIExceptionvoid setRois(java.util.List<ROI> rois)
rois -