bes
Updated for version 3.20.5
|
31 #include "FONgModule.h"
32 #include "GeoTiffTransmitter.h"
33 #include "JPEG2000Transmitter.h"
34 #include "FONgRequestHandler.h"
35 #include "BESRequestHandlerList.h"
37 #include <BESReturnManager.h>
39 #include <BESServiceRegistry.h>
40 #include <BESDapNames.h>
42 #include <TheBESKeys.h>
45 #define RETURNAS_GEOTIFF "geotiff"
46 #define RETURNAS_JPEG2000 "jpeg2000"
63 BESDEBUG(
"fong",
"Initializing module " << modname << endl );
66 BESRequestHandlerList::TheList()->
add_handler(modname, handler);
68 BESDEBUG(
"fong",
" adding " << RETURNAS_GEOTIFF <<
" transmitter" << endl );
69 BESReturnManager::TheManager()->add_transmitter(RETURNAS_GEOTIFF,
new GeoTiffTransmitter());
72 BESDEBUG(
"fong",
" adding " << RETURNAS_JPEG2000 <<
" transmitter" << endl );
73 BESReturnManager::TheManager()->add_transmitter(RETURNAS_JPEG2000,
new JPEG2000Transmitter());
76 BESDEBUG(
"fong",
" adding geotiff service to dap" << endl );
77 BESServiceRegistry::TheRegistry()->
add_format(OPENDAP_SERVICE, DATA_SERVICE, RETURNAS_GEOTIFF);
80 BESDEBUG(
"fong",
" adding jpeg2000 service to dap" << endl );
81 BESServiceRegistry::TheRegistry()->
add_format(OPENDAP_SERVICE, DATA_SERVICE, RETURNAS_JPEG2000);
85 BESDEBUG(
"fong",
"Done Initializing module " << modname << endl );
98 BESDEBUG(
"fong",
"Cleaning module " << modname << endl );
99 BESDEBUG(
"fong",
" removing " << RETURNAS_GEOTIFF <<
" transmitter" << endl );
101 BESReturnManager::TheManager()->del_transmitter(RETURNAS_GEOTIFF);
104 BESDEBUG(
"fong",
" removing " << RETURNAS_JPEG2000 <<
" transmitter" << endl );
105 BESReturnManager::TheManager()->del_transmitter(RETURNAS_JPEG2000);
108 BESDEBUG(
"fong",
" removing " << modname <<
" request handler " << endl );
114 BESDEBUG(
"fong",
"Done Cleaning module " << modname << endl );
125 strm << BESIndent::LMarg <<
"FONgModule::dump - (" << (
void *)
this <<
")" << endl;
Represents a specific data type request handler.
virtual BESRequestHandler * remove_handler(const std::string &handler_name)
remove and return the specified request handler
Module that allows for OPeNDAP Data objects to be returned as geotiff files.
BESTransmitter class named "geotiff" that transmits an OPeNDAP data object as a geotiff file.
virtual void dump(ostream &strm) const
dumps information about this object for debugging purposes
virtual void add_format(const string &service, const string &cmd, const string &format)
add a format response to a command of a service
A Request Handler for the Fileout GDAL request.
virtual bool add_handler(const std::string &handler_name, BESRequestHandler *handler)
add a request handler to the list of registered handlers for this server
static void Register(const std::string &flagName)
register the specified debug flag
virtual void initialize(const string &modname)
initialize the module by adding call backs and registering objects with the framework
virtual void terminate(const string &modname)
removes any registered callbacks or objects from the framework
BESTransmitter class named "geotiff" that transmits an OPeNDAP data object as a geotiff file.