public class DefaultProviderServices extends java.lang.Object implements ProviderServices
Modifier and Type | Field and Description |
---|---|
java.util.TreeMap<java.lang.String,WriteFileFormatFeatures> |
fileFeature |
Constructor and Description |
---|
DefaultProviderServices() |
Modifier and Type | Method and Description |
---|---|
void |
addFormat(java.lang.String ext,
java.lang.Class<?> c)
Register a format and a provider which is capable to manage this format
|
RasterDataParameters |
createNotTiledParameters(java.lang.String id)
Builds a
RasterStoreParameters using a file name. |
RasterDataParameters |
createParameters(java.lang.String id)
Builds a
RasterStoreParameters using a file name. |
RasterDataParameters |
createParametersForTiledFiled(java.lang.String id)
Builds a
RasterStoreParameters for tiled files using a file
name. |
java.util.ArrayList<RasterDataParameters> |
createParametersList(java.io.File file)
Builds a
RasterStoreParameters using a file. |
java.util.ArrayList<RasterDataParameters> |
createParametersList(java.lang.String id)
Builds a
RasterStoreParameters using a file name. |
void |
exportBufferToFile(Buffer bufResult,
double pixelSize,
java.lang.String extension,
boolean alphaBand,
java.io.File file,
Extent extent,
ColorInterpretation colorInterpretation)
Saves a buffer to disk
|
java.lang.String[] |
getDriversExtensions()
Obtiene la lista de extensiones registradas
|
java.util.ArrayList<java.lang.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.
|
java.util.TreeMap<java.lang.String,WriteFileFormatFeatures> |
getFileFeature() |
DefaultRasterManager |
getManager() |
java.lang.String[] |
getReadOnlyFormatList()
Returns the list of supported formats in read only mode
|
java.lang.String[] |
getRODriversExtensions() |
ClassSerializer |
getSerializerObject(java.lang.Class<?> class1,
java.lang.Object value)
Construye un serializador que soporte la clase class1.
|
java.lang.String[] |
getWriteDriversType()
Obtiene la lista de tipos de driver
|
java.lang.String |
getWriteDriverType(java.lang.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(java.lang.String ext)
Returns true if the extension is supported and false if doesn't
|
boolean |
isExtensionSupported(java.lang.String ext,
java.lang.Class<?> c)
Returns true if the extension is supported and false if doesn't
|
boolean |
isSupportedThisFileToWrite(java.lang.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(java.io.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(java.lang.Object datasetOpenParam) |
RasterDataStore |
open(java.lang.String file) |
void |
registerCRSUtilImplementation(CRSUtils crsUtil)
Registers a implementation for the CRS service
|
void |
registerFileProvidersTiled(java.lang.Class<?> provider)
Registers raster providers that support tiles.
|
void |
registerOverviewBuilderImplementation(java.lang.String id,
OverviewBuilder ovBuilder)
Registers a implementation to create overviews
|
void |
registerTileProviderFormats(java.lang.Class<?> c)
Gets the list of raster providers that support tiles.
|
void |
saveObjectToRmfFile(RmfBlocksManager blocksManager,
java.lang.Class<?> class1,
java.lang.Object value)
Guarda en el RMF que trata el BlocksManager el valor value usando el serializador que soporta
la clase class1.
|
void |
saveObjectToRmfFile(java.lang.String file,
java.lang.Class<?> class1,
java.lang.Object value)
Guarda en el fichero file (en formato RMF) el objecto value usando el
serializador que trata
las clases class1.
|
void |
saveObjectToRmfFile(java.lang.String file,
java.lang.Object value)
The object passed by parameter is saved in the selected file (in RMF
format)
using the serializer.
|
public java.util.TreeMap<java.lang.String,WriteFileFormatFeatures> fileFeature
public DefaultRasterManager getManager()
public java.util.TreeMap<java.lang.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(java.lang.Object datasetOpenParam) throws NotSupportedExtensionException, RasterDriverException
public RasterDataStore open(java.lang.String file) throws NotSupportedExtensionException, RasterDriverException, InitializeException, ProviderNotRegisteredException
open
in interface ProviderServices
NotSupportedExtensionException
RasterDriverException
InitializeException
ProviderNotRegisteredException
public static AbstractRasterProvider loadProvider(java.io.File file) throws ProviderNotRegisteredException, InitializeException
file
- NotSupportedExtensionException
FileNotSupportedException
ProviderNotRegisteredException
InitializeException
public RasterDataParameters createNotTiledParameters(java.lang.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(java.lang.String id)
ProviderServices
RasterStoreParameters
using a file name.
It is only valid for files.createParameters
in interface ProviderServices
public java.util.ArrayList<RasterDataParameters> createParametersList(java.lang.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 java.util.ArrayList<RasterDataParameters> createParametersList(java.io.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(java.lang.String id)
ProviderServices
RasterStoreParameters
for tiled files using a file
name.createParametersForTiledFiled
in interface ProviderServices
public java.lang.String[] getDriversExtensions()
ProviderServices
getDriversExtensions
in interface ProviderServices
public java.lang.String[] getRODriversExtensions()
public java.util.ArrayList<java.lang.String> getExtensionsSupported(int dataType, int bands) throws RasterDriverException
ProviderServices
getExtensionsSupported
in interface ProviderServices
dataType
- Tipo de datosbands
- Numero de bandasRasterDriverException
public java.lang.String[] getWriteDriversType()
ProviderServices
getWriteDriversType
in interface ProviderServices
public java.lang.String getWriteDriverType(java.lang.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(java.lang.String ext, int dataType, int bands)
ProviderServices
isSupportedThisFileToWrite
in interface ProviderServices
dataType
- Tipo de datobands
- Número de bandaspublic void saveObjectToRmfFile(RmfBlocksManager blocksManager, java.lang.Class<?> class1, java.lang.Object value) throws RmfSerializerException
blocksManager
- class1
- value
- RmfSerializerException
public void saveObjectToRmfFile(java.lang.String file, java.lang.Class<?> class1, java.lang.Object value) throws RmfSerializerException
ProviderServices
saveObjectToRmfFile
in interface ProviderServices
RmfSerializerException
public void saveObjectToRmfFile(java.lang.String file, java.lang.Object value) throws RmfSerializerException
ProviderServices
saveObjectToRmfFile
in interface ProviderServices
RmfSerializerException
public ClassSerializer getSerializerObject(java.lang.Class<?> class1, java.lang.Object value) throws RmfSerializerException
class1
- value
- RmfSerializerException
public void exportBufferToFile(Buffer bufResult, double pixelSize, java.lang.String extension, boolean alphaBand, java.io.File file, Extent extent, ColorInterpretation colorInterpretation) throws NotSupportedExtensionException, RasterDriverException, ProcessInterruptedException, java.io.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
java.io.IOException
public void addFormat(java.lang.String ext, java.lang.Class<?> c)
ProviderServices
addFormat
in interface ProviderServices
ext
- Extensionc
- Provider classpublic boolean isExtensionSupported(java.lang.String ext, java.lang.Class<?> c)
ProviderServices
isExtensionSupported
in interface ProviderServices
public boolean isExtensionSupported(java.lang.String ext)
ProviderServices
isExtensionSupported
in interface ProviderServices
public java.lang.String[] getReadOnlyFormatList()
ProviderServices
getReadOnlyFormatList
in interface ProviderServices
public void registerFileProvidersTiled(java.lang.Class<?> provider)
ProviderServices
registerFileProvidersTiled
in interface ProviderServices
public void registerTileProviderFormats(java.lang.Class<?> c)
ProviderServices
registerTileProviderFormats
in interface ProviderServices
public void registerOverviewBuilderImplementation(java.lang.String id, OverviewBuilder ovBuilder)
ProviderServices
registerOverviewBuilderImplementation
in interface ProviderServices
public void registerCRSUtilImplementation(CRSUtils crsUtil)
ProviderServices
registerCRSUtilImplementation
in interface ProviderServices