Package org.gvsig.fmap.dal.raster
Interface RasterStore
- All Superinterfaces:
Cloneable,org.gvsig.tools.lang.Cloneable,org.gvsig.tools.observer.ComplexObservable,org.gvsig.tools.observer.ComplexWeakReferencingObservable,DataFactoryUnit,DataStore,org.gvsig.tools.dispose.Disposable,org.gvsig.tools.dynobject.DynObject,org.gvsig.tools.dynobject.DynObject_v2,org.gvsig.metadata.Metadata,org.gvsig.tools.observer.Observable,org.gvsig.tools.persistence.Persistent,org.gvsig.tools.service.spi.Services,org.gvsig.tools.visitor.Visitable,org.gvsig.tools.observer.WeakReferencingObservable
Store for rasters
- Author:
- dmartinezizquierdo
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringMay provide a dynamic method to get the Color Interpretationstatic final StringMay provide a dynamic method to get the Color Tablestatic final StringMay provide a dynamic method to get the legendFields inherited from interface org.gvsig.fmap.dal.DataStore
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, TIFF_PROVIDER_NAME -
Method Summary
Modifier and TypeMethodDescriptionvoidaddBand(RasterStore store, int band) Add a band from other store.voidaddBands(RasterStore store, List<Integer> bands) Add a list of bands from other store.voidRemove any band that does not belong to itself.createBandQuery(int band) Creates aBandQueryfrom band received as parameter.Returns a newRasterQueryassociated to this store.getBandDescriptor(int band) Getsof band received as parameter.invalid reference
BandsDescriptorintgetBands()Gets number of total bandsgetCache()org.gvsig.raster.lib.buffer.api.BufferDimensionsReturn the buffer dimensions of the complete store.org.gvsig.fmap.geom.primitive.EnvelopeReturns the envelope associated to this store bufferReturns this store's parameters.Returns all available data in the storegetRasterSet(RasterQuery rasterQuery) Returns a subset of data taking into account the properties and restrictions of the RasterQuery.voidgetRasterSet(RasterQuery dataQuery, org.gvsig.tools.observer.Observer observer) voidgetRasterSet(org.gvsig.tools.observer.Observer observer) booleanisOwnBand(int band) Return true if the band is own.booleanisTiled()voidremoveBand(int band) Remove a band.Methods inherited from interface org.gvsig.tools.lang.Cloneable
cloneMethods inherited from interface org.gvsig.tools.observer.ComplexObservable
beginComplexNotification, disableNotifications, enableNotifications, endComplexNotificationMethods inherited from interface org.gvsig.fmap.dal.DataStore
accept, accept, createQuery, createSelection, getChildren, getDataSet, getDataSet, getDataSet, getDataSet, getExplorer, getFullName, getInterval, getName, getProviderFactory, getProviderName, getResourcesStorage, getSelection, getStoresRepository, getTimes, getTimes, refresh, setSelection, useCacheMethods inherited from interface org.gvsig.tools.dispose.Disposable
disposeMethods inherited from interface org.gvsig.tools.dynobject.DynObject
clear, delegate, getDynClass, getDynValue, hasDynValue, implement, invokeDynMethod, invokeDynMethod, setDynValueMethods inherited from interface org.gvsig.tools.dynobject.DynObject_v2
hasDynMethodMethods inherited from interface org.gvsig.metadata.Metadata
getMetadataChildren, getMetadataID, getMetadataNameMethods inherited from interface org.gvsig.tools.observer.Observable
addObserver, deleteObserver, deleteObserversMethods inherited from interface org.gvsig.tools.persistence.Persistent
loadFromState, saveToState
-
Field Details
-
DYNMETHOD_GETLEGEND_NAME
May provide a dynamic method to get the legend- See Also:
-
DYNMETHOD_GETCOLORINTERPRETATION_NAME
May provide a dynamic method to get the Color Interpretation- See Also:
-
DYNMETHOD_GETCOLORTABLE_NAME
May provide a dynamic method to get the Color Table- See Also:
-
-
Method Details
-
getParameters
DataStoreParameters getParameters()Returns this store's parameters.- Specified by:
getParametersin interfaceDataStore- Returns:
DataStoreParameterscontaining this store's parameters
-
getRasterSet
Returns all available data in the store- Returns:
- RasterSet
- Throws:
DataException
-
getRasterSet
Returns a subset of data taking into account the properties and restrictions of the RasterQuery.- Parameters:
rasterQuery-RasterQuery-- Returns:
- RasterSet
- Throws:
DataException
-
createRasterQuery
RasterQuery createRasterQuery()Returns a newRasterQueryassociated to this store.- Returns:
- RasterQuery
-
getEnvelope
org.gvsig.fmap.geom.primitive.Envelope getEnvelope() throws DataException, org.gvsig.tools.locator.LocatorException, org.gvsig.fmap.geom.exception.CreateEnvelopeExceptionReturns the envelope associated to this store buffer- Returns:
- Envelope
- Throws:
DataExceptionorg.gvsig.fmap.geom.exception.CreateEnvelopeExceptionorg.gvsig.tools.locator.LocatorException
-
createBandQuery
Creates aBandQueryfrom band received as parameter.- Parameters:
band- Band to create BandQuery- Returns:
- BandQuery
-
getBandDescriptor
Getsof band received as parameter. If band does not haveinvalid reference
BandsDescriptorBandDescriptor, this method will return an empty.invalid reference
BandsDescriptor- Parameters:
band- Band to get itsinvalid reference
BandsDescriptor- Returns:
- BandDescriptor
-
getBands
int getBands()Gets number of total bands- Returns:
- Number of bands
-
getBandDescriptors
List<BandDescriptor> getBandDescriptors() -
getCache
RasterCache getCache() -
addBand
Add a band from other store. If the store is the same of main store will return a IllegalAttributeException- Parameters:
store-band-- Throws:
DataException
-
addBands
Add a list of bands from other store. If the store is the same of main store will return a IllegalAttributeException- Parameters:
store-bands-- Throws:
DataException
-
removeBand
void removeBand(int band) Remove a band. If band belongs to main store, will return a IllegalAttributeException- Parameters:
band-
-
clearAdditionalBands
void clearAdditionalBands()Remove any band that does not belong to itself. -
isOwnBand
boolean isOwnBand(int band) Return true if the band is own. If the band is from additional store, return false.- Parameters:
band-- Returns:
-
getDimensions
Return the buffer dimensions of the complete store.- Returns:
- Throws:
InitializeException
-
isTiled
boolean isTiled() -
getRasterSet
- Throws:
DataException
-
getRasterSet
void getRasterSet(RasterQuery dataQuery, org.gvsig.tools.observer.Observer observer) throws DataException - Throws:
DataException
-