public class CoverageIO extends Object
CoverageAccess
s and
specific CoverageSource
s, and performing simple encoding and decoding.Modifier and Type | Method and Description |
---|---|
static boolean |
canConnect(Map<String,Serializable> params)
Test to see if this factory is suitable for processing the data pointed to by the params map.
|
static CoverageAccess |
connect(Map<String,Serializable> params) |
static CoverageAccess |
connect(Map<String,Serializable> params,
Hints hints,
ProgressListener listener) |
static Driver |
findDriver(URL url)
Returns a
Driver that is able to read a certain object. |
static Set<Driver> |
findDrivers(URL url)
|
static Set<Driver> |
getAvailableDrivers()
Finds all available implementations of
Driver which have registered using the
services mechanism, and that have the appropriate libraries on the class-path. |
static Driver[] |
getAvailableDriversArray()
Returns an array with all available
Driver implementations. |
static void |
scanForPlugins()
Scans for factory plug-ins on the application class path.
|
public static boolean canConnect(Map<String,Serializable> params)
If this datasource requires a number of parameters then this method should check that they are all present and that they are all valid. If the datasource is a file reading data source then the extensions or mime types of any files specified should be checked. For example, a Shapefile datasource should check that the url param ends with shp, such tests should be case insensitive.
params
- The full set of information needed to construct a live data source.public static CoverageAccess connect(Map<String,Serializable> params, Hints hints, ProgressListener listener) throws IOException
IOException
public static CoverageAccess connect(Map<String,Serializable> params) throws IOException
IOException
public static Set<Driver> getAvailableDrivers()
Driver
which have registered using the
services mechanism, and that have the appropriate libraries on the class-path.Set
of all discovered drivers which have registered
factories, and whose available method returns true.public static void scanForPlugins()
public static Driver[] getAvailableDriversArray()
Driver
implementations.
It can be used together basic information about all the available GridCoverage
plugins. Note that this method finds all the implemented plugins but returns only the
available one.
A plugin could be implemented but not available due to missing dependencies.
Driver
implementations.Copyright © 1996–2023 Geotools. All rights reserved.