public class DefaultRasterManager extends Object implements RasterManager
RasterManager
implementation.Modifier and Type | Field and Description |
---|---|
static CRSUtils |
crsUtilRegistry |
static HashMap<String,OverviewBuilder> |
overviewBuilderRegistry |
TYPE_MOSAICDATA, TYPE_MULTIDATA
Constructor and Description |
---|
DefaultRasterManager() |
Modifier and Type | Method and Description |
---|---|
Buffer |
createBuffer(int dataType,
int width,
int height,
int bandNr,
boolean malloc)
Genera instancias del buffer de datos adecuado al tamaño del raster.
|
DataServerWriter |
createDataServerWriter()
Builds a new data server to write data in a buffer
|
RasterFilterList |
createEmptyFilterList(int type)
Builds a new and empty filter list
|
FilterLoader |
createFilterLoader(int dataType)
Builds loader of filters using a default list of filters.
|
FilterLoader |
createFilterLoader(RasterFilterList filterList)
Builds loader of filters using a specific list of filters.
|
Historical |
createHistoricalService()
Builds a new service to recover historical objects
|
ImageDrawer |
createImageDrawerService()
Creates a service to render a buffer on a java Image object
|
Buffer |
createMemoryBuffer(int dataType,
int width,
int height,
int bandNr,
boolean malloc)
Genera una instancia del buffer de solo lectura.
|
Params |
createParams(String id,
Object value,
int type,
String[] list)
Builds a new parameter object.
|
RasterQuery |
createQuery()
Builds a new empty RasterQuery object
|
TaskEventManager |
createRasterTask(Object process)
Registers the object as a task using the current thread ID.
|
Buffer |
createReadOnlyBuffer(int dataType,
int width,
int height,
int bandNr) |
ROIReader |
createROIReader(String filename,
RasterDataStore store,
IProjection projection)
Creates a reader for a ROI file
|
Statistics |
createROIStatistics(AbstractROI roi)
Returns a Statistics object for a ROI
|
ROIWriter |
createROIWriter(String filename,
IProjection projection)
Creates a writer for a ROI file
|
VectorialROI |
createVectorialROI(RasterDataStore store)
Creates a vectorial region of interest
|
ROIReader |
createVectorialROIReader(FeatureStore roiStore,
RasterDataStore store,
IProjection projection)
Creates a reader from a
FeatureStore |
RasterWriter |
createWriter(DataServerWriter dataWriter,
String outFileName,
int nBands,
AffineTransform at,
int outSizeX,
int outSizeY,
int dataType,
Params params,
IProjection proj)
Factoria para obtener escritores de los distintos tipos de raster.
|
RasterWriter |
createWriter(DataServerWriter dataWriter,
String outFileName,
int nBands,
AffineTransform at,
int outSizeX,
int outSizeY,
int dataType,
Params params,
IProjection proj,
boolean geo)
Factoria para obtener escritores de los distintos tipos de raster.
|
RasterWriter |
createWriter(String fName)
Factoria para obtener escritores de los distintos tipos de raster.
|
Params |
createWriterParams(String fileName)
Obtiene los parámetros del driver de escritura a partir del nombre de fichero de salida.
|
BufferFactory |
getBufferFactory()
Gets the factory to build buffers which store pixel data
|
ColorConversion |
getColorConversion()
Gets the object to convert color spaces
|
CRSUtils |
getCRSUtils()
Gets projection utilities
|
DataStructFactory |
getDataStructFactory()
Gets the factory for data structures
|
FileUtils |
getFileUtils()
Gets utilities for files management
|
static DefaultRasterManager |
getInstance()
Gets an instance of this object for internal use.
|
String[] |
getLegendFormats()
Lista de formatos soportados por RasterLegendIO
|
MathUtils |
getMathUtils()
Gets mathematical utilities
|
OverviewBuilder |
getOverviewBuilder(String id)
Gets an instance of the overview builder registered
|
Set<String> |
getOverviewBuilderKeyList()
Gets the list of keys in the overview builder
|
ProviderServices |
getProviderServices()
Gets the data source services
|
RasterLegend |
getRasterLegendIO(String formatName)
Devuelve un RasterLegend para el formato especificado por parametro.
|
RasterService |
getRasterService() |
TaskEventManager |
getRasterTask()
Gets a register task.
|
RasterUtils |
getRasterUtils()
Gets utilities for raster management
|
Vectorization |
getVectorizeObject(QueryableRaster queryable)
Gets an object which vectorize a raster
|
boolean |
isCRSUtilSupported()
Returns true if exists any implementation registered for
this service
|
boolean |
isOverviewBuilderSupported()
REturns true if the overview builder is supported
|
public static HashMap<String,OverviewBuilder> overviewBuilderRegistry
public static CRSUtils crsUtilRegistry
public static DefaultRasterManager getInstance()
public DataStructFactory getDataStructFactory()
RasterManager
getDataStructFactory
in interface RasterManager
public ProviderServices getProviderServices()
RasterManager
getProviderServices
in interface RasterManager
public boolean isCRSUtilSupported()
RasterManager
isCRSUtilSupported
in interface RasterManager
public CRSUtils getCRSUtils()
RasterManager
getCRSUtils
in interface RasterManager
public FileUtils getFileUtils()
RasterManager
getFileUtils
in interface RasterManager
public RasterUtils getRasterUtils()
RasterManager
getRasterUtils
in interface RasterManager
public MathUtils getMathUtils()
RasterManager
getMathUtils
in interface RasterManager
public RasterService getRasterService() throws ServiceException
ServiceException
public String[] getLegendFormats()
RasterManager
getLegendFormats
in interface RasterManager
public RasterLegend getRasterLegendIO(String formatName) throws RasterLegendIONotFound
RasterManager
getRasterLegendIO
in interface RasterManager
RasterLegendIONotFound
public DataServerWriter createDataServerWriter()
RasterManager
createDataServerWriter
in interface RasterManager
public RasterQuery createQuery()
RasterManager
createQuery
in interface RasterManager
RasterQuery
public Buffer createBuffer(int dataType, int width, int height, int bandNr, boolean malloc)
RasterManager
createBuffer
in interface RasterManager
dataType
- Tipo de datowidth
- Anchoheight
- AltobandNr
- Bandapublic Buffer createReadOnlyBuffer(int dataType, int width, int height, int bandNr)
public Buffer createMemoryBuffer(int dataType, int width, int height, int bandNr, boolean malloc)
RasterManager
createMemoryBuffer
in interface RasterManager
dataType
- Tipo de datowidth
- Anchoheight
- AltobandNr
- Bandapublic RasterWriter createWriter(String fName) throws NotSupportedExtensionException, RasterDriverException
RasterManager
createWriter
in interface RasterManager
fName
- Nombre del fichero.NotSupportedExtensionException
RasterDriverException
public RasterWriter createWriter(DataServerWriter dataWriter, String outFileName, int nBands, AffineTransform at, int outSizeX, int outSizeY, int dataType, Params params, IProjection proj) throws NotSupportedExtensionException, RasterDriverException
RasterManager
createWriter
in interface RasterManager
NotSupportedExtensionException
RasterDriverException
public RasterWriter createWriter(DataServerWriter dataWriter, String outFileName, int nBands, AffineTransform at, int outSizeX, int outSizeY, int dataType, Params params, IProjection proj, boolean geo) throws NotSupportedExtensionException, RasterDriverException
RasterManager
createWriter
in interface RasterManager
NotSupportedExtensionException
RasterDriverException
public Params createWriterParams(String fileName)
RasterManager
createWriterParams
in interface RasterManager
public Vectorization getVectorizeObject(QueryableRaster queryable) throws QueryException, ProcessInterruptedException
dataStore
- RasterDriverException
ProcessInterruptedException
- When the object Vectorization is built the raster data buffer is loaded.
This operation can be interruptedQueryException
public OverviewBuilder getOverviewBuilder(String id)
RasterManager
getOverviewBuilder
in interface RasterManager
public boolean isOverviewBuilderSupported()
RasterManager
isOverviewBuilderSupported
in interface RasterManager
public Set<String> getOverviewBuilderKeyList()
RasterManager
getOverviewBuilderKeyList
in interface RasterManager
public FilterLoader createFilterLoader(int dataType)
RasterManager
createFilterLoader
in interface RasterManager
public FilterLoader createFilterLoader(RasterFilterList filterList)
RasterManager
createFilterLoader
in interface RasterManager
public Historical createHistoricalService()
RasterManager
createHistoricalService
in interface RasterManager
public ColorConversion getColorConversion()
RasterManager
getColorConversion
in interface RasterManager
public Statistics createROIStatistics(AbstractROI roi)
RasterManager
createROIStatistics
in interface RasterManager
public RasterFilterList createEmptyFilterList(int type)
RasterManager
createEmptyFilterList
in interface RasterManager
public TaskEventManager getRasterTask()
RasterManager
getRasterTask
in interface RasterManager
public TaskEventManager createRasterTask(Object process)
RasterManager
createRasterTask
in interface RasterManager
public Params createParams(String id, Object value, int type, String[] list)
createParams
in interface RasterManager
id
- value
- type
- list
- public ImageDrawer createImageDrawerService()
RasterManager
createImageDrawerService
in interface RasterManager
public BufferFactory getBufferFactory()
RasterManager
getBufferFactory
in interface RasterManager
BufferFactory
public ROIReader createROIReader(String filename, RasterDataStore store, IProjection projection) throws ROIException, FileNotExistsException
RasterManager
createROIReader
in interface RasterManager
filename
- file name where the regionsstore
- data store associated to these regionsprojection
- Regions projectionROIException
FileNotExistsException
public ROIWriter createROIWriter(String filename, IProjection projection)
RasterManager
createROIWriter
in interface RasterManager
public VectorialROI createVectorialROI(RasterDataStore store)
RasterManager
createVectorialROI
in interface RasterManager
public ROIReader createVectorialROIReader(FeatureStore roiStore, RasterDataStore store, IProjection projection)
RasterManager
FeatureStore
createVectorialROIReader
in interface RasterManager