QGIS/external/mdal/frmts/mdal_gdal_netcdf.hpp

40 lines
1018 B
C++
Raw Normal View History

/*
MDAL - Mesh Data Abstraction Library (MIT License)
Copyright (C) 2018 Peter Petrik (zilolv at gmail dot com)
*/
#ifndef MDAL_GDAL_NETCDF_HPP
#define MDAL_GDAL_NETCDF_HPP
2018-12-14 14:59:53 +01:00
#include <string>
#include "mdal_gdal.hpp"
2018-07-18 09:00:34 +02:00
#include "mdal_data_model.hpp"
#include "mdal.h"
2018-12-14 14:59:53 +01:00
#include "mdal_driver.hpp"
namespace MDAL
{
2018-12-14 14:59:53 +01:00
class DriverGdalNetCDF: public DriverGdal
{
public:
2018-12-14 14:59:53 +01:00
DriverGdalNetCDF();
~DriverGdalNetCDF( ) override = default;
DriverGdalNetCDF *create() override;
private:
std::string GDALFileName( const std::string &fileName ) override;
bool parseBandInfo( const MDAL::GdalDataset *cfGDALDataset,
const metadata_hash &metadata, std::string &band_name,
double *time, bool *is_vector, bool *is_x
) override;
void parseGlobals( const metadata_hash &metadata ) override;
//! delimiter to get time in hours
double mTimeDiv;
};
} // namespace MDAL
#endif // MDAL_GDAL_NETCDF_HPP