27 #include "../common/StringUtils.h" 28 #include "../core/translator/Translator.h" 71 const std::vector<te::rst::BandProperty*>
bands,
72 const std::map<std::string, std::string>& rinfo,
73 void* h,
void (*deleter)(
void*))
75 std::auto_ptr<Raster> raster(
new Raster);
77 raster->create(g, bands, rinfo, h, deleter);
79 return raster.release();
91 capabilities[
"supported_formats"] =
"grib";
void getCreationalParameters(std::vector< std::pair< std::string, std::string > > ¶ms) const
It returns the list of parameters accepted as raster info.
Base exception class for plugin module.
const std::string & getType() const
Returns the type (name) of this factory.
#define GRIB_DRIVER_IDENTIFIER
The MyDriver driver identifier string.
static void initialize()
It initializes the factory: the singleton instance will be registered in the abstract factory DataSou...
te::rst::Raster * build()
Concrete factories (derived from this one) must implement this method in order to create objects...
An abstract class for raster data strucutures.
te::rst::Raster * create(te::rst::Grid *g, const std::vector< te::rst::BandProperty * > bands, const std::map< std::string, std::string > &rinfo, void *h=0, void(*deleter)(void *)=0)
This method must be implemented by subclasses (raster drivers).
te::da::DataSourceCapabilities capabilities
std::map< std::string, std::string > getCapabilities() const
It return a map (string, string) containing all supported formats.
This is the abstract factory for Rasters.
static void finalize()
It finalizes the factory: the singleton instance will be destroyed and will be unregistered from the ...
static RasterFactory * sm_factory
A raster class for GRIB format.
~RasterFactory()
Destructor.
A rectified grid is the spatial support for raster data.
#define TR_GRIB(message)
It marks a string in order to get translated. This is a special mark used in the DataAccess module of...