bes Updated for version 3.21.1
The Backend Server (BES) is the lower two tiers of the Hyrax data server
gdal_utils.h
1// This file is part of the GDAL OPeNDAP Adapter
2
3// Copyright (c) 2004 OPeNDAP, Inc.
4// Author: Frank Warmerdam <warmerdam@pobox.com>
5//
6// This library is free software; you can redistribute it and/or
7// modify it under the terms of the GNU Lesser General Public
8// License as published by the Free Software Foundation; either
9// version 2.1 of the License, or (at your option) any later version.
10//
11// This library is distributed in the hope that it will be useful,
12// but WITHOUT ANY WARRANTY; without even the implied warranty of
13// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14// Lesser General Public License for more details.
15//
16// You should have received a copy of the GNU Lesser General Public
17// License along with this library; if not, write to the Free Software
18// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
19//
20// You can contact OPeNDAP, Inc. at PO Box 112, Saunderstown, RI. 02874-0112.
21
22#ifndef MODULES_GDAL_HANDLER_GDAL_UTILS_H_
23#define MODULES_GDAL_HANDLER_GDAL_UTILS_H_
24
25#include <string>
26#include <gdal.h>
27
28class GDALArray;
29namespace libdap {
30class DDS;
31class DAS;
32class DMR;
33class Array;
34}
35
36void gdal_read_dataset_variables(libdap::DDS *dds, const GDALDatasetH &hDS, const std::string &filename, bool include_attrs);
37void gdal_read_dataset_attributes(libdap::DAS &das, const GDALDatasetH &hDS);
38
39void gdal_read_dataset_variables(libdap::DMR *dmr, const GDALDatasetH &hDS, const std::string &filename);
40
41void read_data_array(GDALArray *array, const GDALRasterBandH &hBand);
42void read_map_array(libdap::Array *map, const GDALRasterBandH &hBand, const GDALDatasetH &hDS);
43
44#endif /* MODULES_GDAL_HANDLER_GDAL_UTILS_H_ */
STL class.