BESTransmitter class named "geotiff" that transmits an OPeNDAP data object as a geotiff file.
More...
#include <GeoTiffTransmitter.h>
BESTransmitter class named "geotiff" that transmits an OPeNDAP data object as a geotiff file.
The GeoTiffTransmitter transforms an OPeNDAP DataDDS object into a geotiff file and streams the new (temporary) geotiff file back to the client.
- See also
- BESTransmitter
Definition at line 41 of file GeoTiffTransmitter.h.
◆ GeoTiffTransmitter()
GeoTiffTransmitter::GeoTiffTransmitter |
( |
| ) |
|
Construct the GeoTiffTransmitter, adding it with name geotiff to be able to transmit a data response.
The transmitter is created to add the ability to return OPeNDAP data objects (DataDDS) as a geotiff file.
The OPeNDAP data object is written to a geotiff file locally in a temporary directory specified by the BES configuration parameter FONg.Tempdir. If this variable is not found or is not set then it defaults to the macro definition FONG_TEMP_DIR.
- Note
- The mapping from a 'returnAs' of "geotiff" to this code is made in the FONgModule class.
- See also
- FONgModule
Definition at line 86 of file GeoTiffTransmitter.cc.
◆ ~GeoTiffTransmitter()
virtual GeoTiffTransmitter::~GeoTiffTransmitter |
( |
| ) |
|
|
inlinevirtual |
◆ add_method()
bool BESTransmitter::add_method |
( |
std::string | method_name, |
|
|
p_transmitter | trans_method ) |
|
virtualinherited |
◆ dump()
void BESTransmitter::dump |
( |
std::ostream & | strm | ) |
const |
|
virtualinherited |
dumps information about this object
Displays the pointer value of this instance along with the names of register transmit methods
- Parameters
-
strm | C++ i/o stream to dump the information to |
Implements BESObj.
Definition at line 134 of file BESTransmitter.cc.
◆ find_method()
p_transmitter BESTransmitter::find_method |
( |
std::string | method_name | ) |
|
|
virtualinherited |
◆ remove_method()
bool BESTransmitter::remove_method |
( |
std::string | method_name | ) |
|
|
virtualinherited |
◆ send_data_as_geotiff()
The static method registered to transmit OPeNDAP data objects as a netcdf file.
This function takes the OPeNDAP DataDDS object, reads in the data (can be used with any data handler), transforms the data into a netcdf file, and streams back that netcdf file back to the requester using the stream specified in the BESDataHandlerInterface.
- Parameters
-
- Exceptions
-
BESInternalError | if the response is not an OPeNDAP DataDDS or if there are any problems reading the data, writing to a netcdf file, or streaming the netcdf file |
Definition at line 131 of file GeoTiffTransmitter.cc.
◆ send_html()
◆ send_response()
◆ send_text()
◆ default_gcs
string GeoTiffTransmitter::default_gcs |
|
static |
The documentation for this class was generated from the following files: