public interface ProviderServices
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.
|
String[] |
getReadOnlyFormatList()
Returns the list of supported formats in read only mode
|
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.
|
RasterDataStore |
open(CoverageStoreProvider prov,
DataStoreParameters params) |
RasterDataStore |
open(DataStoreParameters param)
Abre un dataset pasando como parámetros la proyección y un objeto
identificador del dataset.
|
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(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.
|
RasterDataStore open(DataStoreParameters param) throws NotSupportedExtensionException, RasterDriverException
param
- Parámetros al driverNotSupportedExtensionException
RasterDriverException
RasterDataStore open(String file) throws NotSupportedExtensionException, RasterDriverException, InitializeException, ProviderNotRegisteredException
RasterDataStore open(CoverageStoreProvider prov, DataStoreParameters params) throws NotSupportedExtensionException, RasterDriverException
void registerFileProvidersTiled(Class<?> provider)
provider
- void registerTileProviderFormats(Class<?> c)
void registerOverviewBuilderImplementation(String id, OverviewBuilder ovBuilder)
ovBuilder
- void registerCRSUtilImplementation(CRSUtils crsUtil)
crsUtil
- void addFormat(String ext, Class<?> c)
ext
- Extensionc
- Provider classboolean isExtensionSupported(String ext, Class<?> c)
ext
- boolean isExtensionSupported(String ext)
ext
- String[] getReadOnlyFormatList()
String[] getDriversExtensions()
ArrayList<String> getExtensionsSupported(int dataType, int bands) throws RasterDriverException
dataType
- Tipo de datosbands
- Numero de bandasreprojectable
- Especifica si devuelve solo los formatos reproyectablesRasterDriverException
String[] getWriteDriversType()
String getWriteDriverType(String ext)
ext
- Extensiónint getWriteNDrivers()
int getWriteNTypes()
boolean isSupportedThisFileToWrite(String ext, int dataType, int bands)
dataType
- Tipo de datobands
- Número de bandasextensión
- void saveObjectToRmfFile(String file, Class<?> class1, Object value) throws RmfSerializerException
file
- class1
- value
- RmfSerializerException
void saveObjectToRmfFile(String file, Object value) throws RmfSerializerException
file
- value
- RmfSerializerException
RasterDataParameters createParameters(String id)
RasterStoreParameters
using a file name.
It is only valid for files.RasterDataParameters createNotTiledParameters(String id) throws InitializeException, ProviderNotRegisteredException
RasterStoreParameters
using a file name.
It is only valid for files but the provider will be not tiledArrayList<RasterDataParameters> createParametersList(String id)
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.ArrayList<RasterDataParameters> createParametersList(File file)
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.RasterDataParameters createParametersForTiledFiled(String id)
RasterStoreParameters
for tiled files using a file
name.void exportBufferToFile(Buffer bufResult, double pixelSize, String extension, boolean alphaBand, File file, Extent extent, ColorInterpretation colorInterpretation) throws NotSupportedExtensionException, RasterDriverException, ProcessInterruptedException, IOException
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