Package org.geotools.gce.geotiff
Class GeoTiffFormatFactorySpi
Object
GeoTiffFormatFactorySpi
- All Implemented Interfaces:
GridFormatFactorySpi,Factory,OptionalFactory
The
GeoTiffFormatFactorySpi should never be instantiated directly by user code. It is discovered by the
GridFormatFinder for automatic discovery. Use the standard Geotools method of discovering a factory in
order to create a format.
This format will only report itself to be "available" if the ImageN and ImageN ImageI/O libraries are
available. Otherwise it will be unavailable. If a user attempts to create a new instance of the format when the
required libraries are unavailable, an
UnsupportedOperationException will be thrown.
- Author:
- Bryce Nordgren / USDA Forest Service, Simone Giannecchini
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionCreates and returns a new instance of theGeoTiffFormatclass if the required libraries are present.Returns the implementation hints.booleanInforms the caller whether the libraries required by the GeoTiff reader are installed or not.
-
Constructor Details
-
GeoTiffFormatFactorySpi
public GeoTiffFormatFactorySpi()Creates a new instance of GeoTiffFormatFactorySpi
-
-
Method Details
-
createFormat
Creates and returns a new instance of theGeoTiffFormatclass if the required libraries are present. If ImageN and Image I/O are not present, will throw anUnsupportedOperationException.- Specified by:
createFormatin interfaceGridFormatFactorySpi- Returns:
GeoTiffFormatobject.- Throws:
UnsupportedOperationException- if this format is unavailable.
-
isAvailable
public boolean isAvailable()Informs the caller whether the libraries required by the GeoTiff reader are installed or not.- Specified by:
isAvailablein interfaceOptionalFactory- Returns:
- availability of the GeoTiff format.
-
getImplementationHints
Returns the implementation hints. The default implementation returns an empty map.- Specified by:
getImplementationHintsin interfaceFactory- Returns:
- Empty Map.
-