Class SingleImageStore.Writable
java.lang.Object
org.apache.sis.storage.DataStore
org.apache.sis.internal.storage.URIDataStore
org.apache.sis.internal.storage.PRJDataStore
org.apache.sis.internal.storage.image.WorldFileStore
org.apache.sis.internal.storage.image.SingleImageStore
org.apache.sis.internal.storage.image.SingleImageStore.Writable
- All Implemented Interfaces:
AutoCloseable, ResourceOnFileSystem, StoreResource, DataSet, GridCoverageResource, Resource, WritableGridCoverageResource, Localized
- Enclosing class:
SingleImageStore
static final class SingleImageStore.Writable
extends SingleImageStore
implements WritableGridCoverageResource
The writable variant of
MultiImageStore.- Since:
- 1.2
- Version:
- 1.2
-
Nested Class Summary
Nested classes/interfaces inherited from class SingleImageStore
SingleImageStore.WritableNested classes/interfaces inherited from class WorldFileStore
WorldFileStore.ComponentsNested classes/interfaces inherited from class PRJDataStore
PRJDataStore.AuxiliaryContent, PRJDataStore.ProviderNested classes/interfaces inherited from interface WritableGridCoverageResource
WritableGridCoverageResource.CommonOption, WritableGridCoverageResource.Option -
Field Summary
Fields inherited from class WorldFileStore
CELL_ANCHOR, identifiers, MAIN_IMAGE, suffixFields inherited from class PRJDataStore
crs, encoding, PRJFields inherited from class URIDataStore
location -
Constructor Summary
ConstructorsConstructorDescriptionWritable(FormatFinder format) Creates a new store from the given file, URL or stream. -
Method Summary
Modifier and TypeMethodDescriptionvoidwrite(GridCoverage coverage, WritableGridCoverageResource.Option... options) Writes a new coverage in the data store for this resource.Methods inherited from class SingleImageStore
delegate, getEnvelope, getGridGeometry, getLoadingStrategy, getResolutions, getSampleDimensions, isComponentHidden, read, setLoadingStrategy, subsetMethods inherited from class WorldFileStore
close, components, components, createImageResource, getComponentFiles, getCurrentReader, getGridGeometry, getImageFormat, getMetadata, prepareReader, reader, remove, resources, setGridGeometryMethods inherited from class PRJDataStore
deleteAuxiliaryFile, getOpenParameters, listComponentFiles, readAuxiliaryFile, readPRJ, writeAuxiliaryFile, writePRJMethods inherited from class URIDataStore
addTitleOrIdentifier, getIdentifier, getOriginator, getSpecifiedPath, location, parametersMethods inherited from class DataStore
addListener, findResource, getDisplayName, getLocale, getNativeMetadata, getProvider, removeListener, setLocale, toStringMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface DataSet
getEnvelopeMethods inherited from interface GridCoverageResource
getGridGeometry, getLoadingStrategy, getResolutions, getSampleDimensions, read, setLoadingStrategy, subsetMethods inherited from interface Resource
addListener, getIdentifier, getMetadata, removeListener
-
Constructor Details
-
Writable
Writable(FormatFinder format) throws DataStoreException, IOException Creates a new store from the given file, URL or stream.- Parameters:
format- information about the storage (URL, stream, etc) and the reader/writer to use.- Throws:
DataStoreException- if an error occurred while opening the stream.IOException- if an error occurred while creating the image reader instance.
-
-
Method Details
-
write
public void write(GridCoverage coverage, WritableGridCoverageResource.Option... options) throws DataStoreException Writes a new coverage in the data store for this resource. If a coverage already exists for this resource, then it will be overwritten only if theTRUNCATEorUPDATEoption is specified.- Specified by:
writein interfaceWritableGridCoverageResource- Parameters:
coverage- new data to write in the data store for this resource.options- configuration of the write operation.- Throws:
DataStoreException- if another error occurred while writing data in the underlying data store.
-