public class DefaultProviderServices extends Object implements ProviderServices
Modifier and Type | Field and Description |
---|---|
TreeMap<String,WriteFileFormatFeatures> |
fileFeature |
Constructor and Description |
---|
DefaultProviderServices() |
Modifier and Type | Method and Description |
---|---|
void |
addFormat(String ext,
Class<?> c)
Register a format and a provider which is capable to manage this format
|
RasterDataParameters |
createNotTiledParameters(String id)
Builds a
RasterStoreParameters using a file name. |
RasterDataParameters |
createParameters(String id)
Builds a
RasterStoreParameters using a file name. |
RasterDataParameters |
createParametersForTiledFiled(String id)
Builds a
RasterStoreParameters for tiled files using a file
name. |
ArrayList<RasterDataParameters> |
createParametersList(File file)
Builds a
RasterStoreParameters using a file. |
ArrayList<RasterDataParameters> |
createParametersList(String id)
Builds a
RasterStoreParameters using a file name. |
void |
exportBufferToFile(Buffer bufResult,
double pixelSize,
String extension,
boolean alphaBand,
File file,
Extent extent,
ColorInterpretation colorInterpretation)
Saves a buffer to disk
|
String[] |
getDriversExtensions()
Obtiene la lista de extensiones registradas
|
ArrayList<String> |
getExtensionsSupported(int dataType,
int bands)
Obtiene la lista de extensiones de ficheros sobre los que se puede salvar
en un determinado tipo de datos.
|
TreeMap<String,WriteFileFormatFeatures> |
getFileFeature() |
DefaultRasterManager |
getManager() |
String[] |
getReadOnlyFormatList()
Returns the list of supported formats in read only mode
|
String[] |
getRODriversExtensions() |
ClassSerializer |
getSerializerObject(Class<?> class1,
Object value)
Construye un serializador que soporte la clase class1.
|
String[] |
getWriteDriversType()
Obtiene la lista de tipos de driver
|
String |
getWriteDriverType(String ext)
Obtiene el tipo de driver a partir de la extensión
|
int |
getWriteNDrivers()
Devuelve el número de drivers soportados
|
int |
getWriteNTypes()
Devuelve el número de tipos de driver registrados
|
boolean |
isExtensionSupported(String ext)
Returns true if the extension is supported and false if doesn't
|
boolean |
isExtensionSupported(String ext,
Class<?> c)
Returns true if the extension is supported and false if doesn't
|
boolean |
isSupportedThisFileToWrite(String ext,
int dataType,
int bands)
Método que pregunta si la extensión pasada por parámetro está soportada
con
el tipo y número de bandas indicadas.
|
static AbstractRasterProvider |
loadProvider(File file)
Loads the specific provider to download data
|
RasterDataStore |
open(CoverageStoreProvider prov,
DataStoreParameters params) |
RasterDataStore |
open(DataStoreParameters params)
Abre un dataset pasando como par�metros la proyecci�n y un objeto identificador del dataset.
|
RasterDataStore |
open(Object datasetOpenParam) |
RasterDataStore |
open(String file) |
void |
registerCRSUtilImplementation(CRSUtils crsUtil)
Registers a implementation for the CRS service
|
void |
registerFileProvidersTiled(Class<?> provider)
Registers raster providers that support tiles.
|
void |
registerOverviewBuilderImplementation(String id,
OverviewBuilder ovBuilder)
Registers a implementation to create overviews
|
void |
registerTileProviderFormats(Class<?> c)
Gets the list of raster providers that support tiles.
|
void |
saveObjectToRmfFile(RmfBlocksManager blocksManager,
Class<?> class1,
Object value)
Guarda en el RMF que trata el BlocksManager el valor value usando el serializador que soporta
la clase class1.
|
void |
saveObjectToRmfFile(String file,
Class<?> class1,
Object value)
Guarda en el fichero file (en formato RMF) el objecto value usando el
serializador que trata
las clases class1.
|
void |
saveObjectToRmfFile(String file,
Object value)
The object passed by parameter is saved in the selected file (in RMF
format)
using the serializer.
|
public TreeMap<String,WriteFileFormatFeatures> fileFeature
public DefaultRasterManager getManager()
public TreeMap<String,WriteFileFormatFeatures> getFileFeature()
public RasterDataStore open(CoverageStoreProvider prov, DataStoreParameters params) throws NotSupportedExtensionException, RasterDriverException
open
in interface ProviderServices
NotSupportedExtensionException
RasterDriverException
public RasterDataStore open(DataStoreParameters params) throws NotSupportedExtensionException, RasterDriverException
open
in interface ProviderServices
param
- Par�metros al driverNotSupportedExtensionException
RasterDriverException
public RasterDataStore open(Object datasetOpenParam) throws NotSupportedExtensionException, RasterDriverException
public RasterDataStore open(String file) throws NotSupportedExtensionException, RasterDriverException, InitializeException, ProviderNotRegisteredException
open
in interface ProviderServices
NotSupportedExtensionException
RasterDriverException
InitializeException
ProviderNotRegisteredException
public static AbstractRasterProvider loadProvider(File file) throws ProviderNotRegisteredException, InitializeException
file
- NotSupportedExtensionException
FileNotSupportedException
ProviderNotRegisteredException
InitializeException
public RasterDataParameters createNotTiledParameters(String id) throws InitializeException, ProviderNotRegisteredException
ProviderServices
RasterStoreParameters
using a file name.
It is only valid for files but the provider will be not tiledcreateNotTiledParameters
in interface ProviderServices
InitializeException
ProviderNotRegisteredException
public RasterDataParameters createParameters(String id)
ProviderServices
RasterStoreParameters
using a file name.
It is only valid for files.createParameters
in interface ProviderServices
public ArrayList<RasterDataParameters> createParametersList(String id)
ProviderServices
RasterStoreParameters
using a file name. If exists
more than one
provider which support this file this method will return a list of
parameters
It is only valid for files.createParametersList
in interface ProviderServices
public ArrayList<RasterDataParameters> createParametersList(File file)
ProviderServices
RasterStoreParameters
using a file. If exists more
than one
provider which support this file this method will return a list of
parameters
It is only valid for files.createParametersList
in interface ProviderServices
public RasterDataParameters createParametersForTiledFiled(String id)
ProviderServices
RasterStoreParameters
for tiled files using a file
name.createParametersForTiledFiled
in interface ProviderServices
public String[] getDriversExtensions()
ProviderServices
getDriversExtensions
in interface ProviderServices
public String[] getRODriversExtensions()
public ArrayList<String> getExtensionsSupported(int dataType, int bands) throws RasterDriverException
ProviderServices
getExtensionsSupported
in interface ProviderServices
dataType
- Tipo de datosbands
- Numero de bandasRasterDriverException
public String[] getWriteDriversType()
ProviderServices
getWriteDriversType
in interface ProviderServices
public String getWriteDriverType(String ext)
ProviderServices
getWriteDriverType
in interface ProviderServices
ext
- Extensiónpublic int getWriteNDrivers()
ProviderServices
getWriteNDrivers
in interface ProviderServices
public int getWriteNTypes()
ProviderServices
getWriteNTypes
in interface ProviderServices
public boolean isSupportedThisFileToWrite(String ext, int dataType, int bands)
ProviderServices
isSupportedThisFileToWrite
in interface ProviderServices
dataType
- Tipo de datobands
- Número de bandaspublic void saveObjectToRmfFile(RmfBlocksManager blocksManager, Class<?> class1, Object value) throws RmfSerializerException
blocksManager
- class1
- value
- RmfSerializerException
public void saveObjectToRmfFile(String file, Class<?> class1, Object value) throws RmfSerializerException
ProviderServices
saveObjectToRmfFile
in interface ProviderServices
RmfSerializerException
public void saveObjectToRmfFile(String file, Object value) throws RmfSerializerException
ProviderServices
saveObjectToRmfFile
in interface ProviderServices
RmfSerializerException
public ClassSerializer getSerializerObject(Class<?> class1, Object value) throws RmfSerializerException
class1
- value
- RmfSerializerException
public void exportBufferToFile(Buffer bufResult, double pixelSize, String extension, boolean alphaBand, File file, Extent extent, ColorInterpretation colorInterpretation) throws NotSupportedExtensionException, RasterDriverException, ProcessInterruptedException, IOException
ProviderServices
exportBufferToFile
in interface ProviderServices
bufResult
- Buffer to savepixelSize
- Pixel sizeextension
- output file formatalphaBand
- true if it has alpha bandfile
- Path to the new fileextent
- Bounding box of the bufferNotSupportedExtensionException
RasterDriverException
ProcessInterruptedException
IOException
public void addFormat(String ext, Class<?> c)
ProviderServices
addFormat
in interface ProviderServices
ext
- Extensionc
- Provider classpublic boolean isExtensionSupported(String ext, Class<?> c)
ProviderServices
isExtensionSupported
in interface ProviderServices
public boolean isExtensionSupported(String ext)
ProviderServices
isExtensionSupported
in interface ProviderServices
public String[] getReadOnlyFormatList()
ProviderServices
getReadOnlyFormatList
in interface ProviderServices
public void registerFileProvidersTiled(Class<?> provider)
ProviderServices
registerFileProvidersTiled
in interface ProviderServices
public void registerTileProviderFormats(Class<?> c)
ProviderServices
registerTileProviderFormats
in interface ProviderServices
public void registerOverviewBuilderImplementation(String id, OverviewBuilder ovBuilder)
ProviderServices
registerOverviewBuilderImplementation
in interface ProviderServices
public void registerCRSUtilImplementation(CRSUtils crsUtil)
ProviderServices
registerCRSUtilImplementation
in interface ProviderServices