Package org.apache.sis.storage.geotiff
Class GeoTiffStoreProvider
java.lang.Object
org.apache.sis.storage.DataStoreProvider
org.apache.sis.storage.geotiff.GeoTiffStoreProvider
The provider of
GeoTiffStore instances. Given a StorageConnector input,
this class tries to instantiate a GeoTiffStore.
Thread safety
The sameGeoTiffStoreProvider instance can be safely used by many threads without synchronization on
the part of the caller. However, the GeoTiffStore instances created by this factory are not thread-safe.- Since:
- 0.8
- Version:
- 1.2
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.sis.storage.DataStoreProvider
DataStoreProvider.Prober<S> -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final StringThe MIME type for GeoTIFF files.private static final org.opengis.parameter.ParameterDescriptorGroupThe parameter descriptor to be returned bygetOpenParameters().private static final VersionThe TIFF version.Fields inherited from class org.apache.sis.storage.DataStoreProvider
CREATE, LOCATION -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.opengis.parameter.ParameterDescriptorGroupReturns a description of all parameters accepted by this provider for opening a GeoTIFF file.Returns a generic name for this data store, used mostly in warnings or error messages.open(StorageConnector connector) Returns aGeoTiffStoreimplementation associated with this provider.probeContent(StorageConnector connector) Returns the MIME type if the given storage appears to be supported byGeoTiffStore.Methods inherited from class org.apache.sis.storage.DataStoreProvider
getFormat, getLogger, getSupportedVersions, open, probeContent
-
Field Details
-
MIME_TYPE
The MIME type for GeoTIFF files.- See Also:
-
VERSION
The TIFF version. -
OPEN_DESCRIPTOR
private static final org.opengis.parameter.ParameterDescriptorGroup OPEN_DESCRIPTORThe parameter descriptor to be returned bygetOpenParameters().
-
-
Constructor Details
-
GeoTiffStoreProvider
public GeoTiffStoreProvider()Creates a new provider.
-
-
Method Details
-
getShortName
Returns a generic name for this data store, used mostly in warnings or error messages.- Specified by:
getShortNamein classDataStoreProvider- Returns:
- a short name or abbreviation for the data format.
- See Also:
-
getOpenParameters
public org.opengis.parameter.ParameterDescriptorGroup getOpenParameters()Returns a description of all parameters accepted by this provider for opening a GeoTIFF file.- Specified by:
getOpenParametersin classDataStoreProvider- Returns:
- description of available parameters for opening a GeoTIFF file.
- Since:
- 0.8
- See Also:
-
probeContent
Returns the MIME type if the given storage appears to be supported byGeoTiffStore. A supported status does not guarantee that reading or writing will succeed, only that there appears to be a reasonable chance of success based on a brief inspection of the file header.- Specified by:
probeContentin classDataStoreProvider- Parameters:
connector- information about the storage (URL, stream, etc).- Returns:
- a supported status with the MIME type
if the given storage seems to be readable by
GeoTiffStoreinstances. - Throws:
DataStoreException- if an I/O error occurred.
-
open
Returns aGeoTiffStoreimplementation associated with this provider.- Specified by:
openin classDataStoreProvider- Parameters:
connector- information about the storage (URL, stream, etc).- Returns:
- a data store implementation associated with this provider for the given storage.
- Throws:
DataStoreException- if an error occurred while creating the data store instance.- See Also:
-