public class GeoTiffStore extends DataStore
Defined in the sis-geotiff
module
Constructor and Description |
---|
GeoTiffStore(GeoTiffStoreProvider provider,
StorageConnector connector)
Creates a new GeoTIFF store from the given file, URL or stream object.
|
Modifier and Type | Method and Description |
---|---|
void |
close()
Closes this GeoTIFF store and releases any underlying resources.
|
Metadata |
getMetadata()
Returns information about the dataset as a whole.
|
ParameterValueGroup |
getOpenParameters()
Returns the parameters used to open this GeoTIFF data store.
|
addWarningListener, findResource, getDisplayName, getLocale, getProvider, removeWarningListener, setLocale
public GeoTiffStore(GeoTiffStoreProvider provider, StorageConnector connector) throws DataStoreException
StorageConnector.closeAllExcept(Object)
,
keeping open only the needed resource.provider
- the factory that created this DataStore
instance, or null
if unspecified.connector
- information about the storage (URL, stream, etc).DataStoreException
- if an error occurred while opening the GeoTIFF file.public Metadata getMetadata() throws DataStoreException
getMetadata
in interface Resource
getMetadata
in class DataStore
DataStoreException
- if an error occurred while reading the data.Resource.getMetadata()
public ParameterValueGroup getOpenParameters()
GeoTiffStoreProvider.getOpenParameters()
and contains at
least a parameter named "location" with a URI
value.
This method may return null
if the storage input can not be described by a URI
(for example a GeoTIFF file reading directly from a ReadableByteChannel
).getOpenParameters
in class DataStore
null
if not available.DataStoreProvider.getOpenParameters()
public void close() throws DataStoreException
close
in interface AutoCloseable
close
in class DataStore
DataStoreException
- if an error occurred while closing the GeoTIFF file.Copyright © 2010–2017 The Apache Software Foundation. All rights reserved.